1. Write a
member method called plus3() to the LinkList class. the method will
add 3 to each data item in the list.
2. Write a
method called deleteEven(), the method shall delete all Even
numbers from a linked list.
- void duplicate(): this method will duplicate elements
of the list
L1: first -> 5-> 8-> 10
L1.duplicate();
L1: first -> 5-> 8-> 10
-> 5-> 8-> 10
3. in the
main program, declare a linked list, read N values, store values in
the list, call plus3() , duplicate() and deleteEven()
#data structure languge pls .
1. Write a member method called plus3() to the LinkList class. the method will add 3 to each data item in the list.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Write a member method called plus3() to the LinkList class. the method will add 3 to each data item in the list.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!