Implements a singly linked list from scratch with insert, delete, search, reverse, and display operations.
python linked_list.py- Node class with data and next pointer
- LinkedList with head tracking
- Insert at head, tail, and position
- Deletion by value and index
- In-place list reversal
You will learn pointer-based data structures, how nodes link together, and fundamental linked list operations.
31-linked-lists/
README.md
linked_list.py
node.py
Linked List Demo
----------------
Insert: 10 -> 20 -> 30 -> 40
Search 30: Found at position 2
Delete 20: 10 -> 30 -> 40
Reverse: 40 -> 30 -> 10
Length: 3