Please Login first to view the editorial. Click here to



Related Problems
Problem Name Submissions Accuracy
Find whether path exist 9877 47.61
Print leaf nodes from preorder traversal of BST 4135 35.57
Print Binary Tree levels in sorted order 4092 20.55
Binary Tree K level sum 6753 30.38
Shortest distance in infinite tree 2410 42.99
Count the Number of Full Binary Trees 1024 23.58
Find first and last occurrence of x 14855 34.6
Preorder to Postorder 8239 37.96
Preorder Traversal and BST 6620 41.45
Max sum in sub-arrays 2088 32.06
Decode the string 5759 26.52
First non-repeating character in a stream 25434 32.04
Array to BST 16998 31.73
Minimum Cost of ropes 11653 46.71
Longest Prefix Suffix 11525 40.87
Word Boggle 20452 17.28
Is Sudoku Valid 3019 50.71
Count subsequences of type a^i b^j c^k 4699 59.97
Count zero 4621 24.79
Generate Binary Numbers 6659 54.9