top of page



Array Deletions
Now that we know how insertion works, it's time to look at its complement—deletion! Deletion in an Array works in a very similar manner...
Tirthankar Pal
Mar 8, 20225 min read
Â
Â
Â


Summary - Linked List
Review Let's briefly review the performance of the singly linked list and doubly linked list. They are similar in many operations: Both...
Tirthankar Pal
Mar 8, 20221 min read
Â
Â
Â


Delete Operation - Doubly Linked List
If we want to delete an existing node cur from the doubly linked list, we can simply link its previous node prev with its next node next....
Tirthankar Pal
Mar 8, 20221 min read
Â
Â
Â


Add Operation - Doubly Linked List
If we want to insert a new node cur after an existing node prev, we can divide this process into two steps: link cur with prev and next,...
Tirthankar Pal
Mar 8, 20221 min read
Â
Â
Â


Introduction - Doubly Linked List
We have introduced the singly linked list in previous chapters. A node in a singly linked list has the value field, and a "next"...
Tirthankar Pal
Mar 8, 20221 min read
Â
Â
Â


Reverse Linked List
Let's start with a classic problem: Reverse a singly linked list. One solution is to iterate the nodes in original order and move them to...
Tirthankar Pal
Mar 7, 20221 min read
Â
Â
Â


Two-Pointer in Linked List
Let's start with a classic problem: Given a linked list, determine if it has a cycle in it. You might have come up with the solution...
Tirthankar Pal
Mar 7, 20221 min read
Â
Â
Â


Delete Operation - Singly Linked List
If we want to delete an existing node cur from the singly linked list, we can do it in two steps: Find cur's previous node prev and its...
Tirthankar Pal
Mar 7, 20221 min read
Â
Â
Â


Introduction - Singly Linked List
Each node in a singly-linked list contains not only the value but also a reference field to link to the next node. By this way, the...
Tirthankar Pal
Mar 7, 20222 min read
Â
Â
Â


Abstract Data Type : Implementation
Example: implementation of the stack ADT As an example, here is an implementation of the stack ADT above in the C programming language....
Tirthankar Pal
Mar 7, 20222 min read
Â
Â
Â


Abstract Data Type : STACK
Example : abstract stack (functional) For example, a complete functional-style definition of a stack ADT could use the three operations:...
Tirthankar Pal
Mar 7, 20222 min read
Â
Â
Â
bottom of page