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 Solution43198
2Maximum occurring character in a string19590
3Plus One Leetcode Solution18977
4Valid Parentheses LeetCode Solution18927
53Sum Leetcode Solution16866
6Merge Sorted Arrays Leetcode Solution14995
7First Repeating Element14992
8Single Number Leetcode Solution14676
9Count Primes Leetcode Solutions14436
10Pow(x, n) Leetcode Solution14040
11Sqrt(x) Leetcode Solution13872
12Meeting Rooms II LeetCode Solution13012
13Concatenation of Array LeetCode Solution12599
14Roman to Integer Leetcode Solution11761
15Valid Palindrome Leetcode Solution11656
16Contains Duplicate II Leetcode Solution11596
17Search Insert Position Leetcode Solution11592
18Palindrome Number LeetCode Solution11408
19Remove Duplicates from Sorted Array Leetcode Solution11171
20Jump Game Leetcode Solution11027
21Reverse Vowels of a String Leetcode Solution10993
22Intersection of Two Arrays II Leetcode Solution10887
23Longest Substring Without Repeating Characters LeetCode Solution10788
24Number of Good Pairs Leetcode Solution10749
25Spiral Matrix LeetCode Solution10667
26Kids With the Greatest Number of Candies Leetcode Solution10636
27House Robber Leetcode Solution10527
28Add Binary Leetcode Solution10455
29Maximum Subarray Leetcode Solution10091
30Number Of 1 bits9882
31Find the Maximum Repeating Number in Array9831
32Text Justification LeetCode Solution9682
33Jewels and Stones Leetcode Solution9592
34Move Zeroes LeetCode Solution9557
35Min Stack Leetcode Solution9440
36Power of Two Leetcode Solution9419
37Longest Palindromic Substring LeetCode Solution9379
38Permutations Leetcode Solution9234
39Shuffle String Leetcode Solution9233
40Third Maximum Number Leetcode Solution9128
41Word Search Leetcode Solution9090
42Find All Numbers Disappeared in an Array Leetcode Solution9062
43Daily Temperatures Leetcode Solution9036
44Next Permutation Leetcode Solution9027
45Median of Two Sorted Arrays LeetCode Solution8986
46Evaluation of Postfix Expression8958
47Search in Rotated Sorted Array Leetcode Solution8946
48Number of Islands LeetCode Solution8882
49Kth Missing Positive Number Leetcode Solution8828
50Maximum Profit in Job Scheduling Leetcode Solution8810
51Longest Common Prefix Leetcode Solution8805
52Next Greater Element I Leetcode Solution8724
53Frog Jump Leetcode Solution8611
54Find Minimum Distance Between Two Numbers in an Array8472
55Valid Anagram Leetcode Solution8421
56Running Sum of 1d Array Leetcode Solution8383
57Rotate Image LeetCode Solution8374
58Multiply Strings Leetcode Solution8331
59Shuffle the Array Leetcode Solution8323
60Can Place Flowers LeetCode Solution8272
61Combination Sum Leetcode Solution8265
62Count and Say Leetcode Solution8228
63House Robber II Leetcode Solution8220
643Sum Closest LeetCode Solution8193
65Bulb Switcher LeetCode Solution8168
66Excel Sheet Column Title Leetcode Solution7970
67Koko Eating Bananas Leetcode Solution7936
68Isomorphic Strings Leetcode Solution7905
69Happy Number Leetcode Solution7904
70Best Time to Buy and Sell Stock LeetCode Solution7896
71Subarray and Subsequence7891
72Majority Element Leetcode Solution7796
73Count Pairs With Given Sum7792
74Integer to Roman Leetcode Solution7781
75Missing Number Leetcode Solution7765
76Product of array except self7733
77Strobogrammatic Number LeetCode Solution7688
78Rotate String LeetCode Solution7673
79Candy LeetCode Solution7663
80Reverse String Without Temporary Variable7595
81Is Subsequence Leetcode Solution7542
82Find the Difference Leetcode Solution7502
83A Product Array Puzzle7486
84Find the Duplicate Number LeetCode Solution7462
85Largest Number Leetcode Solution7448
86Find Common Characters Leetcode Solution7423
87Expression Evaluation7422
88Binary Search LeetCode Solution7416
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7357
90String to Integer (atoi) LeetCode Solution7281
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7274
92Subset Leetcode7216
93Set Matrix Zeroes7177
94Summary Ranges Leetcode Solution7162
95Sort Characters By Frequency LeetCode Solution7105
96Rabin Karp Algorithm7092
97Word Pattern LeetCode Solution7084
98Balanced Binary Tree Leetcode Solution7063
99Find the Town Judge Leetcode Solution7057
100Arranging Coins Leetcode Solution6995
101Unique Paths Leetcode Solution6991
102Find the Winner of the Circular Game LeetCode Solution6979
103String Compression LeetCode Solution6889
104Rearrange Positive and Negative Numbers Alternatively in Array6880
105Asteroid Collision LeetCode Solution6833
106Repeated Substring Pattern LeetCode Solution6788
107Group Anagrams LeetCode Solution6783
108Smallest window in a string containing all characters of another string6739
109Sort Colors LeetCode Solution6711
110Page Replacement Algorithms in Operating Systems6709
111Postfix to Infix Conversion6690
112Matrix Chain Multiplication using Dynamic Programming6650
113Best Time to Buy and Sell Stock  II Leetcode Solution6637
114Sort Array By Parity LeetCode Solution6576
115Zigzag Conversion LeetCode Solution6538
116Divide Two Integers Leetcode Solution6503
117Valid Palindrome II Leetcode Solution6482
118Kth largest element in an Array Leetcode Solutions6460
119Sum of minimum and maximum elements of all subarrays of size k6454
120Generate Parentheses Leetcode Solution6449
121Reverse Integer Leetcode Solution6383
122Remove Duplicates from Sorted Array II Leetcode Solution6365
123Assign Cookies Leetcode Solution6361
124Product of Array Except Self LeetCode Solution6346
125Length of Last Word Leetcode Solution6300
126Bus Routes Leetcode Solution6281
127Decode String Leetcode Solution6267
128Merge Two Sorted Lists Leetcode Solutions6248
129Number of Provinces Leetcode Solution6238
130Pascal Triangle Leetcode6238
131H-Index Leetcode Solution6232
132Find the Row with Maximum Number of 1’s6188
133Linked List Cycle II LeetCode Solution6175
134Convert array into Zig-Zag fashion6147
135Minimum Cost For Tickets Leetcode Solution6141
136Minimum Steps to reach target by a Knight6134
137Defanging an IP Address Leetcode Solution6110
138Optimal Account Balancing LeetCode Solution6106
139Employee Free Time LeetCode Solution6094
140Prefix to Infix Conversion6069
141Pascal’s Triangle II Leetcode Solution5995
142First element occurring k times in an array5969
143Find First and Last Position of Element in Sorted Array Leetcode Solution5961
144Increasing Triplet Subsequence LeetCode Solution5947
145Build Array From Permutation Leetcode Solution5933
146Implementation of Deque using Doubly Linked List5889
147Merge Sorted Array LeetCode Solution5883
148Majority Element II Leetcode Solution5874
149Robot Room Cleaner Leetcode Solution5861
150Island Perimeter Leetcode Solution5840
151Bellman Ford Algorithm5831
152Max Consecutive Ones Leetcode Solution5790
153Find Pair with Given Difference5778
154Swap Nodes in Pairs Leetcode Solutions5767
155Check if the Elements of an Array are Consecutive5754
156K-th Smallest Element in a Sorted Matrix5734
157OSI Model5731
158Guess Number Higher or Lower LeetCode Solution5724
159Add Two Numbers II Leetcode Solution5698
160Fibonacci Number LeetCode Solution5696
161Set Matrix Zeroes Leetcode Solution5673
162KMP Algorithm5673
163First negative integer in every window of size k5666
164Find the Missing Number5657
165Subarray Sum Equals K LeetCode Solution5651
166Design Parking System Leetcode Solution5647
167Lemonade Change Leetcode Solution5641
168Trapping Rain Water Leetcode Solution5632
169Delete middle element of a stack5619
170First Unique Character in a String LeetCode Solution5592
171Coin Change 2 Leetcode Solution5577
172Word Ladder LeetCode Solution5573
173Subarray Product Less Than K LeetCode Solution5566
174Find All Duplicates in an Array LeetCode Solution5558
175String Compression5554
176Length of the largest subarray with contiguous elements5544
177Monotonic Array LeetCode Solution5534
178Capacity To Ship Packages Within D Days Leetcode Solution5533
179Last Stone Weight5529
180Palindrome Linked List Leetcode Solution5516
181Subarray with Given Sum5499
182Find Smallest Missing Number in a Sorted Array5454
183Repeated Substring Pattern5444
184Form Minimum Number from Given Sequence of D’s and I’s5438
185Combinations Leetcode Solution5415
186Remove Duplicates from Sorted List II LeetCode Solution5407
18701 Matrix LeetCode Solution5390
188Single Element in a Sorted Array LeetCode Solution5377
189Prefix to Postfix Conversion5346
190Reverse Words in a String III LeetCode Solution5342
191Valid Perfect Square Leetcode Solution5336
192Continuous Subarray Sum LeetCode Solution5330
193Same Tree LeetCode Solution5311
194Iterative Implementation of Quick Sort5302
195Combination Sum5274
196Break a Palindrome LeetCode Solution5269
197Merge k Sorted Lists Leetcode Solution5244
198Remove Linked List Elements Leetcode Solution5232
199Slowest Key Leetcode Solution5220
200Leetcode Permutations5217
201Relative Ranks Leetcode Solution5200
202Backspace String Compare5190
203Top K Frequent Elements LeetCode Solution5156
204Rotate List Leetcode Solution5148
205Maximum Product of Three Numbers LeetCode Solution5145
206Insert Delete GetRandom O(1) Leetcode Solution5130
207Find the Duplicate Element5111
208Find Peak Element LeetCode Solution5109
209The K Weakest Rows in a Matrix Leetcode Solution5100
210Container With Most Water LeetCode Solution5090
211Printing brackets in Matrix Chain Multiplication Problem5057
212Longest Common Subsequence LeetCode Solution5038
213Cuckoo sequence program5031
214Contains Duplicate LeetCode Solution5029
215Second Most Repeated Word in a Sequence5018
216Kth Largest Element in a Stream Leetcode Solution5016
217Palindrome Number5000
218Remove All Occurrences of a Substring LeetCode Solution4980
219Make The String Great Leetcode Solution4968
220Relative Sort Array Leetcode Solution4961
221Subarray Sum Equals k4961
222Permutation in String Leetcode Solution4958
223Rearrange given Array in Maximum Minimum Form4951
224Max Area of Island4944
225Unique Paths II Leetcode Solution4938
226Convert a Number to Hexadecimal Leetcode Solution4916
227Generate all Binary Strings Without Consecutive 1’s4909
228Delete Node in a Linked List Leetcode Solution4898
229Find Leaders in an Array4896
230Arithmetic Expression Evaluation4895
231Target Sum4880
232Check If Two String Arrays are Equivalent Leetcode Solution4866
233Construct Binary Tree from Given Inorder and Preorder Traversals4860
234Time Based Key-Value Store LeetCode Solution4853
235N-Queens LeetCode Solution4851
236Moving Average from Data Stream Leetcode Solution4835
237Scramble String4832
238Number of Dice Rolls With Target Sum LeetCode Solution4814
239Count Good Nodes in Binary Tree Leetcode Solution4814
240Letter Combinations of a Phone Number4801
241Next Permutation4800
242LRU Cache LeetCode Solution4798
243Given two unsorted arrays find all pairs whose sum is x4783
244Find N Unique Integers Sum up to Zero Leetcode Solution4776
245Check If N and Its Double Exist Leetcode Solution4766
246Stone Game LeetCode4748
247Find Triplet in Array With a Given Sum4747
248Number of Steps to Reduce a Number to Zero Leetcode Solution4710
249Minimum swaps required to bring all elements less than or equal to k together4709
250Flipping an Image LeetCode Solution4706
251Prim’s Algorithm4701
252Reverse Only Letters LeetCode Solution4692
253Stock Buy Sell to Maximize Profit4665
254Remove Minimum Characters so that Two Strings Become Anagrams4661
255Min Cost Climbing Stairs LeetCode Solution4658
256Find The Duplicate Number4646
257Top K Frequent Elements4638
258Student Attendance Record I Leetcode Solution4634
259Minimum Knight Moves LeetCode Solution4633
260Min Stack4597
261To Lower Case Leetcode Solution4580
262Smallest Positive Number Missing in an Unsorted Array4564
263The kth Factor of n Leetcode Solution4563
264Minimum Operations to convert X to Y4560
265License Key Formatting Leetcode Solution4540
266Reverse words in a string4539
267Maximum Sum Increasing Subsequence4531
268Maximum Subarray Sum using Divide and Conquer4520
269Single Number4514
270Maximum Population Year LeetCode Solution4494
271Search Suggestions System LeetCode Solution4459
272Longest Common Subsequence4436
273Special Array With X Elements Greater Than or Equal X Leetcode Solution4435
274Top K Frequent Words LeetCode Solution4434
275Remove Nth Node From End of List Leetcode Solution4433
276Reformat Date LeetCode Solution4432
277Find Words That Can Be Formed by Characters Leetcode Solution4425
278Sum of Subarray Ranges Leetcode Solution4421
279Find the Number Occurring Odd Number of Times in an Array4418
280Minimum Path Sum Leetcode Solution4377
281Maximum Depth of Binary Tree Leetcode Solution4360
282Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4351
283BFS for Disconnected Graph4344
284N-th Tribonacci Number Leetcode Solution4339
285Reveal Cards In Increasing Order Leetcode Solution4338
286Boolean Parenthesization Problem4311
287Intersection of Two Arrays4309
288Reverse individual words4308
289House Robber4290
290Diagonal Traverse LeetCode Solution4283
291Minimum Characters to be Added at Front to Make String Palindrome4279
292Last Stone Weight II LeetCode Solution4275
293Remove Duplicates from Sorted List LeetCode Solution4274
294Evaluate Division4271
295Maximize Distance to Closest Person LeetCode Solution4268
296Best Time to Buy and Sell Stock III Leetcode Solution4256
297Find any one of the multiple repeating elements in read only array4252
298Binary Tree Inorder Traversal LeetCode Solution4246
299Find if Path Exists in Graph Leetcode Solution4241
300Design A Leaderboard Leetcode Solution4238
301Count Number of Occurrences in a Sorted Array4232
302Count of index pairs with equal elements in an array4226
303Length of Longest valid Substring4214
304Sort Elements by Frequency of Occurrences4214
305Maximum Size Subarray Sum Equals k Leetcode Solution4191
306Most Frequent Element in an Array4182
307Range Sum Query 2D – Immutable Leetcode Solution4174
308Minimum number of Merge Operations to make an Array Palindrome4174
309Reverse Nodes in k-Group LeetCode Solution4159
310Implement a stack using single queue4159
311Brightest Position on Street LeetCode Solution4131
312Find the Closest Palindrome number4128
313Mobile Numeric Keypad Problem4122
314Sudoku Solver4118
315Find Leaves of Binary Tree LeetCode Solution4116
316Remove All Ones With Row and Column Flips Leetcode Solution4110
317Reverse Bits4096
318Find Index of Closing Bracket for a Given Opening Bracket in an Expression4095
319Spiral Matrix II Leetcode Solution4087
320Invalid Transactions LeetCode Solution4081
321Partition Array Into Three Parts With Equal Sum Leetcode Solution4076
322Special Positions in a Binary Matrix Leetcode Solution4063
323Symmetric Tree Leetcode Solution4054
324Shortest Word Distance Leetcode Solution4052
325Sort Array By Parity II Leetcode Solution4040
326Paint House LeetCode Solution4039
327Split Linked List in Parts Leetcode Solution4037
328Maximum Subarray4026
329Diagonal Traversal LeetCode Solution4016
330Arrange given Numbers to Form the Biggest Number II4013
331One Edit Distance LeetCode Solution4007
332Find Duplicates in an Array in Most Efficient Way3989
333Remove Invalid Parentheses Leetcode Solution3977
334Largest Rectangle in Histogram LeetCode Solution3972
335Binary Tree Zigzag Level Order Traversal LeetCode Solution3963
336Rank Transform of an Array Leetcode Solution3959
337Round Robin Scheduling3959
338Jump Game3956
339Unique Paths3955
340Dijkstra Algorithm3955
341Partition Labels LeetCode Solution3948
342Hamming Distance Leetcode Solution3942
343Alien Dictionary LeetCode Solution3933
344Minimum Moves to Equal Array Elements Leetcode Solution3932
345Maximal Square3913
346Construct BST from its given Level Order Traversal3901
347String Matching in an Array Leetcode Solution3898
348Range Sum of BST LeetCode Solution3896
349Lowest Common Ancestor of a Binary Tree Leetcode Solution3895
350Find Winner on a Tic Tac Toe Game Leetcode Solution3894
351Tug of War3892
352Bitwise AND of Numbers Range LeetCode Solution3885
353Minimum operation to make all elements equal in array3883
354Next Permutation LeetCode Solution3877
355The Celebrity Problem3876
356Minimum Depth of Binary Tree Leetcode Solution3874
357Least Number of Unique Integers after K Removals Leetcode Solution3872
358Minimum Time to Collect All Apples in a Tree LeetCode Solution3869
359Longest Common Prefix using Trie3851
360Pair of Positive Negative Values in an Array3847
361Merge Two Sorted Linked Lists3841
362Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3835
363Maximum Circular Subarray Sum3832
364Smallest Subarray with k Distinct Numbers3827
365Given an Array of Pairs Find all Symmetric Pairs in it3822
366Check whether Strings are K Distance Apart or Not3816
367Unique Paths III LeetCode Solution3813
368K Empty Slots LeetCode3810
369Transpose Graph3809
370Minimum Cost to Hire K Workers3809
371Postfix to Prefix Conversion3809
372Minimum Time Visiting All Points Leetcode Solution3803
373Clone Graph LeetCode Solution3797
374Robot Bounded In Circle LeetCode Solution3796
375Count of Triplets With Sum Less than Given Value3794
376Validate Stack Sequences LeetCode Solution3793
377Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3788
378Next Greater Element III LeetCode Solution3779
379Find minimum difference between any two elements3779
380Check if a given array contains duplicate elements within k distance from each other3776
381Substring with Concatenation of All Words Leetcode Solution3775
382Ugly Number II LeetCode Solution3768
383Invert Binary Tree LeetCode Solution3761
384Regular Expression Matching Regular Expression Matching LeetCode Solution3761
385Sort a stack using a temporary stack3759
386Implementation of Deque using circular array3758
387Longest Substring with At Most K Distinct Characters LeetCode Solution3753
388Minimize Maximum Pair Sum in Array LeetCode Solution3752
389Kruskal Algorithm3740
390Invert Binary Tree LeetCode Solution3734
391Recursion3731
392Permutation Sequence LeetCode Solution3726
393Non-decreasing Array LeetCode Solution3719
394Graph Valid Tree LeetCode Solution3710
395Design Browser History LeetCode Solution3704
396Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3702
397Sliding Window Technique3699
398Find the subarray with least average3698
399LRU Cache Implementation3696
400Word Search3693
401Kth Smallest Element in a BST Leetcode Solution3691
402Missing Element in Sorted Array LeetCode Solution3687
403Longest subarray not having more than K distinct elements3675
404Longest subsequence such that difference between adjacents is one3675
405Stack Permutations (Check if an array is stack permutation of other)3675
406Toeplitz Matrix3674
407Find the Smallest Divisor given a Threshold Leetcode Solution3673
408Find duplicates in a given array when elements are not limited to a range3673
409Convert Sorted Array to Binary Search Tree LeetCode Solutions3672
410Find the First and Second Smallest Elements3668
411Partition List Leetcode Solution3667
412Path With Maximum Minimum Value LeetCode Solution3659
4133 Sum3653
414Number of Islands II LeetCode Solution3652
415Find Top K (or Most Frequent) Numbers in a Stream3647
416Common elements in all rows of a given matrix3646
417K Closest Points to Origin Leetcode Solution3643
418Stone Game II Leetcode3641
419First Circular Tour to Visit all the Petrol Bunks3635
420Max stack3631
421Find Maximum Level sum in Binary Tree3629
422Queries for counts of array elements with values in given range3627
423Number Complement Leetcode Solution3626
424Sequences of given length where every element is more than or equal to twice of previous3623
425Combination Sum IV LeetCode Solution3619
426Number of Smaller Elements on Right Side3618
427Maximum Number of Occurrences of a Substring Leetcode Solution3614
428Integer Break LeetCode Solution3614
429Snakes and Ladders LeetCode Solution3612
430Search a 2D Matrix II Leetcode Solution3611
431Top View of Binary Tree3609
432Minesweeper LeetCode Solution3606
433Find the Peak Element from an Array3587
434LRU Cache Leetcode Solution3586
435Painting Fence Algorithm3586
436Priority Queue using doubly linked list3585
437Nth Catalan Number3581
438Odd Even Linked List Leetcode Solution3576
439Can Make Arithmetic Progression From Sequence Leetcode Solution3575
440Longest Palindrome can be Formed by Removing or Rearranging Characters3567
441Sort elements by frequency3566
442Find Minimum in Rotated Sorted Array II LeetCode Solution3559
443Insert Interval Leetcode Solution3559
444High Five LeetCode Solution3553
445Check if Two given Strings are Isomorphic to each other3549
446Rearrange array such that even positioned are greater than odd3545
447Flood Fill LeetCode3540
448Maximum Consecutive Numbers Present in an Array3538
449Search in a Binary Search Tree Leetcode Solution3532
450Consecutive Characters LeetCode Solution3529
451Shortest Palindrome3522
452Sliding Window Maximum LeetCode Solution3512
453Distance of nearest cell having 1 in a binary matrix3509
454Design a stack that supports getMin() in O(1) time and O(1) extra space3499
4554Sum3494
456Fibonacci Number LeetCode Solution3490
457Expression Contains Redundant Bracket or Not3489
458Move All the Zeros to the End of the Given Array3489
459Tiling Problem3488
460Count items common to both the lists but with different prices3473
461Spiral Matrix III LeetCode Solution3471
462Number of Closed Islands Leetcode Solution3470
463Replace Elements with Greatest Element on Right Side Leetcode Solution3467
464Gold Mine Problem3466
465Minimum Absolute Difference in BST Leetcode Solution3464
466Kth Non-repeating Character3459
467Find a Peak Element II LeetCode Solution3458
468Insert into a Binary Search Tree Leetcode Solution3457
469Decompress Run-Length Encoded List Leetcode Solution3455
470Check If Array Pairs Are Divisible by k LeetCode Solution3450
471Integer to English words3449
472Queries for GCD of all numbers of an array except elements in a given range3438
473Restore IP Addresses Leetcode Solution3437
474Evaluate Reverse Polish Notation LeetCode Solution3435
475N queen problem3435
476Minimum Path Sum3434
477Trapping Rain Water LeetCode Solution3429
478Longest Common Prefix using Sorting3427
479Coin Change Problem3426
480Balanced Expression with Replacement3424
481Find All Possible Recipes from Given Supplies LeetCode Solution3408
482Convert Sorted Array to Binary Search Tree Leetcode Solution3408
483Interval Tree3407
484Sorting array using Stacks3405
485Sliding Window Median Leetcode Solution3404
486Binary Tree Maximum Path Sum LeetCode Solution3402
487Sort an array according to the order defined by another array3394
488Cells with Odd Values in a Matrix LeetCode Solution3388
489Sort Colors3387
490Majority Element3377
491Best Time to Buy and Sell Stock3373
492Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3372
493Find Pythagorean Triplets from Array3368
494Palindrome Substring Queries3366
495Vertical Order Traversal of Binary Tree LeetCode Solution3364
496Number of Days Between Two Dates LeetCode Solution3362
497Reverse a linked list3361
498Priority Queue in C++3357
499Path Sum II LeetCode Solution3344
500Minimum Number of Taps to Open to Water a Garden LeetCode Solution3342
501The Stock Span Problem3341
502Subset sum problem3330
503Find Median from Data Stream LeetCode Solution3328
504Is Graph Bipartite? LeetCode Solution3319
505Queue using Stacks3318
506Largest rectangular sub-matrix whose sum is 03312
507Camelcase Matching Leetcode Solution3309
508Intersection of Two Linked Lists LeetCode Solution3303
509Sieve of Eratosthenes3303
510Design Hit Counter LeetCode Solution3301
511How to Implement Stack Using Priority Queue or Heap?3301
512Find the first Repeating Number in a Given Array3300
513Custom Sort String Leetcode Solution3295
514Kth ancestor of a node in binary tree3291
515Pancake Sorting Problem3290
516Different Ways to Add Parentheses Leetcode Solution3289
517Fibonacci numbers3285
518Analyze User Website Visit Pattern LeetCode Solution3278
519Multiplication of Two Matrices3278
520Divide Chocolate LeetCode Solution3276
521Longest Increasing Path in a Matrix LeetCode Solution3274
522Shortest Completing Word Leetcode Solution3271
523Scramble String LeetCode Solution3261
524Path Crossing Leetcode Solution3261
525Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3256
526Count Submatrices With All Ones LeetCode Solution3250
527Perfect Squares LeetCode Solution3250
528Count subarrays having total distinct elements same as original array3248
529Check if Array Contains Contiguous Integers With Duplicates Allowed3246
530Group Anagrams3245
531Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3242
532Find a Fixed Point in a Given Array3242
533Monotonic Array Leetcode Solution3236
534Queue based approach for first non-repeating character in a stream3227
535Detect a loop in the Linked List3226
536Implement Trie (Prefix Tree) Leetcode Solution3221
537Shifting Letters LeetCode Solution3204
538Number of Distinct Islands Leetcode Solution3203
539Merge Overlapping Intervals3203
540Minimum Height Trees3202
541Reorder Data in Log Files LeetCode Solution3198
542Construction of Longest Increasing Subsequence (N log N)3196
543How to Create Mergable Stack?3193
544Nearest Exit from Entrance in Maze LeetCode Solution3187
545Valid Boomerang Leetcode Solution3187
546Generate all Binary Strings from Given Pattern3187
547Champagne Tower LeetCode Solution3182
548Longest Common Prefix using Divide and Conquer3179
549Race Car LeetCode Solution3169
550Find the Lost Element From a Duplicated Array3168
551Sort a stack using recursion3167
552Insert Node in the Sorted Linked List3167
553Decode Ways3166
554Maximum Sum of Non Consecutive Elements3161
555Sliding Window Maximum3160
556Binary Tree zigzag level order Traversal3157
557Implement strStr() LeetCode Solution3154
558Maximum Element in an Array which is Increasing and then Decreasing3152
559Find if an Expression has Duplicate Parenthesis or Not3147
560First missing positive3145
561Most Stones Removed with Same Row or Column LeetCode Solution3143
562Recover Binary Search Tree3136
563Morris Traversal3135
564Number of Equivalent Domino Pairs Leetcode Solution3134
565Palindrome Permutation LeetCode Solution3133
566Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3132
567Build an Array With Stack Operations Leetcode Solution3132
568LCS (Longest Common Subsequence) of three strings3127
569Count Possible Triangles3127
570Find a Sorted Subsequence of size 33124
571Smallest Good Base3121
572Find maximum length Snake sequence3120
573Merge Two Binary Trees LeetCode Solution3116
574Best Time to Buy and Sell Stock IV LeetCode Solution3115
575Decode String3112
576Rectangle Overlap LeetCode Solution3111
577Design Skiplist LeetCode Solution3104
578Letter Case Permutation3100
579Longest Substring with At Least K Repeating Characters LeetCode Solution3096
580Minimum Bracket Reversals3096
581Contiguous Array LeetCode Solution3093
582Palindrome Partitioning Leetcode Solution3091
583Minimum Height Trees LeetCode Solution3090
584Recover Binary Search Tree Leetcode Solution3089
585Guess Number Higher or Lower II3087
586Distance Between Bus Stops Leetcode Solution3085
587Print all Palindromic Partitions of a String3084
588Largest Subarray with Equal Number of 0’s and 1’s3074
589Minimum number of jumps to reach end3071
590Maximum Number of Ways to Partition an Array LeetCode Solution3070
591All Possible Full Binary Trees LeetCode Solution3069
592Longest Repeated Subsequence3067
593Find the Town Judge LeetCode Solution3063
594Maximum Depth of N-ary Tree Leetcode Solution3063
595Design a Stack With Increment Operation Leetcode Solution3059
596K-th Distinct Element in an Array3052
597Maximum Length of Chain Pairs3052
598Group Multiple Occurrence of Array Elements Ordered by first Occurrence3050
599Reorder an Array According to the Given Indexes3046
600Find the two Numbers with Odd Occurrences in an Unsorted Array3041
601Implement Two Stacks in an Array3032
602Check for Balanced Parentheses in an Expression3025
603The Maze III LeetCode Solution3023
604Sort a String According to Another String3018
605Subarrays with K Different Integers Leetcode Solution3016
606Mean of Array After Removing Some Elements Leetcode Solution3014
607Valid Parentheses Leetcode Solution3013
608Rearrange Spaces Between Words Leetcode Solution3013
609Maximize Elements Using Another Array3013
610Jump Game IV LeetCode Solution3009
611Maximum Score After Splitting a String Leetcode Solution3006
612Maximum sum rectangle in a 2D matrix2999
613Count pair with Given Sum2992
614Contains Duplicate2979
615Minimum Jumps to Reach Home LeetCode Solution2964
616Word Break2960
617Convert BST to Min Heap2959
618Perform String Shifts Leetcode2959
619Valid Sudoku2956
620Edit Distance LeetCode Solution2946
621Find the First Circular Tour that visits all the Petrol Pumps2946
622Palindrome Permutations of a String2943
623Possible Bipartition LeetCode Solution2941
624Iterative Method to find Height of Binary Tree2941
625Find the Minimum Element in a Sorted and Rotated Array2928
626A Space Optimized DP solution for 0-1 Knapsack Problem2927
627Heap Sort2926
628Reach a Number LeetCode Solution2922
629Maximum Product of Splitted Binary Tree LeetCode Solution2913
630Best Meeting Point LeetCode Solution2906
631Find Largest Value in Each Tree Row LeetCode Solution2905
632Merge Two Balanced Binary Search Trees2904
633Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2902
634Count Sub Islands LeetCode Solution2894
635Palindromic Substrings Leetcode Solution2887
636Number of palindromic paths in a matrix2885
637Merge Overlapping Intervals II2883
638Sorted Linked List to Balanced BST2881
639Brick Wall LeetCode Solution2875
640Find the Subarray of given length with Least Average2872
641Segregate 0s and 1s in an Array2871
642My Calendar I LeetCode Solution2870
643Palindrome Permutation2870
644Find First and Last Position of Element in Sorted Array LeetCode Solution2869
645All Unique Triplets that Sum up to a Given Value2869
646Caesar Cipher2863
647Check if the given array can represent Level Order Traversal of Binary Search Tree2856
648Construct BST from given Preorder Traversal2854
649Swapping Nodes in a Linked List Leetcode Solution2852
650Find Median from data Stream2847
651Level order Traversal in Spiral Form2843
652Huffman Coding2841
653Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2828
654Pair with given product2828
655Partition Problem2827
656Maximize Sum of Array after K Negations Leetcode Solution2817
657Word Pattern2816
658Merge K Sorted Arrays and Print Sorted Output2813
659Find all triplets with zero sum2805
660Validate Binary Search Tree2800
661Print Fibonacci sequence using 2 variables2781
662Find whether a subarray is in form of a mountain or not2781
663Count Distinct Elements in Every Window of Size K2781
664Maximum Frequency Stack Leetcode Solution2776
665Bubble sort using two Stacks2772
666Count Good Nodes in Binary Tree LeetCode Solution2771
667Detect Capital Leetcode Solution2771
668Minimum time required to rot all oranges2770
669Queries on Probability of Even or Odd Number in given Ranges2768
670Add two numbers2768
671Isomorphic Strings LeetCode Solution2767
672Find all pairs (a, b) in an array such that a % b = k2767
673Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2760
674Range Sum Query 2D – Immutable LeetCode Solution2758
675Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2757
676Convert Sorted List to Binary Search Tree2756
677Counting Bits2755
678Longest Subarray Having Count of 1s One More than Count of 0s2754
679How to Efficiently Implement k Stacks in a Single Array?2752
680Alien Dictionary2751
681Binary Tree Right Side View LeetCode Solution2746
682Largest Sum Contiguous Subarray2744
683Find four elements that sum to a given value (Hashmap)2743
684Split Array Into Consecutive Subsequences2742
685Length of Longest Fibonacci Subsequence2738
686Sort 0s 1s and 2s in an Array2738
687Binary Tree to Binary Search Tree Conversion2736
688Remove brackets from an algebraic string containing + and – operators2727
689Rotate Array2723
690Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2722
691Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2722
692Minimum Swaps to Group All 1’s Together Leetcode Solution2720
693Partition to K Equal Sum Subsets Leetcode Solution2714
694Print all subarrays with 0 sum2709
695Breadth First Search (BFS) for a Graph2706
696Maximum Number of Chocolates to be Distributed Equally Among k Students2703
697Merge Two Sorted Lists Leetcode2697
698Count ways to reach the nth stair using step 1, 2 or 32696
699Populating Next Right Pointers in Each Node Leetcode Solution2691
700Populating Next Right Pointers in Each Node2690
701Remove Palindromic Subsequences Leetcode Solution2689
702Find pairs with given sum such that elements of pair are in different rows2679
703String comparison containing wildcards2679
704Partition Equal Subset Sum2674
705Arithmetic Slices II – Subsequence LeetCode Solution2673
706Web Crawler LeetCode Solution2662
707Happy Number2662
708Difference Array | Range update query in O(1)2661
709Remove duplicates from sorted array2657
710Topological Sorting2656
711Concatenation of Array LeetCode Solution2648
712Minimum Sum Path in a Triangle2648
713Queue Reconstruction by Height2648
714Elements Appear more than N/K times in Array2646
715Inorder Successor of a node in Binary Tree2644
716Check if a Linked list of Strings form a Palindrome2636
717Find All Pairs With a Given Difference2631
718Contiguous Array Leetcode2628
719Reverse Nodes in K-Group2627
720Root to Leaf path with target sum Leetcode Solutions2620
721Find Duplicate Subtrees2619
722Increasing Subsequence of Length three with Maximum Product2608
723Check if String Follows Order of Characters by a Pattern or not2606
724Minimum Number of Arrows to Burst Balloons LeetCode Solution2596
725Swap Kth Node from beginning with Kth Node from End2591
726Longest Common Prefix Using Binary Search II2584
727Score of Parenthesis LeetCode Solution2575
728Maximum Product Subarray II2575
729Climbing stairs2574
730Container with Most Water2573
731Minimum Swaps to Make Strings Equal Leetcode Solution2571
732Finding K closest element2568
733Count Minimum Steps to Get the given Array2568
734Maximum Distance in Array2565
735Symmetric Tree2560
736Pancake Sorting2559
737Given a binary tree, how do you remove all the half nodes?2558
738Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2555
739Parallel Courses II LeetCode Solution2549
740Minimum Cost to Move Chips to The Same Position LeetCode Solution2547
741Sum Root to Leaf Numbers LeetCode Solution2546
742An Interesting Method to generate Binary Numbers from 1 to n2540
743Delete Nodes and Return Forest Leetcode Solution2538
744Check if all levels of two Binary Tree are anagrams or not2537
745Deletion in a Binary Tree2533
746Longest Increasing Subsequence2532
747Construct Binary Tree from given Parent Array representation2529
748Find the first repeating element in an array of integers2526
749Substring With Concatenation Of All Words2524
750Delete Nth node from the end of the given linked list2521
751Count pairs from two linked lists whose sum is equal to a given value2520
752Boundary Traversal of binary tree2517
753Union and Intersection of two Linked Lists2513
754MiniMax Algorithm2513
755Kill Process LeetCode Solution2510
756Level order traversal using two Queues2505
757Sort Array by Increasing Frequency Leetcode Solution2504
758Level of Each node in a Tree from source node2502
759Iterative Depth First Traversal of Graph2500
760Linked List Cycle2499
761BFS vs DFS for Binary Tree2499
762Find K Closest Elements LeetCode Solution2495
763Minimum Size Subarray Sum2494
764Merge K Sorted Linked Lists2493
765Iterative Preorder Traversal2485
766Non-overlapping sum of two sets2485
767Longest Common Prefix Word by Word Matching2481
768Valid Anagrams2479
769Rearrange an Array Such that arr[i] is equal to i2478
770Minimum Remove to Make Valid Parentheses LeetCode Solution2476
771Find Maximum of Minimum for Every Window Size in a Given Array2476
772Nested List Weight Sum II LeetCode Solution2464
773Find the Difference Leetcode Solution2461
774New 21 Game2458
775Matrix Chain Multiplication2457
776Merging Intervals2455
777Verify Preorder Serialization of a Binary Tree2451
778Remove Duplicates from Sorted List II2450
779Check if a queue can be sorted into another queue using a stack2448
780Super Ugly Number2448
781Maximum size subarray sum equals k2442
782Friends Of Appropriate Ages LeetCode Solution2441
783Reservoir Sampling2437
784Maximum Product Subarray2434
785Flatten Binary Tree to Linked List LeetCode Solution2430
786Range LCM Queries2429
787Smallest Range II Leetcode Solution2422
788Palindrome Partitioning2419
789Reorder Array Using Given Indexes2417
790Print a Binary Tree in Vertical Order2414
791Balanced Binary Tree2413
792K maximum sums of overlapping contiguous sub-arrays2411
793Sum of f(a[i], a[j]) over all pairs in an array of n integers2404
794Missing Number2401
795Check if Two Expressions With Brackets are Same2396
796Vertical sum in a given binary tree2395
797Valid Triangle Number LeetCode Solution2394
798Defanging an IP Address LeetCode Solution2386
799Peak Index in a Mountain Array LeetCode Solution2385
800Check if any two intervals overlap among a given set of intervals2385
801Maximum difference between two elements such as larger element comes after smaller2383
802Create Maximum Number2382
803Minimum insertions to form a palindrome with permutations allowed2376
804Find Maximum Sum Possible Equal Sum of Three Stacks2367
805Minimum Distance Between BST Nodes Leetcode Solution2366
806Find subarray with given sum (Handles Negative Numbers)2360
807The Painter’s Partition Problem2359
808Lowest Common Ancestor2359
809Unique Binary Search Trees LeetCode Solution2356
810Find Three Element From Different Three Arrays Such That a + b + c = sum2356
811Check if a given array can represent Preorder Traversal of Binary Search Tree2355
812Valid Triangle Number LeetCode Solution2350
813Count number of triplets with product equal to given number2349
814Number Of Longest Increasing Subsequence2349
815Employee Importance LeetCode Solution2348
816Sorting a K Sorted Array2346
817Flatten 2D Vector LeetCode Solution2344
818Largest Submatrix With Rearrangements LeetCode Solution2344
819Find K Length Subarray of Maximum Average2332
820Check Completeness of a Binary Tree LeetCode Solution2330
821Kth Smallest Element in a Sorted Matrix LeetCode Solution2329
822Hamming Distance2327
823Array Nesting Leetcode Solution2326
824Iterative Postorder Traversal Using Two Stacks2326
825Closest Leaf in a Binary Tree LeetCode Solution2325
826Check if two nodes are on the same path in a Tree2324
827Find Peak Element2322
828Merging Two Sorted Arrays2322
829Third Maximum Number Leetcode Solution2319
830Find Common Characters Leetcode Solution2316
831Find distance between two nodes of a Binary Tree2311
832First Bad Version2311
833Print All Distinct Elements of a Given Integer Array2308
834Valid Parenthesis String2306
835Tree Traversal (Preorder, Inorder & Postorder)2302
836Find Element Using Binary Search in Sorted Array2302
837Products of ranges in an array2298
838Maximum subsequence sum such that no three are consecutive2296
839Maximum difference between frequency of two elements such that element having greater frequency is also greater2294
840Find Smallest Range Containing Elements from k Lists2294
841Diagonal Traversal of Binary Tree2294
842Largest BST Subtree LeetCode Solution2292
843Newman-Conway Sequence2292
844Print all triplets in sorted array that form AP2288
845Distinct Subsequences2287
846Find Sum of all unique sub-array sum for a given array2283
847Sort Elements by Frequency II2283
848Arrange given numbers to form the biggest number2282
849Bottom View of a Binary Tree2279
850Lower Case To Upper Case2277
851Maximum number of segments of lengths a, b and c2275
852Longest Palindromic Subsequence2273
853Largest divisible pairs subset2270
854Range Sum Query using Sparse Table2261
855Stone Game IV LeetCode Solution2260
856Largest subarray with equal number of 0s and 1s2257
857Path Sum2256
858Number of siblings of a given Node in n-ary Tree2255
859Compare Strings by Frequency of the Smallest Character Leetcode Solution2254
860Print Right View of a Binary Tree2254
861Stone Game IV LeetCode Solution2252
862Find Nth Node2246
863Segment Tree2240
864Contiguous Array2234
865Four Elements that Sum to Given2233
866Find the largest multiple of 32232
867Shuffle an Array2228
868Binary array after M range toggle operations2227
869Median of Two Sorted Arrays2226
870Merge Two Sorted Arrays2226
871Longest Bitonic Subsequence2225
872Trapping Rain Water II LeetCode Solution2224
873Isomorphic Strings2222
874Count and Say2220
875Unique Binary Search Trees2215
876Subset Sum Problem in O(sum) space2207
877Permutations of a Given String Using STL2201
878Find Largest d in Array such that a + b + c = d2192
879Minimum Swaps To Make Sequences Increasing LeetCode Solution2190
880Encoded String With Shortest Length LeetCode Solution2186
881Red-Black Tree Introduction2186
882Maximum Product Subarray2186
883Valid Number2184
884Infix to Postfix2184
885Maximum Sum of 3 Non-Overlapping Subarrays2182
886Find unique character in a string2181
887Averages of Levels in Binary Tree2178
888Next Greater Element in an Array2177
889Maximum Population Year LeetCode Solution2171
890Transform a BST to Greater sum Tree2170
891Friends Pairing Problem2169
892Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2169
893Height of a generic tree from parent array2162
894Closest Binary Search Tree Value Leetcode Solution2161
895Valid Perfect Square LeetCode Solution2156
896Count Primes in Ranges2156
897Write a function to get the intersection point of two Linked Lists2155
898Orderly Queue LeetCode Solution2152
899Insert Delete GetRandom2138
900Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2137
901Binary Search Tree Delete Operation2137
902The Number of Weak Characters in the Game LeetCode Solution2134
903Range Minimum Query (Square Root Decomposition and Sparse Table)2133
904Bold Words in String LeetCode Solution2126
905Shuffle a given Array2125
906Binary Tree Longest Consecutive Sequence LeetCode Solution2121
907Serialize and Deserialize Binary Tree2118
908Sentence Screen Fitting LeetCode Solution2114
909Minimum sum of squares of character counts in a given string after removing k characters2108
910Kth Smallest Number in Multiplication Table Leetcode Solution2103
911Edit Distance2100
912Diameter of N-Ary Tree LeetCode Solution2096
913Swap Nodes In Pairs2095
914Reorganize String2095
915Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2090
916Find Minimum In Rotated Sorted Array2088
917Convert BST into a Min-Heap without using array2087
918Lowest Common Ancestor in Binary Search Tree2082
919Integer to Roman2082
920Next greater element2080
921Maximum Product Subarray2076
922K’th Largest Element in BST when modification to BST is not allowed2062
923Next Greater Element II LeetCode Solution2059
924Find the smallest binary digit multiple of given number2052
925Total Hamming Distance LeetCode Solution2051
926Advantages of BST over Hash Table2051
927Array Queries for multiply replacements and product2045
928K’th Largest element in BST using constant extra space2045
929Queries on XOR of greatest odd divisor of the range2032
930Best Meeting Point LeetCode Solution2031
931Koko Eating Bananas LeetCode Solution2031
932Write Code to Determine if Two Trees are Identical2031
933Serialize and Deserialize Binary Tree LeetCode Solution2025
934Longest Increasing Consecutive Subsequence2020
935Constant time range add operation on an array2019
936Check if an Array is Stack Sortable2019
937Print n terms of Newman-Conway Sequence2018
938Level Order Traversal of Binary Tree2015
939Number of Orders in the Backlog Leetcode Solution2011
940Reverse a Path in BST using Queue2004
941Image Overlap LeetCode Solution2001
942Range Queries for Longest Correct Bracket Subsequence2001
943Power of Two1999
944Maximum Sum Increasing Subsequence1998
945Clone a Binary Tree with Random Pointers1997
946Moving Stones Until Consecutive Leetcode Solution1994
947Greatest Sum Divisible by Three LeetCode Solution1993
948Design Underground System Leetcode Solution1987
949Check if X can give change to every person in the Queue1987
950Find minimum number of merge operations to make an array palindrome1982
951A program to check if a binary tree is BST or not1979
952Insert into a Sorted Circular Linked List LeetCode Solution1977
953Numbers with prime frequencies greater than or equal to k1977
954Valid Tic-Tac-Toe State LeetCode Solution1975
955Find the node with minimum value in a Binary Search Tree1974
956Count and Toggle Queries on a Binary Array1969
957Form minimum number from given sequence1967
958Design Add and Search Words Data Structure LeetCode Solution1965
959Check if each internal node of a BST has exactly one child1962
960Print Next Greater Number of Q queries1962
961Maximum Array from Two given Arrays Keeping Order Same1959
962Closest Binary Search Tree Value II LeetCode Solution1956
963Factorial Trailing Zeroes LeetCode Solution1946
964Check for Palindrome after every character replacement Query1942
965Count the Pairs at Same Distance as in English Alphabets1942
966Number of elements less than or equal to a given number in a given subarray1939
967Merge two BSTs with limited extra space1938
968Collect maximum points in a grid using two traversals1934
969Queries for Decimal Values of Subarrays of a Binary Array1933
970Largest Plus Sign Leetcode Solution1930
971Graph Cloning1923
972Merge Sort1922
973Maximum difference between first and last indexes of an element in array1921
974Merge Sorted Array1917
975Group Shifted Strings Leetcode Solution1916
976Dividing Array into Pairs With Sum Divisible by K1907
977Priority Queue1893
978Longest Substring Without Repeating Characters Leetcode Solution1887
979Count even length binary sequences with same sum of first and second half bits1886
980Print modified array after multiple array range increment operations1882
981Print Ancestors of a Given Binary Tree Node Without Recursion1879
982Cutting a Rod1868
983Kth Smallest Element in a BST1865
984Form Minimum Number From Given Sequence1857
985Swim in Rising Water LeetCode Solution1856
986Excel Sheet Column Number LeetCode Solution1856
987Count Pairs Whose Products Exist in Array1849
988Find maximum average subarray of k length1847
989Guess The Word1844
990Minimum Moves to Equal Array Elements LeetCode Solution1840
991Unique Paths II1839
992Excel Sheet Column Title LeetCode Solution1838
993Binary Search Tree1834
994Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1828
995Print all Possible Ways to Break a String in Bracket Form1824
996How to print maximum number of A’s using given four keys1819
997Palindrome Partitioning1819
998Decrease Elements To Make Array Zigzag LeetCode Solution1816
999Check given array of size n can represent BST of n levels or not1814
1000Binary Search Tree Search and Insertion1809
1001K Empty Slots1809
1002Longest Common Prefix using Character by Character Matching1803
1003Sorted Array to Balanced BST1794
1004Regular Expression Matching1791
1005Sum of Left Leaves LeetCode Solution1789
1006Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1778
1007Find postorder traversal of BST from preorder traversal1774
1008Construct Complete Binary Tree from its Linked List Representation1752
1009Maximum Depth Of Binary Tree1734
1010Queries for Number of Distinct Elements in a Subarray1733
1011Maximum weight transformation of a given string1731
1012Find the Town Judge LeetCode Solution1724
1013Binary Tree to Binary Search Tree Conversion using STL set1717
1014Iterative method to find ancestors of a given binary tree1716
1015Symmetric Tree LeetCode Solution Leetcode Solution1706
1016Shortest Unsorted Continuous Subarray LeetCode Solution1698
1017Data Structure Designing1697
1018Random Pick Index LeetCode Solution1687
1019Search in Sorted Rotated Array1677
1020Find Maximum Depth of Nested Parenthesis in a String1669
1021Search an Element in Sorted Rotated Array1652
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1620
1023Kth Smallest Product of Two Sorted Arrays LeetCode Solution1614
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1607
1025Next Greater Element I Leetcode Solution1568
1026Print Maximum Length Chain of Pairs1563
1027Maximum Binary Tree1546
1028Flatten Binary Tree to Linked List LeetCode Solution1529
1029Find k-th smallest element in BST (Order Statistics in BST)1528
1030Peeking Iterator LeetCode Solution1492
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1471
Translate »