- void push (node): This method will add a new node to the end of the list.
- void printValuesForward(): This method prints the values of the nodes from the head to the tail.
- void printValuesBackward(): This method prints the values of the nodes from the tail to the head.
- Node pop(): This method removes the last node of our DLL and returns it.
- boolean contains(Integer value): This method returns a boolean whether the value in the argument is in the list or not. Return true if the value exists, else, return false.
- int size(): Returns the number of nodes in the list.
-
Notifications
You must be signed in to change notification settings - Fork 0
andynhn/java-doubly-linked-list
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Implement common methods for Doubly Linked Lists
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published