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 Solution43597
2Maximum occurring character in a string19753
3Plus One Leetcode Solution19315
4Valid Parentheses LeetCode Solution19216
53Sum Leetcode Solution17200
6Merge Sorted Arrays Leetcode Solution15308
7First Repeating Element15182
8Single Number Leetcode Solution14872
9Count Primes Leetcode Solutions14671
10Pow(x, n) Leetcode Solution14351
11Sqrt(x) Leetcode Solution14182
12Meeting Rooms II LeetCode Solution13298
13Concatenation of Array LeetCode Solution12783
14Roman to Integer Leetcode Solution11970
15Valid Palindrome Leetcode Solution11853
16Search Insert Position Leetcode Solution11777
17Contains Duplicate II Leetcode Solution11760
18Palindrome Number LeetCode Solution11574
19Remove Duplicates from Sorted Array Leetcode Solution11445
20Jump Game Leetcode Solution11181
21Reverse Vowels of a String Leetcode Solution11162
22Intersection of Two Arrays II Leetcode Solution11063
23Longest Substring Without Repeating Characters LeetCode Solution11056
24Number of Good Pairs Leetcode Solution10923
25Spiral Matrix LeetCode Solution10840
26Kids With the Greatest Number of Candies Leetcode Solution10781
27House Robber Leetcode Solution10740
28Add Binary Leetcode Solution10633
29Maximum Subarray Leetcode Solution10244
30Number Of 1 bits10128
31Find the Maximum Repeating Number in Array9992
32Text Justification LeetCode Solution9872
33Move Zeroes LeetCode Solution9796
34Jewels and Stones Leetcode Solution9764
35Min Stack Leetcode Solution9654
36Power of Two Leetcode Solution9553
37Longest Palindromic Substring LeetCode Solution9523
38Shuffle String Leetcode Solution9450
39Permutations Leetcode Solution9407
40Third Maximum Number Leetcode Solution9299
41Evaluation of Postfix Expression9296
42Word Search Leetcode Solution9286
43Daily Temperatures Leetcode Solution9275
44Find All Numbers Disappeared in an Array Leetcode Solution9268
45Median of Two Sorted Arrays LeetCode Solution9197
46Next Permutation Leetcode Solution9174
47Search in Rotated Sorted Array Leetcode Solution9132
48Number of Islands LeetCode Solution9050
49Kth Missing Positive Number Leetcode Solution9020
50Maximum Profit in Job Scheduling Leetcode Solution9015
51Longest Common Prefix Leetcode Solution8939
52Next Greater Element I Leetcode Solution8920
53Frog Jump Leetcode Solution8751
54Valid Anagram Leetcode Solution8648
55Find Minimum Distance Between Two Numbers in an Array8602
56Running Sum of 1d Array Leetcode Solution8562
57Rotate Image LeetCode Solution8534
58Shuffle the Array Leetcode Solution8507
59Multiply Strings Leetcode Solution8481
60Can Place Flowers LeetCode Solution8446
61Combination Sum Leetcode Solution8443
62Count and Say Leetcode Solution8409
63House Robber II Leetcode Solution8393
643Sum Closest LeetCode Solution8313
65Bulb Switcher LeetCode Solution8297
66Best Time to Buy and Sell Stock LeetCode Solution8151
67Koko Eating Bananas Leetcode Solution8148
68Excel Sheet Column Title Leetcode Solution8122
69Happy Number Leetcode Solution8079
70Subarray and Subsequence8071
71Isomorphic Strings Leetcode Solution8069
72Majority Element Leetcode Solution7982
73Count Pairs With Given Sum7948
74Integer to Roman Leetcode Solution7931
75Candy LeetCode Solution7917
76Missing Number Leetcode Solution7904
77Product of array except self7888
78Rotate String LeetCode Solution7832
79Strobogrammatic Number LeetCode Solution7801
80A Product Array Puzzle7798
81Reverse String Without Temporary Variable7713
82Is Subsequence Leetcode Solution7687
83Find the Difference Leetcode Solution7661
84Binary Search LeetCode Solution7652
85Find the Duplicate Number LeetCode Solution7633
86Expression Evaluation7608
87Find Common Characters Leetcode Solution7594
88Largest Number Leetcode Solution7576
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7489
90String to Integer (atoi) LeetCode Solution7440
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7417
92Subset Leetcode7400
93Summary Ranges Leetcode Solution7341
94Rabin Karp Algorithm7321
95Set Matrix Zeroes7319
96Word Pattern LeetCode Solution7258
97Sort Characters By Frequency LeetCode Solution7243
98Balanced Binary Tree Leetcode Solution7229
99Find the Town Judge Leetcode Solution7201
100Arranging Coins Leetcode Solution7143
101Unique Paths Leetcode Solution7133
102Find the Winner of the Circular Game LeetCode Solution7123
103Rearrange Positive and Negative Numbers Alternatively in Array7067
104String Compression LeetCode Solution7016
105Group Anagrams LeetCode Solution7000
106Postfix to Infix Conversion6985
107Asteroid Collision LeetCode Solution6980
108Repeated Substring Pattern LeetCode Solution6916
109Page Replacement Algorithms in Operating Systems6915
110Smallest window in a string containing all characters of another string6889
111Sort Colors LeetCode Solution6830
112Best Time to Buy and Sell Stock  II Leetcode Solution6828
113Matrix Chain Multiplication using Dynamic Programming6824
114Zigzag Conversion LeetCode Solution6680
115Sort Array By Parity LeetCode Solution6679
116Divide Two Integers Leetcode Solution6643
117Kth largest element in an Array Leetcode Solutions6637
118Valid Palindrome II Leetcode Solution6634
119Generate Parentheses Leetcode Solution6631
120Sum of minimum and maximum elements of all subarrays of size k6622
121Assign Cookies Leetcode Solution6539
122Reverse Integer Leetcode Solution6503
123Remove Duplicates from Sorted Array II Leetcode Solution6498
124Find the Row with Maximum Number of 1’s6495
125Decode String Leetcode Solution6476
126Length of Last Word Leetcode Solution6463
127Product of Array Except Self LeetCode Solution6462
128Pascal Triangle Leetcode6440
129H-Index Leetcode Solution6404
130Bus Routes Leetcode Solution6398
131Number of Provinces Leetcode Solution6377
132Merge Two Sorted Lists Leetcode Solutions6365
133Convert array into Zig-Zag fashion6285
134Linked List Cycle II LeetCode Solution6280
135Prefix to Infix Conversion6279
136Minimum Cost For Tickets Leetcode Solution6277
137Minimum Steps to reach target by a Knight6274
138Defanging an IP Address Leetcode Solution6264
139Optimal Account Balancing LeetCode Solution6256
140Employee Free Time LeetCode Solution6255
141Pascal’s Triangle II Leetcode Solution6154
142Find First and Last Position of Element in Sorted Array Leetcode Solution6135
143First element occurring k times in an array6091
144Increasing Triplet Subsequence LeetCode Solution6076
145Implementation of Deque using Doubly Linked List6076
146Merge Sorted Array LeetCode Solution6064
147Island Perimeter Leetcode Solution6057
148Build Array From Permutation Leetcode Solution6045
149Majority Element II Leetcode Solution6021
150Robot Room Cleaner Leetcode Solution5999
151Bellman Ford Algorithm5974
152Max Consecutive Ones Leetcode Solution5960
153OSI Model5948
154Swap Nodes in Pairs Leetcode Solutions5918
155Find Pair with Given Difference5913
156Check if the Elements of an Array are Consecutive5908
157KMP Algorithm5900
158Set Matrix Zeroes Leetcode Solution5892
159K-th Smallest Element in a Sorted Matrix5874
160Guess Number Higher or Lower LeetCode Solution5862
161Add Two Numbers II Leetcode Solution5857
162Find the Missing Number5850
163First negative integer in every window of size k5819
164Boolean Parenthesization Problem5812
165Trapping Rain Water Leetcode Solution5810
166Fibonacci Number LeetCode Solution5803
167Lemonade Change Leetcode Solution5798
168Subarray Sum Equals K LeetCode Solution5797
169Design Parking System Leetcode Solution5790
170Delete middle element of a stack5768
171First Unique Character in a String LeetCode Solution5737
172Word Ladder LeetCode Solution5732
173Coin Change 2 Leetcode Solution5706
174Length of the largest subarray with contiguous elements5697
175Find All Duplicates in an Array LeetCode Solution5696
176Subarray with Given Sum5694
177Last Stone Weight5693
178Subarray Product Less Than K LeetCode Solution5686
179Monotonic Array LeetCode Solution5684
180String Compression5676
181Capacity To Ship Packages Within D Days Leetcode Solution5674
182Palindrome Linked List Leetcode Solution5656
183Repeated Substring Pattern5609
184Form Minimum Number from Given Sequence of D’s and I’s5600
185Single Element in a Sorted Array LeetCode Solution5591
186Find Smallest Missing Number in a Sorted Array5577
18701 Matrix LeetCode Solution5531
188Remove Duplicates from Sorted List II LeetCode Solution5528
189Combinations Leetcode Solution5522
190Prefix to Postfix Conversion5502
191Continuous Subarray Sum LeetCode Solution5492
192Valid Perfect Square Leetcode Solution5458
193Reverse Words in a String III LeetCode Solution5452
194Iterative Implementation of Quick Sort5446
195Combination Sum5439
196Same Tree LeetCode Solution5429
197Break a Palindrome LeetCode Solution5416
198Leetcode Permutations5408
199Merge k Sorted Lists Leetcode Solution5374
200Remove Linked List Elements Leetcode Solution5368
201Slowest Key Leetcode Solution5338
202Relative Ranks Leetcode Solution5336
203Top K Frequent Elements LeetCode Solution5331
204Container With Most Water LeetCode Solution5317
205Backspace String Compare5306
206Insert Delete GetRandom O(1) Leetcode Solution5295
207Rotate List Leetcode Solution5295
208Maximum Product of Three Numbers LeetCode Solution5290
209Find Peak Element LeetCode Solution5284
210Contains Duplicate LeetCode Solution5267
211Find the Duplicate Element5227
212The K Weakest Rows in a Matrix Leetcode Solution5209
213Cuckoo sequence program5205
214Printing brackets in Matrix Chain Multiplication Problem5185
215Kth Largest Element in a Stream Leetcode Solution5176
216Second Most Repeated Word in a Sequence5161
217Subarray Sum Equals k5149
218Palindrome Number5145
219Longest Common Subsequence LeetCode Solution5144
220Remove All Occurrences of a Substring LeetCode Solution5126
221Max Area of Island5094
222Rearrange given Array in Maximum Minimum Form5094
223Permutation in String Leetcode Solution5084
224Find Leaders in an Array5084
225Relative Sort Array Leetcode Solution5082
226Make The String Great Leetcode Solution5072
227Generate all Binary Strings Without Consecutive 1’s5057
228Convert a Number to Hexadecimal Leetcode Solution5056
229Arithmetic Expression Evaluation5055
230Unique Paths II Leetcode Solution5051
231Check If Two String Arrays are Equivalent Leetcode Solution5022
232Delete Node in a Linked List Leetcode Solution5019
233Target Sum5016
234N-Queens LeetCode Solution5005
235Scramble String4993
236Construct Binary Tree from Given Inorder and Preorder Traversals4990
237Moving Average from Data Stream Leetcode Solution4989
238Time Based Key-Value Store LeetCode Solution4986
239Letter Combinations of a Phone Number4967
240Count Good Nodes in Binary Tree Leetcode Solution4951
241Next Permutation4943
242Number of Dice Rolls With Target Sum LeetCode Solution4938
243LRU Cache LeetCode Solution4931
244Find Triplet in Array With a Given Sum4921
245Stone Game LeetCode4912
246Find N Unique Integers Sum up to Zero Leetcode Solution4901
247Check If N and Its Double Exist Leetcode Solution4897
248Given two unsorted arrays find all pairs whose sum is x4888
249Flipping an Image LeetCode Solution4846
250Number of Steps to Reduce a Number to Zero Leetcode Solution4846
251Prim’s Algorithm4833
252Minimum swaps required to bring all elements less than or equal to k together4816
253Remove Minimum Characters so that Two Strings Become Anagrams4802
254Stock Buy Sell to Maximize Profit4794
255Top K Frequent Elements4793
256Minimum Operations to convert X to Y4786
257Reverse Only Letters LeetCode Solution4783
258Find The Duplicate Number4780
259Min Stack4775
260Min Cost Climbing Stairs LeetCode Solution4771
261Minimum Knight Moves LeetCode Solution4766
262Student Attendance Record I Leetcode Solution4758
263To Lower Case Leetcode Solution4718
264Smallest Positive Number Missing in an Unsorted Array4708
265Single Number4703
266Maximum Sum Increasing Subsequence4700
267Maximum Subarray Sum using Divide and Conquer4680
268The kth Factor of n Leetcode Solution4675
269License Key Formatting Leetcode Solution4669
270Reverse words in a string4669
271Maximum Population Year LeetCode Solution4638
272Longest Common Subsequence4591
273Find the Number Occurring Odd Number of Times in an Array4575
274Remove Nth Node From End of List Leetcode Solution4571
275Top K Frequent Words LeetCode Solution4569
276Search Suggestions System LeetCode Solution4568
277Special Array With X Elements Greater Than or Equal X Leetcode Solution4560
278Reformat Date LeetCode Solution4540
279BFS for Disconnected Graph4537
280Find Words That Can Be Formed by Characters Leetcode Solution4530
281Sum of Subarray Ranges Leetcode Solution4524
282Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4506
283Minimum Path Sum Leetcode Solution4506
284Maximum Depth of Binary Tree Leetcode Solution4488
285Reveal Cards In Increasing Order Leetcode Solution4468
286Intersection of Two Arrays4446
287N-th Tribonacci Number Leetcode Solution4443
288Best Time to Buy and Sell Stock III Leetcode Solution4437
289House Robber4430
290Reverse individual words4419
291Evaluate Division4409
292Diagonal Traverse LeetCode Solution4408
293Sort Elements by Frequency of Occurrences4403
294Maximize Distance to Closest Person LeetCode Solution4402
295Find any one of the multiple repeating elements in read only array4398
296Maximum Size Subarray Sum Equals k Leetcode Solution4390
297Last Stone Weight II LeetCode Solution4388
298Minimum Characters to be Added at Front to Make String Palindrome4378
299Design A Leaderboard Leetcode Solution4375
300Find if Path Exists in Graph Leetcode Solution4364
301Count Number of Occurrences in a Sorted Array4362
302Reverse Nodes in k-Group LeetCode Solution4361
303Remove Duplicates from Sorted List LeetCode Solution4356
304Count of index pairs with equal elements in an array4349
305Binary Tree Inorder Traversal LeetCode Solution4348
306Most Frequent Element in an Array4348
307Length of Longest valid Substring4347
308Range Sum Query 2D – Immutable Leetcode Solution4339
309Sudoku Solver4328
310Minimum number of Merge Operations to make an Array Palindrome4316
311Implement a stack using single queue4304
312Remove All Ones With Row and Column Flips Leetcode Solution4303
313Find Index of Closing Bracket for a Given Opening Bracket in an Expression4286
314Find the Closest Palindrome number4265
315Brightest Position on Street LeetCode Solution4245
316Mobile Numeric Keypad Problem4244
317Split Linked List in Parts Leetcode Solution4235
318Spiral Matrix II Leetcode Solution4235
319Find Leaves of Binary Tree LeetCode Solution4231
320Partition Array Into Three Parts With Equal Sum Leetcode Solution4227
321Special Positions in a Binary Matrix Leetcode Solution4226
322Reverse Bits4210
323Invalid Transactions LeetCode Solution4197
324Shortest Word Distance Leetcode Solution4186
325Paint House LeetCode Solution4185
326Maximum Subarray4183
327Symmetric Tree Leetcode Solution4182
328Arrange given Numbers to Form the Biggest Number II4175
329Diagonal Traversal LeetCode Solution4142
330Sort Array By Parity II Leetcode Solution4140
331Round Robin Scheduling4134
332Find Duplicates in an Array in Most Efficient Way4131
333Dijkstra Algorithm4122
334One Edit Distance LeetCode Solution4115
335Rank Transform of an Array Leetcode Solution4095
336Largest Rectangle in Histogram LeetCode Solution4094
337Partition Labels LeetCode Solution4087
338Remove Invalid Parentheses Leetcode Solution4087
339Hamming Distance Leetcode Solution4085
340Binary Tree Zigzag Level Order Traversal LeetCode Solution4074
341Alien Dictionary LeetCode Solution4073
342Jump Game4073
343Unique Paths4073
344Maximal Square4062
345Tug of War4059
346Minimum Moves to Equal Array Elements Leetcode Solution4049
347String Matching in an Array Leetcode Solution4049
348Minimum Time to Collect All Apples in a Tree LeetCode Solution4029
349The Celebrity Problem4028
350Find Winner on a Tic Tac Toe Game Leetcode Solution4021
351Next Permutation LeetCode Solution4016
352Construct BST from its given Level Order Traversal4011
353Lowest Common Ancestor of a Binary Tree Leetcode Solution4007
354Bitwise AND of Numbers Range LeetCode Solution4004
355Least Number of Unique Integers after K Removals Leetcode Solution4004
356Minimum operation to make all elements equal in array4002
357Range Sum of BST LeetCode Solution4001
358Validate Stack Sequences LeetCode Solution3994
359Postfix to Prefix Conversion3986
360Merge Two Sorted Linked Lists3983
361Minimum Depth of Binary Tree Leetcode Solution3981
362Unique Paths III LeetCode Solution3979
363Pair of Positive Negative Values in an Array3978
364Given an Array of Pairs Find all Symmetric Pairs in it3974
365Smallest Subarray with k Distinct Numbers3970
366Recursion3969
367Longest Common Prefix using Trie3967
368Count of Triplets With Sum Less than Given Value3964
369Maximum Circular Subarray Sum3961
370Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3957
371Transpose Graph3957
372Minimum Time Visiting All Points Leetcode Solution3953
373Invert Binary Tree LeetCode Solution3941
374Check whether Strings are K Distance Apart or Not3932
375Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3928
376Minimum Cost to Hire K Workers3920
377K Empty Slots LeetCode3916
378Substring with Concatenation of All Words Leetcode Solution3912
379Robot Bounded In Circle LeetCode Solution3911
380Next Greater Element III LeetCode Solution3911
381Clone Graph LeetCode Solution3903
382Find minimum difference between any two elements3903
383Check if a given array contains duplicate elements within k distance from each other3897
384Longest Substring with At Most K Distinct Characters LeetCode Solution3885
385Kruskal Algorithm3885
386Ugly Number II LeetCode Solution3880
387Implementation of Deque using circular array3877
388Sort a stack using a temporary stack3863
389Regular Expression Matching Regular Expression Matching LeetCode Solution3857
390Minimize Maximum Pair Sum in Array LeetCode Solution3856
391Stack Permutations (Check if an array is stack permutation of other)3846
392Invert Binary Tree LeetCode Solution3845
393Toeplitz Matrix3843
394Longest subarray not having more than K distinct elements3842
395Sliding Window Technique3840
396Graph Valid Tree LeetCode Solution3839
397Non-decreasing Array LeetCode Solution3839
398Longest subsequence such that difference between adjacents is one3836
399LRU Cache Implementation3832
400Find the First and Second Smallest Elements3832
401Permutation Sequence LeetCode Solution3829
402Word Search3829
403Find the subarray with least average3825
404Convert Sorted Array to Binary Search Tree LeetCode Solutions3819
4053 Sum3819
406Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3811
407Kth Smallest Element in a BST Leetcode Solution3807
408Design Browser History LeetCode Solution3804
409Missing Element in Sorted Array LeetCode Solution3796
410Find the Smallest Divisor given a Threshold Leetcode Solution3793
411Find duplicates in a given array when elements are not limited to a range3784
412Number of Islands II LeetCode Solution3778
413Priority Queue using doubly linked list3773
414Number Complement Leetcode Solution3772
415Stone Game II Leetcode3772
416Queries for counts of array elements with values in given range3767
417Partition List Leetcode Solution3766
418Common elements in all rows of a given matrix3766
419Top View of Binary Tree3765
420K Closest Points to Origin Leetcode Solution3760
421Max stack3759
422First Circular Tour to Visit all the Petrol Bunks3759
423Path With Maximum Minimum Value LeetCode Solution3757
424Find Top K (or Most Frequent) Numbers in a Stream3756
425LRU Cache Leetcode Solution3746
426Number of Smaller Elements on Right Side3745
427Maximum Number of Occurrences of a Substring Leetcode Solution3740
428Minesweeper LeetCode Solution3739
429Find the Peak Element from an Array3736
430Sequences of given length where every element is more than or equal to twice of previous3734
431Find Maximum Level sum in Binary Tree3734
432Search a 2D Matrix II Leetcode Solution3725
433Combination Sum IV LeetCode Solution3723
434Painting Fence Algorithm3723
435Snakes and Ladders LeetCode Solution3720
436Nth Catalan Number3720
437Can Make Arithmetic Progression From Sequence Leetcode Solution3717
438Fibonacci Number LeetCode Solution3709
439Sort elements by frequency3709
440Integer Break LeetCode Solution3705
441High Five LeetCode Solution3694
4424Sum3692
443Sliding Window Maximum LeetCode Solution3685
444Maximum Consecutive Numbers Present in an Array3679
445Insert Interval Leetcode Solution3674
446Odd Even Linked List Leetcode Solution3671
447Find Minimum in Rotated Sorted Array II LeetCode Solution3669
448Longest Palindrome can be Formed by Removing or Rearranging Characters3667
449Rearrange array such that even positioned are greater than odd3666
450Check if Two given Strings are Isomorphic to each other3664
451Flood Fill LeetCode3662
452Count items common to both the lists but with different prices3658
453Shortest Palindrome3654
454Distance of nearest cell having 1 in a binary matrix3651
455Tiling Problem3649
456Consecutive Characters LeetCode Solution3648
457Move All the Zeros to the End of the Given Array3647
458Search in a Binary Search Tree Leetcode Solution3637
459Gold Mine Problem3637
460Design a stack that supports getMin() in O(1) time and O(1) extra space3621
461Insert into a Binary Search Tree Leetcode Solution3608
462Kth Non-repeating Character3606
463Expression Contains Redundant Bracket or Not3600
464Spiral Matrix III LeetCode Solution3598
465Number of Closed Islands Leetcode Solution3593
466N queen problem3593
467Replace Elements with Greatest Element on Right Side Leetcode Solution3591
468Find a Peak Element II LeetCode Solution3586
469Interval Tree3581
470Minimum Absolute Difference in BST Leetcode Solution3580
471Decompress Run-Length Encoded List Leetcode Solution3579
472Trapping Rain Water LeetCode Solution3569
473Coin Change Problem3565
474Check If Array Pairs Are Divisible by k LeetCode Solution3562
475Queries for GCD of all numbers of an array except elements in a given range3562
476Longest Common Prefix using Sorting3561
477Integer to English words3559
478Minimum Path Sum3559
479Sliding Window Median Leetcode Solution3554
480Evaluate Reverse Polish Notation LeetCode Solution3552
481Restore IP Addresses Leetcode Solution3549
482Convert Sorted Array to Binary Search Tree Leetcode Solution3547
483Sort Colors3542
484Sort an array according to the order defined by another array3534
485Binary Tree Maximum Path Sum LeetCode Solution3531
486Find Pythagorean Triplets from Array3531
487Find All Possible Recipes from Given Supplies LeetCode Solution3525
488Sorting array using Stacks3523
489Balanced Expression with Replacement3523
490Majority Element3508
491Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3501
492Reverse a linked list3498
493Palindrome Substring Queries3495
494Best Time to Buy and Sell Stock3494
495Vertical Order Traversal of Binary Tree LeetCode Solution3492
496Priority Queue in C++3490
497Cells with Odd Values in a Matrix LeetCode Solution3487
498Fibonacci numbers3478
499Subset sum problem3476
500Number of Days Between Two Dates LeetCode Solution3464
501Find Median from Data Stream LeetCode Solution3462
502Queue using Stacks3455
503Camelcase Matching Leetcode Solution3452
504Path Sum II LeetCode Solution3451
505The Stock Span Problem3450
506Path Crossing Leetcode Solution3447
507Find the first Repeating Number in a Given Array3442
508Multiplication of Two Matrices3440
509Minimum Number of Taps to Open to Water a Garden LeetCode Solution3439
510Is Graph Bipartite? LeetCode Solution3435
511Sieve of Eratosthenes3435
512Design Hit Counter LeetCode Solution3431
513How to Implement Stack Using Priority Queue or Heap?3415
514Largest rectangular sub-matrix whose sum is 03412
515Intersection of Two Linked Lists LeetCode Solution3411
516Kth ancestor of a node in binary tree3411
517Analyze User Website Visit Pattern LeetCode Solution3407
518Longest Increasing Path in a Matrix LeetCode Solution3407
519Custom Sort String Leetcode Solution3401
520Divide Chocolate LeetCode Solution3400
521Shortest Completing Word Leetcode Solution3399
522Pancake Sorting Problem3398
523Monotonic Array Leetcode Solution3381
524Different Ways to Add Parentheses Leetcode Solution3377
525Count Submatrices With All Ones LeetCode Solution3377
526Find a Fixed Point in a Given Array3376
527Count subarrays having total distinct elements same as original array3375
528Generate all Binary Strings from Given Pattern3372
529Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3370
530Check if Array Contains Contiguous Integers With Duplicates Allowed3368
531Detect a loop in the Linked List3366
532Scramble String LeetCode Solution3365
533Group Anagrams3364
534Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3352
535Perfect Squares LeetCode Solution3343
536Minimum Height Trees3343
537Queue based approach for first non-repeating character in a stream3337
538Valid Boomerang Leetcode Solution3333
539Construction of Longest Increasing Subsequence (N log N)3332
540Shifting Letters LeetCode Solution3331
541Implement strStr() LeetCode Solution3327
542Morris Traversal3327
543Merge Overlapping Intervals3322
544Decode Ways3322
545Implement Trie (Prefix Tree) Leetcode Solution3315
546How to Create Mergable Stack?3315
547Nearest Exit from Entrance in Maze LeetCode Solution3313
548Number of Distinct Islands Leetcode Solution3311
549Maximum Element in an Array which is Increasing and then Decreasing3310
550Letter Case Permutation3306
551Reorder Data in Log Files LeetCode Solution3305
552Find maximum length Snake sequence3299
553Binary Tree zigzag level order Traversal3295
554Race Car LeetCode Solution3294
555Sliding Window Maximum3291
556Sort a stack using recursion3289
557Champagne Tower LeetCode Solution3288
558Best Time to Buy and Sell Stock IV LeetCode Solution3284
559Maximum Sum of Non Consecutive Elements3284
560LCS (Longest Common Subsequence) of three strings3281
561Longest Common Prefix using Divide and Conquer3280
562First missing positive3279
563Find the Lost Element From a Duplicated Array3279
564Most Stones Removed with Same Row or Column LeetCode Solution3278
565Find if an Expression has Duplicate Parenthesis or Not3274
566Number of Equivalent Domino Pairs Leetcode Solution3273
567Insert Node in the Sorted Linked List3272
568Count Possible Triangles3267
569Recover Binary Search Tree3266
570Design Skiplist LeetCode Solution3258
571Build an Array With Stack Operations Leetcode Solution3258
572Decode String3257
573Palindrome Permutation LeetCode Solution3242
574Smallest Good Base3237
575Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3233
576Minimum Bracket Reversals3228
577Find a Sorted Subsequence of size 33225
578Contiguous Array LeetCode Solution3222
579Largest Subarray with Equal Number of 0’s and 1’s3221
580All Possible Full Binary Trees LeetCode Solution3219
581Guess Number Higher or Lower II3218
582Longest Repeated Subsequence3218
583Rectangle Overlap LeetCode Solution3217
584Merge Two Binary Trees LeetCode Solution3212
585Recover Binary Search Tree Leetcode Solution3209
586Distance Between Bus Stops Leetcode Solution3202
587Longest Substring with At Least K Repeating Characters LeetCode Solution3200
588Maximum Length of Chain Pairs3197
589Find the Town Judge LeetCode Solution3195
590Maximum Depth of N-ary Tree Leetcode Solution3195
591Find the two Numbers with Odd Occurrences in an Unsorted Array3195
592Palindrome Partitioning Leetcode Solution3193
593Maximum Number of Ways to Partition an Array LeetCode Solution3188
594Minimum Height Trees LeetCode Solution3187
595Print all Palindromic Partitions of a String3181
596Group Multiple Occurrence of Array Elements Ordered by first Occurrence3170
597K-th Distinct Element in an Array3169
598Rearrange Spaces Between Words Leetcode Solution3168
599Minimum number of jumps to reach end3168
600Implement Two Stacks in an Array3168
601Design a Stack With Increment Operation Leetcode Solution3166
602Check for Balanced Parentheses in an Expression3158
603Valid Parentheses Leetcode Solution3156
604Reorder an Array According to the Given Indexes3152
605The Maze III LeetCode Solution3150
606Subarrays with K Different Integers Leetcode Solution3136
607Mean of Array After Removing Some Elements Leetcode Solution3131
608Sort a String According to Another String3126
609Jump Game IV LeetCode Solution3123
610Maximum sum rectangle in a 2D matrix3117
611Maximum Score After Splitting a String Leetcode Solution3114
612Maximize Elements Using Another Array3113
613Find the First Circular Tour that visits all the Petrol Pumps3104
614Count pair with Given Sum3103
615Contains Duplicate3094
616Perform String Shifts Leetcode3091
617Heap Sort3088
618Lowest Common Ancestor of a Binary Search Tree Leetcode Solution3083
619Word Break3081
620Valid Sudoku3080
621Convert BST to Min Heap3078
622Iterative Method to find Height of Binary Tree3066
623Find the Minimum Element in a Sorted and Rotated Array3065
624Possible Bipartition LeetCode Solution3064
625A Space Optimized DP solution for 0-1 Knapsack Problem3062
626Edit Distance LeetCode Solution3058
627Palindrome Permutations of a String3056
628Minimum Jumps to Reach Home LeetCode Solution3054
629Merge Overlapping Intervals II3053
630Find First and Last Position of Element in Sorted Array LeetCode Solution3046
631Find Largest Value in Each Tree Row LeetCode Solution3037
632Count Sub Islands LeetCode Solution3033
633Reach a Number LeetCode Solution3021
634Segregate 0s and 1s in an Array3018
635Maximum Product of Splitted Binary Tree LeetCode Solution3016
636Palindromic Substrings Leetcode Solution3015
637Best Meeting Point LeetCode Solution3015
638Palindrome Permutation3014
639Number of palindromic paths in a matrix3009
640All Unique Triplets that Sum up to a Given Value3008
641Huffman Coding3007
642Merge Two Balanced Binary Search Trees3000
643Find the Subarray of given length with Least Average2998
644My Calendar I LeetCode Solution2986
645Pair with given product2984
646Caesar Cipher2983
647Check if the given array can represent Level Order Traversal of Binary Search Tree2980
648Sorted Linked List to Balanced BST2976
649Level order Traversal in Spiral Form2976
650Find Median from data Stream2972
651Word Pattern2962
652Brick Wall LeetCode Solution2960
653Find all triplets with zero sum2959
654Construct BST from given Preorder Traversal2957
655Partition Problem2947
656Swapping Nodes in a Linked List Leetcode Solution2942
657Count Good Nodes in Binary Tree LeetCode Solution2940
658Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2933
659Merge K Sorted Arrays and Print Sorted Output2933
660Validate Binary Search Tree2926
661Print Fibonacci sequence using 2 variables2922
662Alien Dictionary2919
663Add two numbers2915
664Find whether a subarray is in form of a mountain or not2913
665Maximize Sum of Array after K Negations Leetcode Solution2909
666Convert Sorted List to Binary Search Tree2907
667Minimum time required to rot all oranges2905
668Isomorphic Strings LeetCode Solution2903
669Count Distinct Elements in Every Window of Size K2900
670Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2895
671Queries on Probability of Even or Odd Number in given Ranges2894
672Find all pairs (a, b) in an array such that a % b = k2894
673Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2892
674How to Efficiently Implement k Stacks in a Single Array?2892
675Largest Sum Contiguous Subarray2888
676Sort 0s 1s and 2s in an Array2887
677Breadth First Search (BFS) for a Graph2884
678Detect Capital Leetcode Solution2881
679Range Sum Query 2D – Immutable LeetCode Solution2879
680Rotate Array2878
681Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2878
682Maximum Frequency Stack Leetcode Solution2877
683Longest Subarray Having Count of 1s One More than Count of 0s2876
684Bubble sort using two Stacks2876
685Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2871
686Split Array Into Consecutive Subsequences2869
687Find four elements that sum to a given value (Hashmap)2858
688Counting Bits2857
689Binary Tree Right Side View LeetCode Solution2856
690Maximum Number of Chocolates to be Distributed Equally Among k Students2854
691Remove brackets from an algebraic string containing + and – operators2848
692Length of Longest Fibonacci Subsequence2848
693Binary Tree to Binary Search Tree Conversion2836
694Count ways to reach the nth stair using step 1, 2 or 32831
695Minimum Swaps to Group All 1’s Together Leetcode Solution2829
696Difference Array | Range update query in O(1)2829
697Partition to K Equal Sum Subsets Leetcode Solution2819
698Remove Palindromic Subsequences Leetcode Solution2818
699Print all subarrays with 0 sum2817
700Merge Two Sorted Lists Leetcode2816
701Remove duplicates from sorted array2807
702Populating Next Right Pointers in Each Node2805
703Find pairs with given sum such that elements of pair are in different rows2803
704Partition Equal Subset Sum2802
705Populating Next Right Pointers in Each Node Leetcode Solution2795
706Topological Sorting2795
707Minimum Sum Path in a Triangle2793
708String comparison containing wildcards2791
709Happy Number2790
710Elements Appear more than N/K times in Array2783
711Arithmetic Slices II – Subsequence LeetCode Solution2779
712Check if a Linked list of Strings form a Palindrome2774
713Queue Reconstruction by Height2773
714Contiguous Array Leetcode2767
715Concatenation of Array LeetCode Solution2766
716Web Crawler LeetCode Solution2761
717Find All Pairs With a Given Difference2757
718Reverse Nodes in K-Group2749
719Inorder Successor of a node in Binary Tree2745
720Find Duplicate Subtrees2732
721Minimum Number of Arrows to Burst Balloons LeetCode Solution2731
722Increasing Subsequence of Length three with Maximum Product2730
723Root to Leaf path with target sum Leetcode Solutions2721
724Maximum Distance in Array2717
725Swap Kth Node from beginning with Kth Node from End2716
726Finding K closest element2709
727Check if String Follows Order of Characters by a Pattern or not2704
728Symmetric Tree2703
729Minimum Swaps to Make Strings Equal Leetcode Solution2701
730Score of Parenthesis LeetCode Solution2699
731Maximum Product Subarray II2695
732Climbing stairs2691
733Pancake Sorting2691
734Given a binary tree, how do you remove all the half nodes?2689
735An Interesting Method to generate Binary Numbers from 1 to n2686
736Longest Common Prefix Using Binary Search II2685
737Longest Increasing Subsequence2682
738Construct Binary Tree from given Parent Array representation2677
739Count Minimum Steps to Get the given Array2677
740Container with Most Water2676
741Find the first repeating element in an array of integers2672
742Deletion in a Binary Tree2670
743Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2665
744Parallel Courses II LeetCode Solution2661
745MiniMax Algorithm2660
746Union and Intersection of two Linked Lists2658
747Delete Nth node from the end of the given linked list2646
748Minimum Cost to Move Chips to The Same Position LeetCode Solution2644
749Delete Nodes and Return Forest Leetcode Solution2643
750Sum Root to Leaf Numbers LeetCode Solution2642
751Check if all levels of two Binary Tree are anagrams or not2642
752Find K Closest Elements LeetCode Solution2635
753Substring With Concatenation Of All Words2634
754Level order traversal using two Queues2630
755Boundary Traversal of binary tree2626
756BFS vs DFS for Binary Tree2624
757Kill Process LeetCode Solution2623
758Count pairs from two linked lists whose sum is equal to a given value2621
759Level of Each node in a Tree from source node2617
760Rearrange an Array Such that arr[i] is equal to i2614
761Sort Array by Increasing Frequency Leetcode Solution2612
762Non-overlapping sum of two sets2608
763Iterative Depth First Traversal of Graph2608
764Linked List Cycle2607
765Minimum Size Subarray Sum2606
766Iterative Preorder Traversal2605
767Minimum Remove to Make Valid Parentheses LeetCode Solution2604
768Nested List Weight Sum II LeetCode Solution2604
769Find Maximum of Minimum for Every Window Size in a Given Array2602
770Valid Anagrams2598
771New 21 Game2598
772Merge K Sorted Linked Lists2592
773Find the Difference Leetcode Solution2586
774Longest Common Prefix Word by Word Matching2582
775Remove Duplicates from Sorted List II2577
776Matrix Chain Multiplication2574
777Super Ugly Number2574
778Merging Intervals2571
779K maximum sums of overlapping contiguous sub-arrays2569
780Maximum size subarray sum equals k2569
781Reservoir Sampling2568
782Range LCM Queries2567
783Palindrome Partitioning2555
784Maximum Product Subarray2549
785Reorder Array Using Given Indexes2544
786Verify Preorder Serialization of a Binary Tree2541
787Print a Binary Tree in Vertical Order2539
788Check if any two intervals overlap among a given set of intervals2537
789Sum of f(a[i], a[j]) over all pairs in an array of n integers2536
790Balanced Binary Tree2536
791Friends Of Appropriate Ages LeetCode Solution2533
792Check if a queue can be sorted into another queue using a stack2527
793The Painter’s Partition Problem2525
794Create Maximum Number2525
795Missing Number2524
796Flatten Binary Tree to Linked List LeetCode Solution2523
797Smallest Range II Leetcode Solution2521
798Sorting a K Sorted Array2514
799Find Maximum Sum Possible Equal Sum of Three Stacks2513
800Defanging an IP Address LeetCode Solution2510
801Check if Two Expressions With Brackets are Same2509
802Tree Traversal (Preorder, Inorder & Postorder)2508
803Peak Index in a Mountain Array LeetCode Solution2498
804Valid Triangle Number LeetCode Solution2496
805Maximum difference between two elements such as larger element comes after smaller2496
806Vertical sum in a given binary tree2492
807Unique Binary Search Trees LeetCode Solution2486
808Find Three Element From Different Three Arrays Such That a + b + c = sum2485
809Lowest Common Ancestor2483
810Hamming Distance2480
811Check if a given array can represent Preorder Traversal of Binary Search Tree2477
812Minimum insertions to form a palindrome with permutations allowed2476
813Valid Triangle Number LeetCode Solution2475
814Count number of triplets with product equal to given number2471
815Largest Submatrix With Rearrangements LeetCode Solution2469
816Minimum Distance Between BST Nodes Leetcode Solution2466
817Find subarray with given sum (Handles Negative Numbers)2464
818Find K Length Subarray of Maximum Average2461
819Number Of Longest Increasing Subsequence2460
820Check if two nodes are on the same path in a Tree2449
821Iterative Postorder Traversal Using Two Stacks2447
822Sort Elements by Frequency II2446
823First Bad Version2445
824Find Element Using Binary Search in Sorted Array2444
825Flatten 2D Vector LeetCode Solution2440
826Find Common Characters Leetcode Solution2440
827Find distance between two nodes of a Binary Tree2436
828Merging Two Sorted Arrays2436
829Third Maximum Number Leetcode Solution2435
830Check Completeness of a Binary Tree LeetCode Solution2434
831Find Sum of all unique sub-array sum for a given array2433
832Closest Leaf in a Binary Tree LeetCode Solution2431
833Print All Distinct Elements of a Given Integer Array2431
834Employee Importance LeetCode Solution2426
835Array Nesting Leetcode Solution2425
836Maximum difference between frequency of two elements such that element having greater frequency is also greater2424
837Products of ranges in an array2424
838Maximum number of segments of lengths a, b and c2423
839Find Peak Element2423
840Find Smallest Range Containing Elements from k Lists2419
841Kth Smallest Element in a Sorted Matrix LeetCode Solution2417
842Maximum subsequence sum such that no three are consecutive2414
843Print all triplets in sorted array that form AP2413
844Newman-Conway Sequence2412
845Diagonal Traversal of Binary Tree2409
846Longest Bitonic Subsequence2408
847Valid Parenthesis String2407
848Arrange given numbers to form the biggest number2399
849Largest BST Subtree LeetCode Solution2396
850Range Sum Query using Sparse Table2391
851Largest subarray with equal number of 0s and 1s2389
852Longest Palindromic Subsequence2389
853Lower Case To Upper Case2389
854Stone Game IV LeetCode Solution2386
855Print Right View of a Binary Tree2384
856Segment Tree2383
857Distinct Subsequences2383
858Bottom View of a Binary Tree2382
859Trapping Rain Water II LeetCode Solution2378
860Find Nth Node2377
861Path Sum2369
862Median of Two Sorted Arrays2366
863Contiguous Array2362
864Four Elements that Sum to Given2361
865Largest divisible pairs subset2360
866Number of siblings of a given Node in n-ary Tree2360
867Shuffle an Array2358
868Compare Strings by Frequency of the Smallest Character Leetcode Solution2354
869Stone Game IV LeetCode Solution2348
870Find the largest multiple of 32345
871Subset Sum Problem in O(sum) space2344
872Merge Two Sorted Arrays2337
873Binary array after M range toggle operations2333
874Isomorphic Strings2332
875Count and Say2330
876Unique Binary Search Trees2330
877Maximum Population Year LeetCode Solution2323
878Red-Black Tree Introduction2323
879Minimum Swaps To Make Sequences Increasing LeetCode Solution2321
880Permutations of a Given String Using STL2321
881Next Greater Element in an Array2311
882Infix to Postfix2308
883Find Largest d in Array such that a + b + c = d2305
884Valid Number2303
885Friends Pairing Problem2301
886Write a function to get the intersection point of two Linked Lists2295
887Maximum Product Subarray2292
888Height of a generic tree from parent array2286
889Encoded String With Shortest Length LeetCode Solution2284
890Maximum Sum of 3 Non-Overlapping Subarrays2283
891Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2282
892Insert Delete GetRandom2280
893Closest Binary Search Tree Value Leetcode Solution2276
894Transform a BST to Greater sum Tree2276
895Averages of Levels in Binary Tree2275
896Find unique character in a string2274
897Valid Perfect Square LeetCode Solution2272
898Count Primes in Ranges2270
899The Number of Weak Characters in the Game LeetCode Solution2269
900Sentence Screen Fitting LeetCode Solution2256
901Range Minimum Query (Square Root Decomposition and Sparse Table)2255
902Binary Search Tree Delete Operation2254
903Shuffle a given Array2253
904Orderly Queue LeetCode Solution2251
905Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2249
906Edit Distance2235
907Binary Tree Longest Consecutive Sequence LeetCode Solution2229
908Minimum sum of squares of character counts in a given string after removing k characters2221
909Reorganize String2220
910Convert BST into a Min-Heap without using array2219
911Bold Words in String LeetCode Solution2216
912Serialize and Deserialize Binary Tree2216
913Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2213
914Find Minimum In Rotated Sorted Array2208
915Integer to Roman2207
916Lowest Common Ancestor in Binary Search Tree2199
917Kth Smallest Number in Multiplication Table Leetcode Solution2198
918Swap Nodes In Pairs2195
919Diameter of N-Ary Tree LeetCode Solution2193
920Next greater element2192
921Maximum Product Subarray2189
922Koko Eating Bananas LeetCode Solution2182
923Print n terms of Newman-Conway Sequence2176
924Advantages of BST over Hash Table2172
925Array Queries for multiply replacements and product2170
926Find the smallest binary digit multiple of given number2165
927K’th Largest element in BST using constant extra space2163
928Next Greater Element II LeetCode Solution2162
929K’th Largest Element in BST when modification to BST is not allowed2162
930Constant time range add operation on an array2161
931Range Queries for Longest Correct Bracket Subsequence2156
932Write Code to Determine if Two Trees are Identical2140
933Total Hamming Distance LeetCode Solution2139
934Best Meeting Point LeetCode Solution2139
935Check if an Array is Stack Sortable2136
936Maximum Sum Increasing Subsequence2134
937Serialize and Deserialize Binary Tree LeetCode Solution2133
938Longest Increasing Consecutive Subsequence2132
939Queries on XOR of greatest odd divisor of the range2130
940Level Order Traversal of Binary Tree2128
941Moving Stones Until Consecutive Leetcode Solution2120
942Power of Two2116
943Image Overlap LeetCode Solution2110
944Clone a Binary Tree with Random Pointers2109
945Valid Tic-Tac-Toe State LeetCode Solution2103
946Reverse a Path in BST using Queue2100
947Greatest Sum Divisible by Three LeetCode Solution2099
948Check if X can give change to every person in the Queue2098
949Find minimum number of merge operations to make an array palindrome2096
950Number of Orders in the Backlog Leetcode Solution2095
951Check if each internal node of a BST has exactly one child2095
952Insert into a Sorted Circular Linked List LeetCode Solution2093
953Numbers with prime frequencies greater than or equal to k2093
954Find the node with minimum value in a Binary Search Tree2091
955Design Underground System Leetcode Solution2088
956Number of elements less than or equal to a given number in a given subarray2087
957A program to check if a binary tree is BST or not2084
958Design Add and Search Words Data Structure LeetCode Solution2076
959Form minimum number from given sequence2074
960Count the Pairs at Same Distance as in English Alphabets2067
961Factorial Trailing Zeroes LeetCode Solution2065
962Count and Toggle Queries on a Binary Array2065
963Maximum Array from Two given Arrays Keeping Order Same2063
964Graph Cloning2060
965Collect maximum points in a grid using two traversals2059
966Print Next Greater Number of Q queries2059
967Closest Binary Search Tree Value II LeetCode Solution2050
968Maximum difference between first and last indexes of an element in array2049
969Merge two BSTs with limited extra space2047
970Largest Plus Sign Leetcode Solution2045
971Check for Palindrome after every character replacement Query2040
972Queries for Decimal Values of Subarrays of a Binary Array2038
973Group Shifted Strings Leetcode Solution2032
974Merge Sorted Array2032
975Merge Sort2026
976Dividing Array into Pairs With Sum Divisible by K2024
977Priority Queue2019
978Longest Substring Without Repeating Characters Leetcode Solution1999
979Count even length binary sequences with same sum of first and second half bits1995
980Print Ancestors of a Given Binary Tree Node Without Recursion1995
981Kth Smallest Element in a BST1992
982Print modified array after multiple array range increment operations1990
983Excel Sheet Column Number LeetCode Solution1983
984Swim in Rising Water LeetCode Solution1977
985Cutting a Rod1977
986Form Minimum Number From Given Sequence1977
987Minimum Moves to Equal Array Elements LeetCode Solution1975
988Count Pairs Whose Products Exist in Array1963
989Guess The Word1959
990Find maximum average subarray of k length1954
991Binary Search Tree1950
992Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1944
993Print all Possible Ways to Break a String in Bracket Form1944
994How to print maximum number of A’s using given four keys1937
995Excel Sheet Column Title LeetCode Solution1935
996Unique Paths II1935
997Palindrome Partitioning1923
998K Empty Slots1917
999Check given array of size n can represent BST of n levels or not1913
1000Find postorder traversal of BST from preorder traversal1909
1001Binary Search Tree Search and Insertion1909
1002Decrease Elements To Make Array Zigzag LeetCode Solution1899
1003Sum of Left Leaves LeetCode Solution1898
1004Regular Expression Matching1892
1005Longest Common Prefix using Character by Character Matching1892
1006Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1885
1007Sorted Array to Balanced BST1877
1008Construct Complete Binary Tree from its Linked List Representation1853
1009Queries for Number of Distinct Elements in a Subarray1847
1010Maximum Depth Of Binary Tree1843
1011Iterative method to find ancestors of a given binary tree1828
1012Maximum weight transformation of a given string1828
1013Find the Town Judge LeetCode Solution1825
1014Shortest Unsorted Continuous Subarray LeetCode Solution1808
1015Binary Tree to Binary Search Tree Conversion using STL set1793
1016Find Maximum Depth of Nested Parenthesis in a String1791
1017Symmetric Tree LeetCode Solution Leetcode Solution1789
1018Search in Sorted Rotated Array1784
1019Random Pick Index LeetCode Solution1783
1020Data Structure Designing1781
1021Search an Element in Sorted Rotated Array1743
1022Kth Smallest Product of Two Sorted Arrays LeetCode Solution1730
1023Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1718
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1713
1025Next Greater Element I Leetcode Solution1702
1026Print Maximum Length Chain of Pairs1667
1027Flatten Binary Tree to Linked List LeetCode Solution1650
1028Maximum Binary Tree1644
1029Find k-th smallest element in BST (Order Statistics in BST)1637
1030Peeking Iterator LeetCode Solution1621
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1572
Translate »