Skip to the content.

LinkedList

  1. 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
  2. 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
  3. 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
  4. Implement Stack using LinkedList Python code
    Details - Description - Push and Pop operations using linkedlist data structure - Functionalities - push - pop
  5. Reverse a LinkedList Python code
    Details - Description - Reverse all the nodes - Functionalities -reverse
  6. 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
  7. Rotate a LinkedList Python code
    Details - Description - Rotate the linkedlist clockwise or counter-clockwise by k nodes - Funcationalities - rotate_right - rotate_left