- Print level order traversal line by line
- Print all nodes in a binary tree having K leaves
- Print K’th element in spiral form of matrix
- Print Common Nodes in Two Binary Search Trees
- Vertical Sum in a given Binary Tree
- Number of buildings facing the sun
- Number of Groups of Sizes Two Or Three Divisible By 3
- Pairwise swap elements of a given linked list by changing links
- Lowest Common Ancestor in a Binary Search Tree
- Find position of an element in a sorted array of infinite numbers
- Find the index of first 1 in a sorted array of 0’s and 1’s
- Find the index of first 1 in an infinite sorted array of 0s and 1s
- Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array
- Find zeroes to be flipped so that number of consecutive 1’s is maximized
- Maximize number of 0s by flipping a subarray
- Check if a binary tree is subtree of another binary tree
- Longest Common Substring

Explanation :- Longest Common Substring - Longest Even Length Substring such that Sum of First and Second Half is same
- Maximum size square sub-matrix with all 1s
- Maximum size rectangle binary sub-matrix with all 1s
- K’th Smallest/Largest Element in Unsorted Array
- Matrix Chain Multiplication
- Multiply Large Numbers represented as Strings
- Length of longest palindrome list in a linked list using O(1) extra space
- Find if a string is interleaved of two other strings

Reference :- Interleaving Strings

#### Sharing is Caring !

Subscribe

0 Comments