Forums Register Login

Linked List operation

+Pie Number of slices to send: Send
hi guys,
what are the operations of a linked list can performed?

1) Add new node
2) Delete node
3) Sorting
4) Search


any more tt requires the manipulation of linked list?
+Pie Number of slices to send: Send
Check out

http://java.sun.com/j2se/1.4.2/docs/api/java/util/LinkedList.html

You can add whole collections, remove parts or get sublists of your list.

addAll
removeRange
subList

Hope that helps
+Pie Number of slices to send: Send
If you need to implement your own linked list class for a homework assignment, you should read your textbook. It should contain a thorough list of the basic operations you can perform on a linked list. If it doesn't, you should return it and ask your professor to use a better book.

Layne
A berm makes a great wind break. And we all like to break wind once in a while. Like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1471 times.
Similar Threads
Nth Node from Last ???
delete in a singly linked list
Linked Lists, Nodes, Quicksort
advantage Doublylink list over linklist
doubly linked list
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:16:07.