Linked Lists can get tricky sometimes and it took me some time to figure it out.
I have provided some of the common implementations of linked lists in the program given below and in no way is it a complete list!!
I have demonstrated
I have provided some of the common implementations of linked lists in the program given below and in no way is it a complete list!!
I have demonstrated
- Insert and delete at head
- Insert and delete at last
- Insert and delete at a particular position
- Reverse elements Iteratively and recursively (both)