Skip to the content.
LinkedList
- Basic LinkedList Python code
Details
- **Description** - Add one or multiple values at the end of the linkedlist and print the LinkedList
- **Functionalities** - append, extend, and print
- Insert LinkedList Node Python code
Details
- Description - Insert linkedlist node to the beginning, end, middle, to any position based on index or after a node value.
- Functionalities
- prepend
- append
- insert_at_middle
- insert_based_on_index
- insert_after_value
- Remove LinkedList Node Python code
Details
- Description - Remove linkedlist node from the beginning, end, middle, from any position based on index or after a node value.
- Functionalities
- remove_from_beginning
- remove_from_end
- remove_from_middle
- remove_based_on_index
- Implement Stack using LinkedList Python code
Details
- Description - Push and Pop operations using linkedlist data structure
- Functionalities
- push
- pop
- Reverse a LinkedList Python code
Details
- Description - Reverse all the nodes
- Functionalities
-reverse
- Detect loop in LinkedList and remove it Python code
Details
- Description - Detect loop in the linkedlist using hasing and Floyd's cycle algorithm and remove the loop
- Functionalities
- detect_and_remove_loop_using_hash
- detect_and_remove_loop_using_floyd_algo
- Rotate a LinkedList Python code
Details
- Description - Rotate the linkedlist clockwise or counter-clockwise by k nodes
- Funcationalities
- rotate_right
- rotate_left