Remove Duplicate Elements from a Sorted Singly Linked List
Lets remove all duplicate elements from a sorted singly linked list. (more…)
Reverse a Singly Linked List in a Single Iteration
Suppose we have a linked list and we want to reverse it in Single iteration and O(n) complexity. (more…)
Create a Singly Linked List from an array
Suppose we have an int array and we want to create it into a singly linked list from it. (more…)
Finding paths in a Binary Tree
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…
Finding nth Largest and Smallest Node in Binary Seach Tree
Binary Search Tree (more…)