Singly Linked List Insertion
Explore the insertion methods in singly linked lists focusing on inserting a node at the head. Understand the implementation details in Python and learn why this operation runs in constant time.
We'll cover the following...
We'll cover the following...
Types of Insertion
The three types of insertion strategies used in singly linked-lists are:
- Insertion at the head
- Insertion at the tail
- Insertion at the kth index