Skip to content

andynhn/java-doubly-linked-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-doubly-linked-list

Implement common methods for Doubly Linked Lists, including:

  • 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.

About

Implement common methods for Doubly Linked Lists

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages