Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

31 - Linked Lists

Python Difficulty: Advanced Phase

What It Does

Implements a singly linked list from scratch with insert, delete, search, reverse, and display operations.

Run It

python linked_list.py

Core Concepts

  • 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

What You Will Learn

You will learn pointer-based data structures, how nodes link together, and fundamental linked list operations.

Project Structure

31-linked-lists/
  README.md
  linked_list.py
  node.py

Example Output

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