MAANG Interview Questions

Meta, Amazon, Apple, Netflix, and Google (MAANG) are some of the biggest tech companies in the world.

A job at MAANG comes with global acknowledgment, huge opportunities for growth and exposure, hefty salary packages, and perks. Due to these excellent career opportunities, MAANG companies tempt all career-seekers.

To ace MAANG interviews, a well-defined preparation strategy is essential. And as the trendsetters of the high-tech world, it is crucial to have a sound knowledge of basic programming fundamentals. Recruiters at MAANG seek only the highly-skilled candidate.

The interview is one of the most grueling phases of a job seeker’s life. In fact, the interview process at Facebook, Apple, Amazon, Netflix, and Google, among many other top tech companies, is unlike anything that job seekers have ever experienced. Not only are the applications notoriously difficult, but their interviews are wild.

The most coveted career goals of all tech graduates are to get a job at FAANG (Facebook, Amazon, Apple, Netflix & Google) companies. This is mainly because their work culture is quite balanced and directed towards maximum productivity. Along with that their career growth options and trajectory are fascinating and the astounding salary just adds a cherry on top of the icing.

You can practice the below MAANG Interview Questions for the interview. We have collected past MAANG Interview Questions for your reference.

 

Top maang interview questions

S.NoInterview QuestionNumber of times asked
1Two Sum Leetcode Solution33773
2Maximum occurring character in a string17686
3Plus One Leetcode Solution16434
4Valid Parentheses LeetCode Solution15812
53Sum Leetcode Solution13396
6First Repeating Element13130
7Single Number Leetcode Solution12184
8Pow(x, n) Leetcode Solution11617
9Sqrt(x) Leetcode Solution11322
10Merge Sorted Arrays Leetcode Solution11078
11Meeting Rooms II LeetCode Solution10929
12Concatenation of Array LeetCode Solution10347
13Contains Duplicate II Leetcode Solution9932
14Roman to Integer Leetcode Solution9773
15Count Primes Leetcode Solutions9735
16Palindrome Number LeetCode Solution9567
17Search Insert Position Leetcode Solution9558
18Valid Palindrome Leetcode Solution9365
19Reverse Vowels of a String Leetcode Solution9196
20Jump Game Leetcode Solution8894
21Intersection of Two Arrays II Leetcode Solution8801
22Kids With the Greatest Number of Candies Leetcode Solution8654
23House Robber Leetcode Solution8600
24Number of Good Pairs Leetcode Solution8557
25Spiral Matrix LeetCode Solution8556
26Find the Maximum Repeating Number in Array8482
27Text Justification LeetCode Solution8474
28Add Binary Leetcode Solution8427
29Longest Substring Without Repeating Characters LeetCode Solution8186
30Number Of 1 bits7993
31Longest Palindromic Substring LeetCode Solution7950
32Jewels and Stones Leetcode Solution7931
33Power of Two Leetcode Solution7863
34Maximum Subarray Leetcode Solution7747
35Permutations Leetcode Solution7663
36Shuffle String Leetcode Solution7613
37Find All Numbers Disappeared in an Array Leetcode Solution7565
38Daily Temperatures Leetcode Solution7481
39Min Stack Leetcode Solution7427
40Kth Missing Positive Number Leetcode Solution7357
41Maximum Profit in Job Scheduling Leetcode Solution7347
42Next Permutation Leetcode Solution7335
43Frog Jump Leetcode Solution7293
44Running Sum of 1d Array Leetcode Solution7283
45Longest Common Prefix Leetcode Solution7278
46Move Zeroes LeetCode Solution7263
47Number of Islands LeetCode Solution7260
48Word Search Leetcode Solution7243
49Third Maximum Number Leetcode Solution7159
50Find Minimum Distance Between Two Numbers in an Array7098
51Rotate Image LeetCode Solution6950
52Bulb Switcher LeetCode Solution6903
53Combination Sum Leetcode Solution6891
54Next Greater Element I Leetcode Solution6882
55Median of Two Sorted Arrays LeetCode Solution6862
56Can Place Flowers LeetCode Solution6836
57Shuffle the Array Leetcode Solution6835
58Remove Duplicates from Sorted Array Leetcode Solution6828
593Sum Closest LeetCode Solution6787
60Multiply Strings Leetcode Solution6742
61Search in Rotated Sorted Array Leetcode Solution6697
62House Robber II Leetcode Solution6676
63Reverse String Without Temporary Variable6628
64Count and Say Leetcode Solution6622
65Strobogrammatic Number LeetCode Solution6602
66Missing Number Leetcode Solution6598
67Valid Anagram Leetcode Solution6500
68Subarray and Subsequence6476
69Excel Sheet Column Title Leetcode Solution6422
70Integer to Roman Leetcode Solution6400
71Isomorphic Strings Leetcode Solution6375
72Count Pairs With Given Sum6347
73Evaluation of Postfix Expression6340
74Koko Eating Bananas Leetcode Solution6308
75Product of array except self6260
76Rotate String LeetCode Solution6243
77String to Integer (atoi) LeetCode Solution6157
78Find the Difference Leetcode Solution6151
79Subtract the Product and Sum of Digits of an Integer Leetcode Solution6104
80Largest Number Leetcode Solution6037
81Candy LeetCode Solution5982
82Majority Element Leetcode Solution5976
83Happy Number Leetcode Solution5943
84Set Matrix Zeroes5885
85How Many Numbers Are Smaller Than the Current Number Leetcode Solution5862
86Balanced Binary Tree Leetcode Solution5848
87Find Common Characters Leetcode Solution5846
88Is Subsequence Leetcode Solution5789
89Summary Ranges Leetcode Solution5770
90Smallest window in a string containing all characters of another string5721
91Arranging Coins Leetcode Solution5692
92Find the Town Judge Leetcode Solution5690
93Word Pattern LeetCode Solution5654
94Unique Paths Leetcode Solution5635
95Subset Leetcode5612
96Rearrange Positive and Negative Numbers Alternatively in Array5581
97Sort Colors LeetCode Solution5561
98String Compression LeetCode Solution5484
99Sort Characters By Frequency LeetCode Solution5484
100Binary Search LeetCode Solution5469
101Asteroid Collision LeetCode Solution5427
102Repeated Substring Pattern LeetCode Solution5417
103Find the Winner of the Circular Game LeetCode Solution5398
104Find the Duplicate Number LeetCode Solution5386
105Best Time to Buy and Sell Stock LeetCode Solution5382
106Linked List Cycle II LeetCode Solution5338
107Reverse Integer Leetcode Solution5333
108Sort Array By Parity LeetCode Solution5333
109Valid Palindrome II Leetcode Solution5297
110Best Time to Buy and Sell Stock  II Leetcode Solution5263
111Sum of minimum and maximum elements of all subarrays of size k5263
112Product of Array Except Self LeetCode Solution5233
113A Product Array Puzzle5233
114Rabin Karp Algorithm5223
115Zigzag Conversion LeetCode Solution5217
116Divide Two Integers Leetcode Solution5175
117Expression Evaluation5163
118Bus Routes Leetcode Solution5154
119Group Anagrams LeetCode Solution5108
120Employee Free Time LeetCode Solution5100
121Merge Two Sorted Lists Leetcode Solutions5094
122First element occurring k times in an array5039
123Pascal Triangle Leetcode5019
124Minimum Cost For Tickets Leetcode Solution4983
125Matrix Chain Multiplication using Dynamic Programming4970
126Build Array From Permutation Leetcode Solution4958
127Postfix to Infix Conversion4953
128Page Replacement Algorithms in Operating Systems4938
129Length of Last Word Leetcode Solution4925
130Kth largest element in an Array Leetcode Solutions4918
131Number of Provinces Leetcode Solution4891
132Minimum Steps to reach target by a Knight4889
133Increasing Triplet Subsequence LeetCode Solution4884
134Optimal Account Balancing LeetCode Solution4851
135H-Index Leetcode Solution4833
136Implementation of Deque using Doubly Linked List4826
137Assign Cookies Leetcode Solution4823
138Decode String Leetcode Solution4801
139Fibonacci Number LeetCode Solution4799
140Defanging an IP Address Leetcode Solution4771
141Robot Room Cleaner Leetcode Solution4720
142First Unique Character in a String LeetCode Solution4710
143Generate Parentheses Leetcode Solution4705
144Convert array into Zig-Zag fashion4686
145Remove Duplicates from Sorted Array II Leetcode Solution4674
146Subarray with Given Sum4613
147Find Smallest Missing Number in a Sorted Array4606
148Swap Nodes in Pairs Leetcode Solutions4584
149Island Perimeter Leetcode Solution4567
150Check if the Elements of an Array are Consecutive4562
151Subarray Product Less Than K LeetCode Solution4561
152Pascal’s Triangle II Leetcode Solution4560
153Bellman Ford Algorithm4540
154Length of the largest subarray with contiguous elements4537
155Guess Number Higher or Lower LeetCode Solution4529
156K-th Smallest Element in a Sorted Matrix4527
157Prefix to Infix Conversion4522
158Add Two Numbers II Leetcode Solution4483
159Coin Change 2 Leetcode Solution4476
160Find the Missing Number4476
161Last Stone Weight4472
162Find First and Last Position of Element in Sorted Array Leetcode Solution4460
163KMP Algorithm4458
164Reverse Words in a String III LeetCode Solution4456
165Max Consecutive Ones Leetcode Solution4435
166Lemonade Change Leetcode Solution4428
167Form Minimum Number from Given Sequence of D’s and I’s4423
168Majority Element II Leetcode Solution4389
169OSI Model4384
170Design Parking System Leetcode Solution4380
171Capacity To Ship Packages Within D Days Leetcode Solution4376
172Combinations Leetcode Solution4345
173First negative integer in every window of size k4344
174Find Pair with Given Difference4344
175Backspace String Compare4322
176Remove Linked List Elements Leetcode Solution4319
177String Compression4319
178Palindrome Linked List Leetcode Solution4295
179Trapping Rain Water Leetcode Solution4291
180Find All Duplicates in an Array LeetCode Solution4291
181Iterative Implementation of Quick Sort4287
182Delete middle element of a stack4270
183Remove Duplicates from Sorted List II LeetCode Solution4258
184Repeated Substring Pattern4229
185Break a Palindrome LeetCode Solution4200
186Word Ladder LeetCode Solution4198
187Same Tree LeetCode Solution4187
188Remove All Occurrences of a Substring LeetCode Solution4171
189Monotonic Array LeetCode Solution4160
190Subarray Sum Equals K LeetCode Solution4148
191Slowest Key Leetcode Solution4148
192Merge Sorted Array LeetCode Solution4107
193Continuous Subarray Sum LeetCode Solution4089
194Merge k Sorted Lists Leetcode Solution4087
19501 Matrix LeetCode Solution4087
196Make The String Great Leetcode Solution4077
197Find the Row with Maximum Number of 1’s4059
198Convert a Number to Hexadecimal Leetcode Solution4029
199Leetcode Permutations4018
200Second Most Repeated Word in a Sequence4014
201Find Peak Element LeetCode Solution4006
202Number of Dice Rolls With Target Sum LeetCode Solution4006
203The K Weakest Rows in a Matrix Leetcode Solution3998
204Rearrange given Array in Maximum Minimum Form3990
205Time Based Key-Value Store LeetCode Solution3987
206Find N Unique Integers Sum up to Zero Leetcode Solution3978
207Moving Average from Data Stream Leetcode Solution3976
208Valid Perfect Square Leetcode Solution3971
209Kth Largest Element in a Stream Leetcode Solution3965
210Insert Delete GetRandom O(1) Leetcode Solution3956
211Single Element in a Sorted Array LeetCode Solution3954
212Delete Node in a Linked List Leetcode Solution3954
213Printing brackets in Matrix Chain Multiplication Problem3948
214Target Sum3947
215Combination Sum3943
216Rotate List Leetcode Solution3937
217Subarray Sum Equals k3899
218Generate all Binary Strings Without Consecutive 1’s3893
219Check If Two String Arrays are Equivalent Leetcode Solution3892
220Find the Duplicate Element3891
221Max Area of Island3887
222Top K Frequent Elements LeetCode Solution3884
223Longest Common Subsequence LeetCode Solution3871
224Palindrome Number3864
225Maximum Product of Three Numbers LeetCode Solution3860
226Reverse Only Letters LeetCode Solution3846
227Cuckoo sequence program3843
228Prefix to Postfix Conversion3828
229LRU Cache LeetCode Solution3809
230Minimum Knight Moves LeetCode Solution3807
231Relative Sort Array Leetcode Solution3801
232Relative Ranks Leetcode Solution3795
233Find Leaders in an Array3793
234Find Triplet in Array With a Given Sum3789
235Flipping an Image LeetCode Solution3779
236Number of Steps to Reduce a Number to Zero Leetcode Solution3778
237Scramble String3764
238Count Good Nodes in Binary Tree Leetcode Solution3760
239Maximum Population Year LeetCode Solution3738
240Letter Combinations of a Phone Number3736
241Permutation in String Leetcode Solution3731
242Smallest Positive Number Missing in an Unsorted Array3731
243Unique Paths II Leetcode Solution3715
244The kth Factor of n Leetcode Solution3699
245Check If N and Its Double Exist Leetcode Solution3695
246Stock Buy Sell to Maximize Profit3673
247Minimum swaps required to bring all elements less than or equal to k together3656
248To Lower Case Leetcode Solution3652
249Maximum Subarray Sum using Divide and Conquer3652
250Remove Minimum Characters so that Two Strings Become Anagrams3651
251Top K Frequent Elements3649
252N-Queens LeetCode Solution3648
253Minimum Operations to convert X to Y3646
254Given two unsorted arrays find all pairs whose sum is x3642
255Arithmetic Expression Evaluation3641
256Search Suggestions System LeetCode Solution3624
257Set Matrix Zeroes Leetcode Solution3624
258Sum of Subarray Ranges Leetcode Solution3588
259Student Attendance Record I Leetcode Solution3583
260Min Cost Climbing Stairs LeetCode Solution3576
261Find the Number Occurring Odd Number of Times in an Array3544
262Maximize Distance to Closest Person LeetCode Solution3540
263Top K Frequent Words LeetCode Solution3540
264Remove Duplicates from Sorted List LeetCode Solution3537
265License Key Formatting Leetcode Solution3536
266Maximum Sum Increasing Subsequence3511
267Reformat Date LeetCode Solution3495
268Stone Game LeetCode3466
269Next Permutation3456
270Construct Binary Tree from Given Inorder and Preorder Traversals3444
271Find if Path Exists in Graph Leetcode Solution3434
272Most Frequent Element in an Array3427
273Arrange given Numbers to Form the Biggest Number II3421
274Prim’s Algorithm3417
275Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution3397
276Reverse individual words3396
277Min Stack3390
278Minimum Characters to be Added at Front to Make String Palindrome3390
279Minimum Path Sum Leetcode Solution3387
280Find any one of the multiple repeating elements in read only array3380
281Container With Most Water LeetCode Solution3379
282Implement a stack using single queue3379
283Design A Leaderboard Leetcode Solution3377
284Diagonal Traverse LeetCode Solution3377
285Sort Elements by Frequency of Occurrences3371
286Count of index pairs with equal elements in an array3368
287Reverse words in a string3364
288Intersection of Two Arrays3357
289BFS for Disconnected Graph3350
290Evaluate Division3346
291Spiral Matrix II Leetcode Solution3326
292Maximum Depth of Binary Tree Leetcode Solution3313
293Find Words That Can Be Formed by Characters Leetcode Solution3305
294Diagonal Traversal LeetCode Solution3300
295Special Array With X Elements Greater Than or Equal X Leetcode Solution3297
296Count Number of Occurrences in a Sorted Array3293
297Invalid Transactions LeetCode Solution3284
298Minimum number of Merge Operations to make an Array Palindrome3276
299Length of Longest valid Substring3269
300Find The Duplicate Number3265
301Reveal Cards In Increasing Order Leetcode Solution3253
302Best Time to Buy and Sell Stock III Leetcode Solution3251
303Contains Duplicate LeetCode Solution3245
304Longest Common Subsequence3243
305House Robber3243
306Least Number of Unique Integers after K Removals Leetcode Solution3231
307Symmetric Tree Leetcode Solution3214
308Remove Nth Node From End of List Leetcode Solution3206
309Last Stone Weight II LeetCode Solution3196
310Maximum Size Subarray Sum Equals k Leetcode Solution3194
311Single Number3187
312Brightest Position on Street LeetCode Solution3185
313Robot Bounded In Circle LeetCode Solution3178
314Special Positions in a Binary Matrix Leetcode Solution3174
315Find Leaves of Binary Tree LeetCode Solution3162
316Partition Labels LeetCode Solution3152
317Sudoku Solver3152
318Binary Tree Zigzag Level Order Traversal LeetCode Solution3143
319Construct BST from its given Level Order Traversal3141
320N-th Tribonacci Number Leetcode Solution3136
321The Celebrity Problem3132
322Alien Dictionary LeetCode Solution3129
323Shortest Word Distance Leetcode Solution3127
324Find the Closest Palindrome number3124
325Binary Tree Inorder Traversal LeetCode Solution3121
326Lowest Common Ancestor of a Binary Tree Leetcode Solution3112
327Range Sum Query 2D – Immutable Leetcode Solution3104
328Reverse Bits3098
329Invert Binary Tree LeetCode Solution3096
330Next Greater Element III LeetCode Solution3094
331One Edit Distance LeetCode Solution3089
332Check whether Strings are K Distance Apart or Not3081
333Mobile Numeric Keypad Problem3072
334Count of Triplets With Sum Less than Given Value3065
335Find Duplicates in an Array in Most Efficient Way3063
336Round Robin Scheduling3047
337Jump Game3046
338Pair of Positive Negative Values in an Array3038
339Next Permutation LeetCode Solution3030
340Remove All Ones With Row and Column Flips Leetcode Solution3012
341Find Index of Closing Bracket for a Given Opening Bracket in an Expression3008
342Regular Expression Matching Regular Expression Matching LeetCode Solution3005
343Clone Graph LeetCode Solution3003
344Find Winner on a Tic Tac Toe Game Leetcode Solution3000
345Sort Array By Parity II Leetcode Solution3000
346Minimum operation to make all elements equal in array3000
347Remove Invalid Parentheses Leetcode Solution2995
348Largest Rectangle in Histogram LeetCode Solution2994
349Painting Fence Algorithm2986
350Merge Two Sorted Linked Lists2978
351Partition Array Into Three Parts With Equal Sum Leetcode Solution2972
352Find the First and Second Smallest Elements2957
353Minimum Time Visiting All Points Leetcode Solution2956
354Find Top K (or Most Frequent) Numbers in a Stream2941
355Combination Sum IV LeetCode Solution2935
356Minimum Moves to Equal Array Elements Leetcode Solution2933
357Maximal Square2933
358Rank Transform of an Array Leetcode Solution2929
359Tug of War2927
360Maximum Length of a Concatenated String with Unique Characters Leetcode Solution2926
361Check if a given array contains duplicate elements within k distance from each other2918
362Find the subarray with least average2918
363Sort a stack using a temporary stack2916
364Longest subarray not having more than K distinct elements2910
365Find minimum difference between any two elements2908
366Reverse Nodes in k-Group LeetCode Solution2904
367Longest subsequence such that difference between adjacents is one2900
368Number of Smaller Elements on Right Side2898
369String Matching in an Array Leetcode Solution2896
370K Empty Slots LeetCode2890
371Range Sum of BST LeetCode Solution2887
372Unique Paths2886
373LRU Cache Implementation2886
374Maximum Circular Subarray Sum2884
375Minimum Depth of Binary Tree Leetcode Solution2882
376Maximum Number of Occurrences of a Substring Leetcode Solution2877
377Bitwise AND of Numbers Range LeetCode Solution2877
378Find the Smallest Divisor given a Threshold Leetcode Solution2870
379Path With Maximum Minimum Value LeetCode Solution2869
380Longest Palindrome can be Formed by Removing or Rearranging Characters2867
381Paint House LeetCode Solution2865
382Longest Common Prefix using Trie2865
383Design Browser History LeetCode Solution2862
384Minimum Cost to Hire K Workers2862
385LRU Cache Leetcode Solution2856
386Sliding Window Technique2856
387Missing Element in Sorted Array LeetCode Solution2852
388Find Maximum Level sum in Binary Tree2849
389Integer Break LeetCode Solution2848
390Ugly Number II LeetCode Solution2847
391Smallest Subarray with k Distinct Numbers2847
392Dijkstra Algorithm2847
393Best Time to Buy and Sell Stock with Cooldown Leetcode Solution2846
394Minimize Maximum Pair Sum in Array LeetCode Solution2839
395First Circular Tour to Visit all the Petrol Bunks2837
396Insert Interval Leetcode Solution2836
397Common elements in all rows of a given matrix2833
398Permutation Sequence LeetCode Solution2829
399Non-decreasing Array LeetCode Solution2829
400Hamming Distance Leetcode Solution2829
401Graph Valid Tree LeetCode Solution2826
402Split Linked List in Parts Leetcode Solution2823
403Find the Peak Element from an Array2823
404Number of Islands II LeetCode Solution2818
405Consecutive Characters LeetCode Solution2809
406Given an Array of Pairs Find all Symmetric Pairs in it2801
407Queries for counts of array elements with values in given range2793
408Minimum Time to Collect All Apples in a Tree LeetCode Solution2791
409Transpose Graph2785
410K Closest Points to Origin Leetcode Solution2783
411Unique Paths III LeetCode Solution2777
412Invert Binary Tree LeetCode Solution2769
413Number of Closed Islands Leetcode Solution2769
414Max stack2766
415Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions2765
416Find duplicates in a given array when elements are not limited to a range2765
417Priority Queue using doubly linked list2765
418Minesweeper LeetCode Solution2756
419Stone Game II Leetcode2744
420Implementation of Deque using circular array2740
421Move All the Zeros to the End of the Given Array2737
422Sort elements by frequency2731
423Decompress Run-Length Encoded List Leetcode Solution2725
424Maximum Consecutive Numbers Present in an Array2721
425Design a stack that supports getMin() in O(1) time and O(1) extra space2717
426Replace Elements with Greatest Element on Right Side Leetcode Solution2710
427Is Graph Bipartite? LeetCode Solution2709
428Odd Even Linked List Leetcode Solution2708
429Convert Sorted Array to Binary Search Tree LeetCode Solutions2708
430Word Search2707
431Nth Catalan Number2702
432Top View of Binary Tree2700
433Stack Permutations (Check if an array is stack permutation of other)2697
434Expression Contains Redundant Bracket or Not2697
435Binary Tree Maximum Path Sum LeetCode Solution2693
436Restore IP Addresses Leetcode Solution2691
437Snakes and Ladders LeetCode Solution2687
438Sorting array using Stacks2683
439Longest Common Prefix using Sorting2682
440Partition List Leetcode Solution2678
441Can Make Arithmetic Progression From Sequence Leetcode Solution2676
442Integer to English words2666
443Kth Smallest Element in a BST Leetcode Solution2665
444Gold Mine Problem2665
445Toeplitz Matrix2665
446Path Sum II LeetCode Solution2664
447Priority Queue in C++2664
448Reverse a linked list2662
449Rearrange array such that even positioned are greater than odd2657
450Validate Stack Sequences LeetCode Solution2653
451Maximum Subarray2652
452Count Submatrices With All Ones LeetCode Solution2647
453Recursion2645
454Flood Fill LeetCode2640
455Vertical Order Traversal of Binary Tree LeetCode Solution2636
456Multiplication of Two Matrices2634
457Kth Non-repeating Character2629
458Find a Peak Element II LeetCode Solution2628
459Number of Days Between Two Dates LeetCode Solution2627
460Palindrome Substring Queries2624
461Minimum Absolute Difference in BST Leetcode Solution2623
462Sequences of given length where every element is more than or equal to twice of previous2619
463Number Complement Leetcode Solution2611
464How to Implement Stack Using Priority Queue or Heap?2608
465Find a Fixed Point in a Given Array2608
466Cells with Odd Values in a Matrix LeetCode Solution2603
467Longest Increasing Path in a Matrix LeetCode Solution2601
468Search a 2D Matrix II Leetcode Solution2596
469Queries for GCD of all numbers of an array except elements in a given range2590
470Find All Possible Recipes from Given Supplies LeetCode Solution2587
471Minimum Path Sum2581
472Reorder Data in Log Files LeetCode Solution2580
473Longest Substring with At Most K Distinct Characters LeetCode Solution2576
474Distance of nearest cell having 1 in a binary matrix2576
475Majority Element2572
476Shortest Completing Word Leetcode Solution2571
477Search in a Binary Search Tree Leetcode Solution2569
478Convert Sorted Array to Binary Search Tree Leetcode Solution2569
479Intersection of Two Linked Lists LeetCode Solution2563
480Detect a loop in the Linked List2562
481Kruskal Algorithm2561
482Trapping Rain Water LeetCode Solution2548
483Best Time to Buy and Sell Stock2544
484Scramble String LeetCode Solution2543
485Find Pythagorean Triplets from Array2543
486Minimum Number of Taps to Open to Water a Garden LeetCode Solution2542
487Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest2541
488High Five LeetCode Solution2539
489Shortest Palindrome2537
490Insert into a Binary Search Tree Leetcode Solution2533
491Largest rectangular sub-matrix whose sum is 02531
492Find Median from Data Stream LeetCode Solution2527
493Merge Two Binary Trees LeetCode Solution2527
494Tiling Problem2526
495Design Hit Counter LeetCode Solution2523
496The Stock Span Problem2519
497Generate all Binary Strings from Given Pattern2517
498Balanced Expression with Replacement2514
499Insert Node in the Sorted Linked List2513
5004Sum2512
501Implement Trie (Prefix Tree) Leetcode Solution2507
502Check If Array Pairs Are Divisible by k LeetCode Solution2503
503Postfix to Prefix Conversion2503
504Divide Chocolate LeetCode Solution2501
505Find Minimum in Rotated Sorted Array II LeetCode Solution2496
506Custom Sort String Leetcode Solution2496
507Longest Common Prefix using Divide and Conquer2491
508Race Car LeetCode Solution2490
509Guess Number Higher or Lower II2489
510Find the Minimum Element in a Sorted and Rotated Array2488
511Camelcase Matching Leetcode Solution2482
512Pancake Sorting Problem2482
513Check if Two given Strings are Isomorphic to each other2481
514The Maze III LeetCode Solution2479
515Evaluate Reverse Polish Notation LeetCode Solution2473
516Largest Subarray with Equal Number of 0’s and 1’s2473
517Kth ancestor of a node in binary tree2471
518Spiral Matrix III LeetCode Solution2470
519Letter Case Permutation2467
520Count subarrays having total distinct elements same as original array2466
521Print all Palindromic Partitions of a String2466
522Substring with Concatenation of All Words Leetcode Solution2460
523Check if Array Contains Contiguous Integers With Duplicates Allowed2457
524Interval Tree2456
525Palindrome Permutation LeetCode Solution2451
526Sort Colors2441
527Sliding Window Maximum LeetCode Solution2439
528Sieve of Eratosthenes2437
529Sliding Window Median Leetcode Solution2435
530LCS (Longest Common Subsequence) of three strings2435
531Count Possible Triangles2434
532Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution2433
533Convert BST to Min Heap2431
534Analyze User Website Visit Pattern LeetCode Solution2430
535Merge Overlapping Intervals2427
536Find the first Repeating Number in a Given Array2424
537Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution2418
538Maximum Sum of Non Consecutive Elements2406
539Sort an array according to the order defined by another array2402
540Minimum Bracket Reversals2401
541Fibonacci numbers2401
542Find a Sorted Subsequence of size 32400
543How to Create Mergable Stack?2398
544Edit Distance LeetCode Solution2390
545Maximum Length of Chain Pairs2388
546Decode String2386
547Coin Change Problem2386
5483 Sum2384
549Minimum Jumps to Reach Home LeetCode Solution2383
550Jump Game IV LeetCode Solution2381
551Longest Repeated Subsequence2380
552Iterative Method to find Height of Binary Tree2380
553Maximum Number of Ways to Partition an Array LeetCode Solution2367
554Implement Two Stacks in an Array2367
555Group Anagrams2365
556Minimum Height Trees2365
557Perfect Squares LeetCode Solution2363
558Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2357
559Maximum Element in an Array which is Increasing and then Decreasing2356
560N queen problem2349
561Longest Substring with At Least K Repeating Characters LeetCode Solution2348
562Path Crossing Leetcode Solution2348
563Number of Distinct Islands Leetcode Solution2347
564Find the Lost Element From a Duplicated Array2347
565Shifting Letters LeetCode Solution2346
566Different Ways to Add Parentheses Leetcode Solution2341
567Find maximum length Snake sequence2341
568Recover Binary Search Tree Leetcode Solution2338
569Build an Array With Stack Operations Leetcode Solution2326
570K-th Distinct Element in an Array2326
571Decode Ways2325
572Fibonacci Number LeetCode Solution2317
573Rectangle Overlap LeetCode Solution2314
574Subarrays with K Different Integers Leetcode Solution2311
575Champagne Tower LeetCode Solution2311
576Sorted Linked List to Balanced BST2308
577Nearest Exit from Entrance in Maze LeetCode Solution2307
578Subset sum problem2300
579Contains Duplicate2296
580Most Stones Removed with Same Row or Column LeetCode Solution2295
581Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution2293
582Find if an Expression has Duplicate Parenthesis or Not2290
583Count items common to both the lists but with different prices2287
584Find the two Numbers with Odd Occurrences in an Unsorted Array2281
585Find Largest Value in Each Tree Row LeetCode Solution2277
586First missing positive2273
587Possible Bipartition LeetCode Solution2271
588Monotonic Array Leetcode Solution2270
589Palindrome Partitioning Leetcode Solution2269
590Queue based approach for first non-repeating character in a stream2267
591Valid Boomerang Leetcode Solution2266
592Sort a stack using recursion2264
593Design a Stack With Increment Operation Leetcode Solution2262
594Number of Equivalent Domino Pairs Leetcode Solution2255
595Sliding Window Maximum2254
596Minimum Height Trees LeetCode Solution2253
597Palindrome Permutations of a String2250
598Contiguous Array LeetCode Solution2244
599Sort a String According to Another String2237
600Palindromic Substrings Leetcode Solution2232
601Find the Town Judge LeetCode Solution2230
602Merge Overlapping Intervals II2224
603Detect Capital Leetcode Solution2222
604Reorder an Array According to the Given Indexes2222
605Maximum Frequency Stack Leetcode Solution2221
606Rearrange Spaces Between Words Leetcode Solution2220
607Merge Two Balanced Binary Search Trees2218
608Distance Between Bus Stops Leetcode Solution2212
609Word Break2212
610Best Meeting Point LeetCode Solution2211
611Number of palindromic paths in a matrix2193
612Morris Traversal2191
613Maximum sum rectangle in a 2D matrix2191
614Swapping Nodes in a Linked List Leetcode Solution2188
615Valid Parentheses Leetcode Solution2185
616Perform String Shifts Leetcode2183
617Find the Subarray of given length with Least Average2183
618Caesar Cipher2168
619Maximum Product of Splitted Binary Tree LeetCode Solution2166
620Find Median from data Stream2164
621Maximum Depth of N-ary Tree Leetcode Solution2161
622Check if the given array can represent Level Order Traversal of Binary Search Tree2161
623Merge K Sorted Arrays and Print Sorted Output2161
624Recover Binary Search Tree2158
625All Possible Full Binary Trees LeetCode Solution2155
626Maximum Score After Splitting a String Leetcode Solution2153
627Construction of Longest Increasing Subsequence (N log N)2152
628Maximize Elements Using Another Array2139
629A Space Optimized DP solution for 0-1 Knapsack Problem2139
630Brick Wall LeetCode Solution2138
631Minimum number of jumps to reach end2137
632Queue using Stacks2135
633Reach a Number LeetCode Solution2133
634Smallest Good Base2133
635Find First and Last Position of Element in Sorted Array LeetCode Solution2131
636Pair with given product2129
637Palindrome Permutation2124
638Mean of Array After Removing Some Elements Leetcode Solution2123
639Find the First Circular Tour that visits all the Petrol Pumps2123
640Binary Tree zigzag level order Traversal2123
641Word Pattern2122
642Implement strStr() LeetCode Solution2116
643Maximum Number of Chocolates to be Distributed Equally Among k Students2112
644My Calendar I LeetCode Solution2108
645Valid Sudoku2107
646Split Array Into Consecutive Subsequences2097
647Check if a Linked list of Strings form a Palindrome2097
648How to Efficiently Implement k Stacks in a Single Array?2079
649Find all pairs (a, b) in an array such that a % b = k2075
650Binary Tree Right Side View LeetCode Solution2074
651Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2074
652Populating Next Right Pointers in Each Node Leetcode Solution2073
653Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2072
654Convert Sorted List to Binary Search Tree2072
655Group Multiple Occurrence of Array Elements Ordered by first Occurrence2067
656Count pair with Given Sum2063
657Minimum Sum Path in a Triangle2061
658Check if String Follows Order of Characters by a Pattern or not2060
659Add two numbers2055
660Web Crawler LeetCode Solution2053
661Remove brackets from an algebraic string containing + and – operators2048
662Huffman Coding2048
663Largest Sum Contiguous Subarray2042
664Minimum Swaps to Group All 1’s Together Leetcode Solution2041
665Design Skiplist LeetCode Solution2041
666Concatenation of Array LeetCode Solution2031
667Find whether a subarray is in form of a mountain or not2031
668Best Time to Buy and Sell Stock IV LeetCode Solution2030
669Count ways to reach the nth stair using step 1, 2 or 32026
670Print all subarrays with 0 sum2025
671Segregate 0s and 1s in an Array2024
672Print Fibonacci sequence using 2 variables2023
673Count Sub Islands LeetCode Solution2021
674Arithmetic Slices II – Subsequence LeetCode Solution2021
675Length of Longest Fibonacci Subsequence2019
676Minimum time required to rot all oranges2016
677Populating Next Right Pointers in Each Node2006
678Partition to K Equal Sum Subsets Leetcode Solution2004
679Longest Subarray Having Count of 1s One More than Count of 0s2004
680Find Maximum of Minimum for Every Window Size in a Given Array2003
681Sort 0s 1s and 2s in an Array1999
682Elements Appear more than N/K times in Array1997
683Construct BST from given Preorder Traversal1993
684Level order Traversal in Spiral Form1993
685Find four elements that sum to a given value (Hashmap)1989
686Isomorphic Strings LeetCode Solution1988
687Range Sum Query 2D – Immutable LeetCode Solution1988
688All Unique Triplets that Sum up to a Given Value1988
689Finding K closest element1982
690Swap Kth Node from beginning with Kth Node from End1981
691Partition Problem1974
692Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i1971
693Count Distinct Elements in Every Window of Size K1971
694Shortest Path in a Grid with Obstacles Elimination LeetCode Solution1963
695Validate Binary Search Tree1956
696Find all triplets with zero sum1955
697Heap Sort1955
698Remove Palindromic Subsequences Leetcode Solution1953
699Maximize Sum of Array after K Negations Leetcode Solution1946
700Check for Balanced Parentheses in an Expression1945
701Bubble sort using two Stacks1943
702Counting Bits1940
703Difference Array | Range update query in O(1)1935
704Nested List Weight Sum II LeetCode Solution1930
705Find All Pairs With a Given Difference1929
706Find Duplicate Subtrees1921
707Count Minimum Steps to Get the given Array1909
708Contiguous Array Leetcode1903
709Rearrange an Array Such that arr[i] is equal to i1901
710MiniMax Algorithm1899
711Binary Tree to Binary Search Tree Conversion1898
712String comparison containing wildcards1898
713Linked List Cycle1896
714Maximum Distance in Array1888
715Maximum Product Subarray II1888
716Reorder Array Using Given Indexes1884
717Merge K Sorted Linked Lists1882
718Sum Root to Leaf Numbers LeetCode Solution1880
719Parallel Courses II LeetCode Solution1880
720Root to Leaf path with target sum Leetcode Solutions1877
721Reverse Nodes in K-Group1874
722Increasing Subsequence of Length three with Maximum Product1871
723Check if Two Expressions With Brackets are Same1869
724Maximum difference between two elements such as larger element comes after smaller1867
725Happy Number1865
726Longest Increasing Subsequence1861
727Merge Two Sorted Lists Leetcode1860
728Inorder Successor of a node in Binary Tree1858
729Check if any two intervals overlap among a given set of intervals1858
730Symmetric Tree1857
731Container with Most Water1854
732Alien Dictionary1853
733Minimum Distance Between BST Nodes Leetcode Solution1851
734Flatten 2D Vector LeetCode Solution1848
735An Interesting Method to generate Binary Numbers from 1 to n1840
736Longest Common Prefix Using Binary Search II1840
737K maximum sums of overlapping contiguous sub-arrays1839
738Rotate Array1837
739Union and Intersection of two Linked Lists1833
740Queue Reconstruction by Height1831
741Iterative Depth First Traversal of Graph1827
742Score of Parenthesis LeetCode Solution1826
743Minimum Swaps to Make Strings Equal Leetcode Solution1821
744Delete Nth node from the end of the given linked list1821
745Count Good Nodes in Binary Tree LeetCode Solution1820
746Find pairs with given sum such that elements of pair are in different rows1819
747Minimum Cost to Move Chips to The Same Position LeetCode Solution1818
748Queries on Probability of Even or Odd Number in given Ranges1812
749Kill Process LeetCode Solution1807
750Find the first repeating element in an array of integers1807
751Smallest Range II Leetcode Solution1803
752Climbing stairs1803
753Delete Nodes and Return Forest Leetcode Solution1800
754Longest Common Prefix Word by Word Matching1798
755Find subarray with given sum (Handles Negative Numbers)1796
756Substring With Concatenation Of All Words1796
757Print a Binary Tree in Vertical Order1795
758Breadth First Search (BFS) for a Graph1794
759Merging Intervals1781
760Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution1779
761Check if a queue can be sorted into another queue using a stack1774
762New 21 Game1773
763Remove duplicates from sorted array1770
764Peak Index in a Mountain Array LeetCode Solution1766
765Iterative Preorder Traversal1765
766Valid Parenthesis String1764
767Maximum size subarray sum equals k1752
768Minimum Size Subarray Sum1751
769Range LCM Queries1743
770Find K Closest Elements LeetCode Solution1742
771Sorting a K Sorted Array1739
772Sort Array by Increasing Frequency Leetcode Solution1738
773Find the Difference Leetcode Solution1736
774Find Maximum Sum Possible Equal Sum of Three Stacks1733
775Verify Preorder Serialization of a Binary Tree1731
776Friends Of Appropriate Ages LeetCode Solution1730
777Matrix Chain Multiplication1730
778Construct Binary Tree from given Parent Array representation1729
779Vertical sum in a given binary tree1727
780Count pairs from two linked lists whose sum is equal to a given value1722
781Find Sum of all unique sub-array sum for a given array1719
782Find K Length Subarray of Maximum Average1716
783Check if a given array can represent Preorder Traversal of Binary Search Tree1712
784Minimum Number of Arrows to Burst Balloons LeetCode Solution1710
785Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution1709
786Reservoir Sampling1704
787Defanging an IP Address LeetCode Solution1702
788Find Three Element From Different Three Arrays Such That a + b + c = sum1699
789Minimum Remove to Make Valid Parentheses LeetCode Solution1698
790Maximum Product Subarray1698
791Valid Anagrams1697
792Remove Duplicates from Sorted List II1697
793Non-overlapping sum of two sets1696
794Sum of f(a[i], a[j]) over all pairs in an array of n integers1695
795Flatten Binary Tree to Linked List LeetCode Solution1688
796The Painter’s Partition Problem1684
797Boolean Parenthesization Problem1683
798Given a binary tree, how do you remove all the half nodes?1682
799Print All Distinct Elements of a Given Integer Array1679
800Employee Importance LeetCode Solution1678
801Find the largest multiple of 31677
802Number of siblings of a given Node in n-ary Tree1676
803Boundary Traversal of binary tree1674
804Unique Binary Search Trees1667
805Deletion in a Binary Tree1664
806Closest Leaf in a Binary Tree LeetCode Solution1661
807Partition Equal Subset Sum1658
808Print all triplets in sorted array that form AP1654
809Median of Two Sorted Arrays1653
810Level order traversal using two Queues1648
811Products of ranges in an array1647
812Infix to Postfix1647
813Check Completeness of a Binary Tree LeetCode Solution1646
814Count and Say1645
815Isomorphic Strings1645
816Level of Each node in a Tree from source node1643
817Third Maximum Number Leetcode Solution1641
818Tree Traversal (Preorder, Inorder & Postorder)1641
819Count number of triplets with product equal to given number1640
820Find Peak Element1639
821Pancake Sorting1639
822Largest BST Subtree LeetCode Solution1636
823Distinct Subsequences1634
824Find Element Using Binary Search in Sorted Array1634
825Hamming Distance1632
826Bold Words in String LeetCode Solution1631
827Maximum subsequence sum such that no three are consecutive1630
828Subset Sum Problem in O(sum) space1627
829Unique Binary Search Trees LeetCode Solution1624
830Find distance between two nodes of a Binary Tree1618
831Longest Palindromic Subsequence1617
832Largest divisible pairs subset1616
833Create Maximum Number1613
834Find Nth Node1611
835Palindrome Partitioning1605
836Super Ugly Number1604
837Array Nesting Leetcode Solution1599
838Find Common Characters Leetcode Solution1597
839Valid Number1596
840Largest Submatrix With Rearrangements LeetCode Solution1594
841Four Elements that Sum to Given1591
842Missing Number1590
843Kth Smallest Element in a Sorted Matrix LeetCode Solution1587
844BFS vs DFS for Binary Tree1586
845Minimum insertions to form a palindrome with permutations allowed1581
846Serialize and Deserialize Binary Tree LeetCode Solution1579
847Binary array after M range toggle operations1579
848Valid Triangle Number LeetCode Solution1571
849Maximum number of segments of lengths a, b and c1571
850Transform a BST to Greater sum Tree1569
851Sort Elements by Frequency II1568
852Lowest Common Ancestor1567
853Compare Strings by Frequency of the Smallest Character Leetcode Solution1566
854Check if two nodes are on the same path in a Tree1566
855Shuffle an Array1566
856Find Smallest Range Containing Elements from k Lists1561
857Newman-Conway Sequence1561
858Maximum Population Year LeetCode Solution1558
859Number Of Longest Increasing Subsequence1557
860Binary Tree Longest Consecutive Sequence LeetCode Solution1556
861Next Greater Element in an Array1554
862Next Greater Element II LeetCode Solution1553
863Sentence Screen Fitting LeetCode Solution1551
864Integer to Roman1547
865Insert Delete GetRandom1542
866Balanced Binary Tree1542
867Averages of Levels in Binary Tree1542
868Trapping Rain Water II LeetCode Solution1535
869Closest Binary Search Tree Value Leetcode Solution1530
870Maximum Sum of 3 Non-Overlapping Subarrays1530
871Largest subarray with equal number of 0s and 1s1525
872Minimum sum of squares of character counts in a given string after removing k characters1522
873Valid Triangle Number LeetCode Solution1521
874Path Sum1521
875Height of a generic tree from parent array1520
876Encoded String With Shortest Length LeetCode Solution1518
877Merge Two Sorted Arrays1517
878Stone Game IV LeetCode Solution1513
879Merging Two Sorted Arrays1512
880Topological Sorting1511
881Stone Game IV LeetCode Solution1509
882Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution1509
883Kth Smallest Number in Multiplication Table Leetcode Solution1507
884Check if all levels of two Binary Tree are anagrams or not1507
885First Bad Version1501
886Permutations of a Given String Using STL1497
887Arrange given numbers to form the biggest number1496
888Lower Case To Upper Case1496
889Count Primes in Ranges1491
890Red-Black Tree Introduction1487
891Range Minimum Query (Square Root Decomposition and Sparse Table)1486
892Contiguous Array1485
893Find minimum number of merge operations to make an array palindrome1482
894Reorganize String1478
895Diameter of N-Ary Tree LeetCode Solution1473
896Find unique character in a string1472
897Iterative Postorder Traversal Using Two Stacks1471
898Print Right View of a Binary Tree1469
899Friends Pairing Problem1469
900Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’1468
901Find Minimum In Rotated Sorted Array1466
902Level Order Traversal of Binary Tree1465
903Maximum difference between first and last indexes of an element in array1464
904Orderly Queue LeetCode Solution1460
905Find Largest d in Array such that a + b + c = d1460
906Diagonal Traversal of Binary Tree1454
907Bottom View of a Binary Tree1449
908Minimum Swaps To Make Sequences Increasing LeetCode Solution1448
909Reverse a Path in BST using Queue1445
910Swap Nodes In Pairs1445
911Binary Search Tree Delete Operation1444
912Constant time range add operation on an array1443
913Longest Bitonic Subsequence1441
914Largest Plus Sign Leetcode Solution1440
915Valid Perfect Square LeetCode Solution1439
916Total Hamming Distance LeetCode Solution1438
917Next greater element1435
918Koko Eating Bananas LeetCode Solution1434
919Serialize and Deserialize Binary Tree1431
920Count the Pairs at Same Distance as in English Alphabets1426
921Best Meeting Point LeetCode Solution1417
922Range Sum Query using Sparse Table1413
923Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution1412
924Segment Tree1408
925Binary Search Tree Search and Insertion1406
926Edit Distance1405
927Maximum Product Subarray1405
928Valid Tic-Tac-Toe State LeetCode Solution1399
929Longest Substring Without Repeating Characters Leetcode Solution1395
930Maximum Product Subarray1395
931Find the smallest binary digit multiple of given number1391
932A program to check if a binary tree is BST or not1387
933Advantages of BST over Hash Table1387
934Convert BST into a Min-Heap without using array1377
935The Number of Weak Characters in the Game LeetCode Solution1376
936Group Shifted Strings Leetcode Solution1371
937Maximum difference between frequency of two elements such that element having greater frequency is also greater1370
938Maximum Sum Increasing Subsequence1370
939Shuffle a given Array1368
940Design Add and Search Words Data Structure LeetCode Solution1363
941K’th Largest element in BST using constant extra space1362
942Greatest Sum Divisible by Three LeetCode Solution1361
943Longest Increasing Consecutive Subsequence1358
944Array Queries for multiply replacements and product1357
945Image Overlap LeetCode Solution1353
946Priority Queue1351
947Write a function to get the intersection point of two Linked Lists1349
948Dividing Array into Pairs With Sum Divisible by K1343
949Design Underground System Leetcode Solution1338
950Collect maximum points in a grid using two traversals1337
951Construct Complete Binary Tree from its Linked List Representation1333
952Print Next Greater Number of Q queries1333
953Print n terms of Newman-Conway Sequence1332
954Range Queries for Longest Correct Bracket Subsequence1332
955Factorial Trailing Zeroes LeetCode Solution1326
956Insert into a Sorted Circular Linked List LeetCode Solution1320
957Queries on XOR of greatest odd divisor of the range1320
958Check if an Array is Stack Sortable1320
959Find the node with minimum value in a Binary Search Tree1318
960Swim in Rising Water LeetCode Solution1315
961Merge Sort1315
962Sorted Array to Balanced BST1312
963Lowest Common Ancestor in Binary Search Tree1312
964Find postorder traversal of BST from preorder traversal1309
965Form Minimum Number From Given Sequence1309
966Guess The Word1307
967Power of Two1303
968Print modified array after multiple array range increment operations1302
969Maximum Array from Two given Arrays Keeping Order Same1297
970Clone a Binary Tree with Random Pointers1297
971Form minimum number from given sequence1294
972Excel Sheet Column Number LeetCode Solution1293
973K’th Largest Element in BST when modification to BST is not allowed1293
974Print all Possible Ways to Break a String in Bracket Form1289
975Longest Common Prefix using Character by Character Matching1288
976Numbers with prime frequencies greater than or equal to k1285
977Queries for Number of Distinct Elements in a Subarray1280
978Moving Stones Until Consecutive Leetcode Solution1276
979Merge Sorted Array1275
980Count and Toggle Queries on a Binary Array1263
981K Empty Slots1263
982Write Code to Determine if Two Trees are Identical1259
983Check for Palindrome after every character replacement Query1256
984Decrease Elements To Make Array Zigzag LeetCode Solution1255
985Check if each internal node of a BST has exactly one child1254
986Search in Sorted Rotated Array1252
987Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1246
988Count even length binary sequences with same sum of first and second half bits1246
989Cutting a Rod1245
990Find Maximum Depth of Nested Parenthesis in a String1244
991Number of elements less than or equal to a given number in a given subarray1240
992Kth Smallest Product of Two Sorted Arrays LeetCode Solution1229
993Number of Orders in the Backlog Leetcode Solution1227
994Closest Binary Search Tree Value II LeetCode Solution1226
995Find maximum average subarray of k length1226
996Check if X can give change to every person in the Queue1222
997Binary Search Tree1222
998Queries for Decimal Values of Subarrays of a Binary Array1220
999Minimum Moves to Equal Array Elements LeetCode Solution1210
1000Merge two BSTs with limited extra space1207
1001Unique Paths II1204
1002Count Pairs Whose Products Exist in Array1203
1003Print Ancestors of a Given Binary Tree Node Without Recursion1200
1004Kth Smallest Element in a BST1193
1005Symmetric Tree LeetCode Solution Leetcode Solution1188
1006Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1186
1007Regular Expression Matching1184
1008Maximum weight transformation of a given string1177
1009Shortest Unsorted Continuous Subarray LeetCode Solution1175
1010Sum of Left Leaves LeetCode Solution1172
1011How to print maximum number of A’s using given four keys1167
1012Graph Cloning1163
1013Random Pick Index LeetCode Solution1155
1014Maximum Depth Of Binary Tree1149
1015Excel Sheet Column Title LeetCode Solution1139
1016Search an Element in Sorted Rotated Array1132
1017Palindrome Partitioning1125
1018Data Structure Designing1112
1019Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1111
1020Check given array of size n can represent BST of n levels or not1109
1021Iterative method to find ancestors of a given binary tree1105
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1103
1023Maximum Binary Tree1083
1024Next Greater Element I Leetcode Solution1075
1025Binary Tree to Binary Search Tree Conversion using STL set1053
1026Find k-th smallest element in BST (Order Statistics in BST)1050
1027Find the Town Judge LeetCode Solution1045
1028Print Maximum Length Chain of Pairs1001
1029Peeking Iterator LeetCode Solution980
1030Flatten Binary Tree to Linked List LeetCode Solution979
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution961
Translate »