- Construct Binary Tree from given Parent Array representation
- Calculate XOR from 1 to n
- Connect Nodes at same Level
- Flatten Binary Tree to Linked List
- Clone a linked list with next and random pointer in O(1) space
- Detect cycle in an undirected graph
- Delete nodes which have a greater value on right side
- Find distance between two nodes of a Binary Tree
- Clone a Binary Tree with Random Pointers
- Find all possible words in a board of characters
- Convert a given Binary Tree to Doubly Linked List
- Find if there is a triplet in a Balanced BST that adds to zero
- Inorder Tree Traversal without Recursion
- Find a pair with given sum in a Balanced BST
- Find four elements that sum to a given value
- Partition a set into two subsets such that the difference of subset sums is minimum
- Nuts & Bolts Problem
- Remove minimum elements from either side such that 2*min becomes more than max
- Median of Stream of Running Integers
- K’th largest element in a stream
- Arrange given numbers to form the biggest number
- Two nodes of a BST are swapped, correct the BST
- Kahn’s algorithm for Topological Sorting
Reference :- Topological Sort - Given a sorted dictionary of an alien language, find order of characters
- Given an array arr[], find the maximum j – i such that arr[j] > arr[i]
Reference :- A Distance Maximizing Problem
Sharing is Caring !
Subscribe
0 Comments
Most Voted