Please Login first to view the editorial. Click here to

;

Related Problems
Problem Name Submissions Accuracy
Maximum Index 45633 31.25
Next Permutation 10942 41.1
Sum of GCDs 522 4.01
Binary Tree K level sum 6374 29.22
Shortest distance in infinite tree 2243 42.63
Water Overflow 9718 22.73
Kadane's Algorithm 96821 32.92
Longest Increasing Subsequence 61922 28.09
Search in a Rotated Array 25541 38.1
Sum of Middle Elements of two sorted arrays 10551 41.3
Longest Palindrome in a String 36664 31.67
Column name from a given column number 14902 30.03
K’th smallest element 18351 58.64
First non-repeating character in a stream 22196 32.04
Second most repeated string in a sequence 8756 43.55
Mail System Design 2742 17.87
Find the Highest number 9339 46.52
Remove common characters and concatenate 13125 31.24
Prime number of set bits 3347 49.32
Save Ironman 24206 23.71