Types of Linked Lists
Singly Linked List: Each node points to the next node, and the last node points to null (or None in Python).
Structure:
mathematica
Copy code
Head -> [Data | Next] -> [Data | Next] -> [Data | Next] -> Null
Doubly Linked List: Each node has two pointers, one pointing to the next node and one to the previous node.
Structure:
mathematica
Copy code
Head <-> [Prev | Data | Next] <-> [Prev | Data | Next] <-> Null