Create a Binary Search Tree from an array
Lets discuss how to create a BST From an array.
Create a Binary Search Tree from an array Read More »
Lets discuss how to create a BST From an array.
Create a Binary Search Tree from an array Read More »
Lets remove all duplicate elements from a sorted singly linked list.
Remove Duplicate Elements from a Sorted Singly Linked List Read More »
Suppose we have a linked list and we want to reverse it in Single iteration and O(n) complexity.
Reverse a Singly Linked List in a Single Iteration Read More »
Suppose we have an int array and we want to create it into a singly linked list from it.
Create a Singly Linked List from an array Read More »
Many times we need to search for some specific paths in a binary tree from top to bottom. Lets design a code to find out all paths in a binary tee.
Finding paths in a Binary Tree Read More »
Change the left and right pointers of each node in Binary search Tree to make it a sorted doubly linked list.
Converting a Binary Search Tree to a Sorted Doubly Linked List Read More »
Many times we need to validate a Binary Search tree i.e. verifying its properties,
Designing a Binary Search Tree Validation class Read More »
Many time we need to perform certain tasks on Binary trees. These tasks can be, Counting nodes that satisfy some criteria. Displaying all nodes in particular pattern like, printing expression from expression tree. Creating mirror image of tree. etc.
Binary Tree Traversal with Strategy design pattern and open-closed principle Read More »