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 Solution43667
2Maximum occurring character in a string19806
3Plus One Leetcode Solution19407
4Valid Parentheses LeetCode Solution19294
53Sum Leetcode Solution17382
6Merge Sorted Arrays Leetcode Solution15384
7First Repeating Element15245
8Single Number Leetcode Solution14931
9Count Primes Leetcode Solutions14736
10Pow(x, n) Leetcode Solution14463
11Sqrt(x) Leetcode Solution14310
12Meeting Rooms II LeetCode Solution13398
13Concatenation of Array LeetCode Solution12864
14Roman to Integer Leetcode Solution12035
15Valid Palindrome Leetcode Solution11897
16Search Insert Position Leetcode Solution11822
17Contains Duplicate II Leetcode Solution11820
18Palindrome Number LeetCode Solution11620
19Remove Duplicates from Sorted Array Leetcode Solution11494
20Jump Game Leetcode Solution11225
21Reverse Vowels of a String Leetcode Solution11209
22Intersection of Two Arrays II Leetcode Solution11130
23Longest Substring Without Repeating Characters LeetCode Solution11119
24Number of Good Pairs Leetcode Solution11031
25Spiral Matrix LeetCode Solution10896
26Kids With the Greatest Number of Candies Leetcode Solution10828
27House Robber Leetcode Solution10798
28Add Binary Leetcode Solution10686
29Maximum Subarray Leetcode Solution10311
30Number Of 1 bits10207
31Find the Maximum Repeating Number in Array10053
32Text Justification LeetCode Solution9939
33Move Zeroes LeetCode Solution9849
34Jewels and Stones Leetcode Solution9826
35Min Stack Leetcode Solution9765
36Power of Two Leetcode Solution9600
37Longest Palindromic Substring LeetCode Solution9575
38Shuffle String Leetcode Solution9513
39Permutations Leetcode Solution9492
40Evaluation of Postfix Expression9361
41Third Maximum Number Leetcode Solution9360
42Word Search Leetcode Solution9358
43Daily Temperatures Leetcode Solution9333
44Find All Numbers Disappeared in an Array Leetcode Solution9329
45Median of Two Sorted Arrays LeetCode Solution9278
46Next Permutation Leetcode Solution9232
47Search in Rotated Sorted Array Leetcode Solution9204
48Number of Islands LeetCode Solution9099
49Kth Missing Positive Number Leetcode Solution9091
50Maximum Profit in Job Scheduling Leetcode Solution9086
51Next Greater Element I Leetcode Solution8990
52Longest Common Prefix Leetcode Solution8981
53Frog Jump Leetcode Solution8825
54Valid Anagram Leetcode Solution8723
55Find Minimum Distance Between Two Numbers in an Array8670
56Running Sum of 1d Array Leetcode Solution8638
57Shuffle the Array Leetcode Solution8590
58Rotate Image LeetCode Solution8581
59Multiply Strings Leetcode Solution8544
60Combination Sum Leetcode Solution8518
61Can Place Flowers LeetCode Solution8509
62Count and Say Leetcode Solution8453
63House Robber II Leetcode Solution8448
643Sum Closest LeetCode Solution8372
65Bulb Switcher LeetCode Solution8345
66Best Time to Buy and Sell Stock LeetCode Solution8212
67Koko Eating Bananas Leetcode Solution8209
68Excel Sheet Column Title Leetcode Solution8172
69Happy Number Leetcode Solution8139
70Subarray and Subsequence8137
71Isomorphic Strings Leetcode Solution8111
72Majority Element Leetcode Solution8055
73Integer to Roman Leetcode Solution8003
74Count Pairs With Given Sum8002
75Candy LeetCode Solution8000
76Missing Number Leetcode Solution7998
77Product of array except self7929
78Rotate String LeetCode Solution7881
79A Product Array Puzzle7878
80Strobogrammatic Number LeetCode Solution7846
81Reverse String Without Temporary Variable7769
82Is Subsequence Leetcode Solution7750
83Binary Search LeetCode Solution7728
84Find the Difference Leetcode Solution7719
85Find the Duplicate Number LeetCode Solution7684
86Expression Evaluation7670
87Find Common Characters Leetcode Solution7652
88Largest Number Leetcode Solution7643
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7555
90String to Integer (atoi) LeetCode Solution7503
91Subset Leetcode7473
92How Many Numbers Are Smaller Than the Current Number Leetcode Solution7465
93Rabin Karp Algorithm7415
94Summary Ranges Leetcode Solution7393
95Set Matrix Zeroes7373
96Word Pattern LeetCode Solution7312
97Balanced Binary Tree Leetcode Solution7310
98Sort Characters By Frequency LeetCode Solution7275
99Find the Town Judge Leetcode Solution7255
100Arranging Coins Leetcode Solution7215
101Unique Paths Leetcode Solution7212
102Find the Winner of the Circular Game LeetCode Solution7191
103Rearrange Positive and Negative Numbers Alternatively in Array7142
104Postfix to Infix Conversion7079
105Group Anagrams LeetCode Solution7078
106String Compression LeetCode Solution7076
107Asteroid Collision LeetCode Solution7036
108Page Replacement Algorithms in Operating Systems6989
109Repeated Substring Pattern LeetCode Solution6954
110Smallest window in a string containing all characters of another string6942
111Best Time to Buy and Sell Stock  II Leetcode Solution6885
112Sort Colors LeetCode Solution6884
113Matrix Chain Multiplication using Dynamic Programming6880
114Sort Array By Parity LeetCode Solution6736
115Zigzag Conversion LeetCode Solution6733
116Sum of minimum and maximum elements of all subarrays of size k6702
117Kth largest element in an Array Leetcode Solutions6695
118Divide Two Integers Leetcode Solution6682
119Valid Palindrome II Leetcode Solution6677
120Generate Parentheses Leetcode Solution6672
121Assign Cookies Leetcode Solution6589
122Boolean Parenthesization Problem6588
123Find the Row with Maximum Number of 1’s6573
124Decode String Leetcode Solution6564
125Reverse Integer Leetcode Solution6552
126Remove Duplicates from Sorted Array II Leetcode Solution6541
127Pascal Triangle Leetcode6540
128Length of Last Word Leetcode Solution6524
129Product of Array Except Self LeetCode Solution6510
130H-Index Leetcode Solution6484
131Bus Routes Leetcode Solution6470
132Merge Two Sorted Lists Leetcode Solutions6428
133Number of Provinces Leetcode Solution6427
134Prefix to Infix Conversion6371
135Minimum Steps to reach target by a Knight6352
136Convert array into Zig-Zag fashion6350
137Linked List Cycle II LeetCode Solution6346
138Minimum Cost For Tickets Leetcode Solution6325
139Employee Free Time LeetCode Solution6316
140Defanging an IP Address Leetcode Solution6312
141Optimal Account Balancing LeetCode Solution6306
142Pascal’s Triangle II Leetcode Solution6217
143Find First and Last Position of Element in Sorted Array Leetcode Solution6208
144First element occurring k times in an array6140
145Implementation of Deque using Doubly Linked List6133
146Island Perimeter Leetcode Solution6124
147Increasing Triplet Subsequence LeetCode Solution6123
148Merge Sorted Array LeetCode Solution6118
149Build Array From Permutation Leetcode Solution6110
150Majority Element II Leetcode Solution6085
151Bellman Ford Algorithm6080
152Robot Room Cleaner Leetcode Solution6058
153OSI Model6052
154Max Consecutive Ones Leetcode Solution6023
155KMP Algorithm5995
156Find Pair with Given Difference5986
157Swap Nodes in Pairs Leetcode Solutions5975
158Check if the Elements of an Array are Consecutive5966
159Set Matrix Zeroes Leetcode Solution5959
160K-th Smallest Element in a Sorted Matrix5939
161Add Two Numbers II Leetcode Solution5919
162Find the Missing Number5911
163Guess Number Higher or Lower LeetCode Solution5902
164Lemonade Change Leetcode Solution5877
165Trapping Rain Water Leetcode Solution5869
166First negative integer in every window of size k5868
167Design Parking System Leetcode Solution5858
168Fibonacci Number LeetCode Solution5855
169Subarray Sum Equals K LeetCode Solution5845
170Delete middle element of a stack5833
171Word Ladder LeetCode Solution5805
172First Unique Character in a String LeetCode Solution5775
173Last Stone Weight5773
174Coin Change 2 Leetcode Solution5756
175Length of the largest subarray with contiguous elements5751
176Subarray with Given Sum5750
177Find All Duplicates in an Array LeetCode Solution5745
178Monotonic Array LeetCode Solution5740
179Subarray Product Less Than K LeetCode Solution5734
180Capacity To Ship Packages Within D Days Leetcode Solution5728
181String Compression5726
182Palindrome Linked List Leetcode Solution5706
183Repeated Substring Pattern5682
184Form Minimum Number from Given Sequence of D’s and I’s5673
185Single Element in a Sorted Array LeetCode Solution5661
186Find Smallest Missing Number in a Sorted Array5627
187Remove Duplicates from Sorted List II LeetCode Solution5582
18801 Matrix LeetCode Solution5576
189Combinations Leetcode Solution5569
190Continuous Subarray Sum LeetCode Solution5564
191Prefix to Postfix Conversion5557
192Leetcode Permutations5533
193Combination Sum5516
194Reverse Words in a String III LeetCode Solution5509
195Valid Perfect Square Leetcode Solution5507
196Iterative Implementation of Quick Sort5496
197Same Tree LeetCode Solution5481
198Break a Palindrome LeetCode Solution5476
199Merge k Sorted Lists Leetcode Solution5427
200Remove Linked List Elements Leetcode Solution5420
201Slowest Key Leetcode Solution5403
202Relative Ranks Leetcode Solution5397
203Top K Frequent Elements LeetCode Solution5392
204Insert Delete GetRandom O(1) Leetcode Solution5382
205Rotate List Leetcode Solution5379
206Container With Most Water LeetCode Solution5367
207Backspace String Compare5365
208Contains Duplicate LeetCode Solution5356
209Find Peak Element LeetCode Solution5334
210Maximum Product of Three Numbers LeetCode Solution5333
211Cuckoo sequence program5285
212Find the Duplicate Element5271
213The K Weakest Rows in a Matrix Leetcode Solution5250
214Printing brackets in Matrix Chain Multiplication Problem5248
215Palindrome Number5240
216Kth Largest Element in a Stream Leetcode Solution5236
217Subarray Sum Equals k5218
218Longest Common Subsequence LeetCode Solution5212
219Second Most Repeated Word in a Sequence5209
220Max Area of Island5184
221Remove All Occurrences of a Substring LeetCode Solution5181
222Rearrange given Array in Maximum Minimum Form5162
223Find Leaders in an Array5158
224Relative Sort Array Leetcode Solution5140
225Permutation in String Leetcode Solution5128
226Generate all Binary Strings Without Consecutive 1’s5126
227Make The String Great Leetcode Solution5120
228Unique Paths II Leetcode Solution5118
229Convert a Number to Hexadecimal Leetcode Solution5111
230Arithmetic Expression Evaluation5107
231Check If Two String Arrays are Equivalent Leetcode Solution5102
232Scramble String5096
233Target Sum5077
234Delete Node in a Linked List Leetcode Solution5073
235N-Queens LeetCode Solution5058
236Letter Combinations of a Phone Number5055
237Time Based Key-Value Store LeetCode Solution5046
238Construct Binary Tree from Given Inorder and Preorder Traversals5034
239Moving Average from Data Stream Leetcode Solution5033
240Find Triplet in Array With a Given Sum5011
241Next Permutation4999
242Count Good Nodes in Binary Tree Leetcode Solution4997
243Stone Game LeetCode4996
244LRU Cache LeetCode Solution4987
245Number of Dice Rolls With Target Sum LeetCode Solution4984
246Find N Unique Integers Sum up to Zero Leetcode Solution4961
247Check If N and Its Double Exist Leetcode Solution4948
248Given two unsorted arrays find all pairs whose sum is x4931
249Prim’s Algorithm4907
250Number of Steps to Reduce a Number to Zero Leetcode Solution4900
251Flipping an Image LeetCode Solution4895
252Remove Minimum Characters so that Two Strings Become Anagrams4893
253Minimum Operations to convert X to Y4887
254Minimum swaps required to bring all elements less than or equal to k together4870
255Min Stack4869
256Stock Buy Sell to Maximize Profit4852
257Top K Frequent Elements4851
258Find The Duplicate Number4849
259Minimum Knight Moves LeetCode Solution4845
260Min Cost Climbing Stairs LeetCode Solution4835
261Reverse Only Letters LeetCode Solution4830
262Student Attendance Record I Leetcode Solution4807
263To Lower Case Leetcode Solution4774
264Smallest Positive Number Missing in an Unsorted Array4766
265Single Number4759
266Maximum Sum Increasing Subsequence4747
267Maximum Subarray Sum using Divide and Conquer4741
268License Key Formatting Leetcode Solution4739
269Reverse words in a string4739
270The kth Factor of n Leetcode Solution4731
271Maximum Population Year LeetCode Solution4681
272Longest Common Subsequence4640
273Find the Number Occurring Odd Number of Times in an Array4626
274Top K Frequent Words LeetCode Solution4624
275Remove Nth Node From End of List Leetcode Solution4615
276Search Suggestions System LeetCode Solution4606
277Special Array With X Elements Greater Than or Equal X Leetcode Solution4602
278Reformat Date LeetCode Solution4590
279BFS for Disconnected Graph4586
280Minimum Path Sum Leetcode Solution4584
281Find Words That Can Be Formed by Characters Leetcode Solution4576
282Sum of Subarray Ranges Leetcode Solution4558
283Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4552
284Best Time to Buy and Sell Stock III Leetcode Solution4533
285Maximum Depth of Binary Tree Leetcode Solution4532
286Reveal Cards In Increasing Order Leetcode Solution4527
287Intersection of Two Arrays4506
288N-th Tribonacci Number Leetcode Solution4496
289House Robber4487
290Sort Elements by Frequency of Occurrences4479
291Diagonal Traverse LeetCode Solution4469
292Find any one of the multiple repeating elements in read only array4467
293Maximize Distance to Closest Person LeetCode Solution4457
294Evaluate Division4457
295Reverse individual words4456
296Sudoku Solver4455
297Reverse Nodes in k-Group LeetCode Solution4448
298Maximum Size Subarray Sum Equals k Leetcode Solution4448
299Most Frequent Element in an Array4439
300Minimum Characters to be Added at Front to Make String Palindrome4432
301Length of Longest valid Substring4424
302Last Stone Weight II LeetCode Solution4421
303Design A Leaderboard Leetcode Solution4419
304Find if Path Exists in Graph Leetcode Solution4413
305Count Number of Occurrences in a Sorted Array4413
306Count of index pairs with equal elements in an array4406
307Range Sum Query 2D – Immutable Leetcode Solution4399
308Remove All Ones With Row and Column Flips Leetcode Solution4398
309Remove Duplicates from Sorted List LeetCode Solution4397
310Binary Tree Inorder Traversal LeetCode Solution4388
311Minimum number of Merge Operations to make an Array Palindrome4382
312Find Index of Closing Bracket for a Given Opening Bracket in an Expression4375
313Implement a stack using single queue4358
314Find the Closest Palindrome number4323
315Partition Array Into Three Parts With Equal Sum Leetcode Solution4320
316Split Linked List in Parts Leetcode Solution4317
317Brightest Position on Street LeetCode Solution4307
318Mobile Numeric Keypad Problem4293
319Find Leaves of Binary Tree LeetCode Solution4283
320Spiral Matrix II Leetcode Solution4279
321Special Positions in a Binary Matrix Leetcode Solution4276
322Reverse Bits4268
323Invalid Transactions LeetCode Solution4251
324Arrange given Numbers to Form the Biggest Number II4251
325Symmetric Tree Leetcode Solution4246
326Shortest Word Distance Leetcode Solution4243
327Maximum Subarray4234
328Paint House LeetCode Solution4227
329Round Robin Scheduling4227
330Dijkstra Algorithm4226
331Sort Array By Parity II Leetcode Solution4192
332Diagonal Traversal LeetCode Solution4191
333Find Duplicates in an Array in Most Efficient Way4182
334One Edit Distance LeetCode Solution4168
335Rank Transform of an Array Leetcode Solution4162
336Partition Labels LeetCode Solution4145
337Largest Rectangle in Histogram LeetCode Solution4144
338Hamming Distance Leetcode Solution4142
339Remove Invalid Parentheses Leetcode Solution4140
340Binary Tree Zigzag Level Order Traversal LeetCode Solution4137
341Maximal Square4133
342String Matching in an Array Leetcode Solution4132
343Unique Paths4127
344Minimum Moves to Equal Array Elements Leetcode Solution4123
345Jump Game4123
346Tug of War4122
347Alien Dictionary LeetCode Solution4118
348Recursion4102
349The Celebrity Problem4097
350Minimum Time to Collect All Apples in a Tree LeetCode Solution4089
351Find Winner on a Tic Tac Toe Game Leetcode Solution4085
352Postfix to Prefix Conversion4068
353Validate Stack Sequences LeetCode Solution4065
354Next Permutation LeetCode Solution4065
355Construct BST from its given Level Order Traversal4064
356Range Sum of BST LeetCode Solution4057
357Lowest Common Ancestor of a Binary Tree Leetcode Solution4053
358Bitwise AND of Numbers Range LeetCode Solution4053
359Minimum operation to make all elements equal in array4050
360Merge Two Sorted Linked Lists4050
361Unique Paths III LeetCode Solution4046
362Least Number of Unique Integers after K Removals Leetcode Solution4045
363Smallest Subarray with k Distinct Numbers4037
364Given an Array of Pairs Find all Symmetric Pairs in it4031
365Count of Triplets With Sum Less than Given Value4030
366Minimum Depth of Binary Tree Leetcode Solution4028
367Pair of Positive Negative Values in an Array4024
368Minimum Time Visiting All Points Leetcode Solution4020
369Invert Binary Tree LeetCode Solution4016
370Maximum Circular Subarray Sum4015
371Transpose Graph4014
372Longest Common Prefix using Trie4007
373Maximum Length of a Concatenated String with Unique Characters Leetcode Solution4006
374Check whether Strings are K Distance Apart or Not3985
375Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3978
376Find minimum difference between any two elements3975
377Next Greater Element III LeetCode Solution3968
378Minimum Cost to Hire K Workers3967
379K Empty Slots LeetCode3966
380Robot Bounded In Circle LeetCode Solution3965
381Clone Graph LeetCode Solution3959
382Substring with Concatenation of All Words Leetcode Solution3958
383Kruskal Algorithm3957
384Check if a given array contains duplicate elements within k distance from each other3953
385Toeplitz Matrix3950
386Ugly Number II LeetCode Solution3947
387Longest Substring with At Most K Distinct Characters LeetCode Solution3934
388Implementation of Deque using circular array3924
3893 Sum3920
390Longest subarray not having more than K distinct elements3916
391Sort a stack using a temporary stack3915
392Minimize Maximum Pair Sum in Array LeetCode Solution3910
393LRU Cache Implementation3908
394Stack Permutations (Check if an array is stack permutation of other)3905
395Find the First and Second Smallest Elements3905
396Graph Valid Tree LeetCode Solution3900
397Invert Binary Tree LeetCode Solution3898
398Word Search3898
399Regular Expression Matching Regular Expression Matching LeetCode Solution3897
400Sliding Window Technique3888
401Permutation Sequence LeetCode Solution3885
402Longest subsequence such that difference between adjacents is one3885
403Non-decreasing Array LeetCode Solution3878
404Find the subarray with least average3877
405Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3873
406Kth Smallest Element in a BST Leetcode Solution3865
407Convert Sorted Array to Binary Search Tree LeetCode Solutions3859
408Design Browser History LeetCode Solution3858
409Find the Smallest Divisor given a Threshold Leetcode Solution3854
410Stone Game II Leetcode3852
411Priority Queue using doubly linked list3850
4124Sum3847
413Number of Islands II LeetCode Solution3844
414Max stack3842
415Missing Element in Sorted Array LeetCode Solution3841
416Find duplicates in a given array when elements are not limited to a range3839
417Top View of Binary Tree3834
418Queries for counts of array elements with values in given range3823
419Number Complement Leetcode Solution3820
420K Closest Points to Origin Leetcode Solution3814
421Path With Maximum Minimum Value LeetCode Solution3810
422Common elements in all rows of a given matrix3810
423First Circular Tour to Visit all the Petrol Bunks3810
424Minesweeper LeetCode Solution3809
425Partition List Leetcode Solution3807
426LRU Cache Leetcode Solution3804
427Painting Fence Algorithm3804
428Maximum Number of Occurrences of a Substring Leetcode Solution3801
429Find Top K (or Most Frequent) Numbers in a Stream3796
430Find the Peak Element from an Array3794
431Number of Smaller Elements on Right Side3791
432Nth Catalan Number3785
433Sequences of given length where every element is more than or equal to twice of previous3782
434Find Maximum Level sum in Binary Tree3781
435Fibonacci Number LeetCode Solution3780
436Snakes and Ladders LeetCode Solution3777
437Can Make Arithmetic Progression From Sequence Leetcode Solution3775
438Combination Sum IV LeetCode Solution3767
439Search a 2D Matrix II Leetcode Solution3763
440Sliding Window Maximum LeetCode Solution3760
441Sort elements by frequency3757
442Maximum Consecutive Numbers Present in an Array3746
443High Five LeetCode Solution3745
444Integer Break LeetCode Solution3745
445Tiling Problem3730
446Count items common to both the lists but with different prices3730
447Insert Interval Leetcode Solution3729
448Odd Even Linked List Leetcode Solution3728
449Flood Fill LeetCode3721
450Check if Two given Strings are Isomorphic to each other3720
451Find Minimum in Rotated Sorted Array II LeetCode Solution3719
452Rearrange array such that even positioned are greater than odd3715
453Distance of nearest cell having 1 in a binary matrix3711
454Longest Palindrome can be Formed by Removing or Rearranging Characters3709
455Move All the Zeros to the End of the Given Array3709
456Gold Mine Problem3706
457Shortest Palindrome3700
458Interval Tree3698
459Consecutive Characters LeetCode Solution3693
460Search in a Binary Search Tree Leetcode Solution3684
461Insert into a Binary Search Tree Leetcode Solution3678
462Kth Non-repeating Character3670
463N queen problem3668
464Design a stack that supports getMin() in O(1) time and O(1) extra space3662
465Number of Closed Islands Leetcode Solution3648
466Spiral Matrix III LeetCode Solution3648
467Expression Contains Redundant Bracket or Not3644
468Find a Peak Element II LeetCode Solution3642
469Replace Elements with Greatest Element on Right Side Leetcode Solution3640
470Minimum Absolute Difference in BST Leetcode Solution3639
471Decompress Run-Length Encoded List Leetcode Solution3637
472Trapping Rain Water LeetCode Solution3634
473Integer to English words3624
474Longest Common Prefix using Sorting3624
475Check If Array Pairs Are Divisible by k LeetCode Solution3615
476Evaluate Reverse Polish Notation LeetCode Solution3614
477Queries for GCD of all numbers of an array except elements in a given range3614
478Coin Change Problem3610
479Sort Colors3606
480Restore IP Addresses Leetcode Solution3605
481Convert Sorted Array to Binary Search Tree Leetcode Solution3605
482Minimum Path Sum3604
483Sliding Window Median Leetcode Solution3603
484Find Pythagorean Triplets from Array3596
485Find All Possible Recipes from Given Supplies LeetCode Solution3594
486Sort an array according to the order defined by another array3588
487Binary Tree Maximum Path Sum LeetCode Solution3582
488Sorting array using Stacks3579
489Balanced Expression with Replacement3576
490Reverse a linked list3573
491Fibonacci numbers3570
492Vertical Order Traversal of Binary Tree LeetCode Solution3564
493Palindrome Substring Queries3561
494Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3555
495Priority Queue in C++3550
496Majority Element3548
497Best Time to Buy and Sell Stock3546
498Cells with Odd Values in a Matrix LeetCode Solution3527
499Number of Days Between Two Dates LeetCode Solution3521
500Subset sum problem3521
501Multiplication of Two Matrices3520
502Camelcase Matching Leetcode Solution3518
503Queue using Stacks3515
504Find Median from Data Stream LeetCode Solution3511
505Path Crossing Leetcode Solution3509
506Is Graph Bipartite? LeetCode Solution3508
507Find the first Repeating Number in a Given Array3505
508Minimum Number of Taps to Open to Water a Garden LeetCode Solution3495
509The Stock Span Problem3494
510Sieve of Eratosthenes3493
511Path Sum II LeetCode Solution3492
512How to Implement Stack Using Priority Queue or Heap?3484
513Design Hit Counter LeetCode Solution3480
514Morris Traversal3469
515Analyze User Website Visit Pattern LeetCode Solution3466
516Count Submatrices With All Ones LeetCode Solution3462
517Kth ancestor of a node in binary tree3462
518Shortest Completing Word Leetcode Solution3459
519Generate all Binary Strings from Given Pattern3458
520Largest rectangular sub-matrix whose sum is 03457
521Divide Chocolate LeetCode Solution3456
522Longest Increasing Path in a Matrix LeetCode Solution3456
523Intersection of Two Linked Lists LeetCode Solution3456
524Pancake Sorting Problem3455
525Detect a loop in the Linked List3452
526Custom Sort String Leetcode Solution3448
527Count subarrays having total distinct elements same as original array3445
528Find a Fixed Point in a Given Array3429
529Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3424
530Group Anagrams3421
531Check if Array Contains Contiguous Integers With Duplicates Allowed3420
532Monotonic Array Leetcode Solution3419
533Different Ways to Add Parentheses Leetcode Solution3419
534Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3410
535Construction of Longest Increasing Subsequence (N log N)3407
536Queue based approach for first non-repeating character in a stream3402
537Implement strStr() LeetCode Solution3401
538Letter Case Permutation3401
539Minimum Height Trees3401
540Valid Boomerang Leetcode Solution3396
541Scramble String LeetCode Solution3395
542Maximum Element in an Array which is Increasing and then Decreasing3393
543Decode Ways3387
544Perfect Squares LeetCode Solution3386
545Merge Overlapping Intervals3386
546How to Create Mergable Stack?3375
547Nearest Exit from Entrance in Maze LeetCode Solution3371
548Shifting Letters LeetCode Solution3365
549Number of Distinct Islands Leetcode Solution3362
550Reorder Data in Log Files LeetCode Solution3358
551First missing positive3357
552Find the Lost Element From a Duplicated Array3357
553Implement Trie (Prefix Tree) Leetcode Solution3354
554Find maximum length Snake sequence3353
555Binary Tree zigzag level order Traversal3345
556Best Time to Buy and Sell Stock IV LeetCode Solution3344
557LCS (Longest Common Subsequence) of three strings3340
558Sliding Window Maximum3340
559Race Car LeetCode Solution3337
560Maximum Sum of Non Consecutive Elements3335
561Sort a stack using recursion3332
562Champagne Tower LeetCode Solution3328
563Longest Common Prefix using Divide and Conquer3324
564Find if an Expression has Duplicate Parenthesis or Not3323
565Insert Node in the Sorted Linked List3323
566Most Stones Removed with Same Row or Column LeetCode Solution3321
567Build an Array With Stack Operations Leetcode Solution3321
568Number of Equivalent Domino Pairs Leetcode Solution3320
569Recover Binary Search Tree3320
570Count Possible Triangles3320
571Decode String3318
572Design Skiplist LeetCode Solution3317
573Largest Subarray with Equal Number of 0’s and 1’s3302
574Guess Number Higher or Lower II3292
575Contiguous Array LeetCode Solution3290
576Smallest Good Base3290
577Palindrome Permutation LeetCode Solution3285
578Minimum Bracket Reversals3284
579Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3281
580All Possible Full Binary Trees LeetCode Solution3278
581Find a Sorted Subsequence of size 33277
582Maximum Length of Chain Pairs3276
583Longest Repeated Subsequence3259
584Rectangle Overlap LeetCode Solution3257
585Find the two Numbers with Odd Occurrences in an Unsorted Array3256
586Merge Two Binary Trees LeetCode Solution3254
587Longest Substring with At Least K Repeating Characters LeetCode Solution3252
588Recover Binary Search Tree Leetcode Solution3250
589Maximum Depth of N-ary Tree Leetcode Solution3250
590Maximum Number of Ways to Partition an Array LeetCode Solution3249
591Distance Between Bus Stops Leetcode Solution3249
592Minimum Height Trees LeetCode Solution3241
593Find the Town Judge LeetCode Solution3239
594Rearrange Spaces Between Words Leetcode Solution3238
595Palindrome Partitioning Leetcode Solution3237
596Design a Stack With Increment Operation Leetcode Solution3237
597Implement Two Stacks in an Array3230
598Print all Palindromic Partitions of a String3229
599Group Multiple Occurrence of Array Elements Ordered by first Occurrence3228
600Reorder an Array According to the Given Indexes3218
601K-th Distinct Element in an Array3214
602Minimum number of jumps to reach end3212
603Check for Balanced Parentheses in an Expression3209
604Valid Parentheses Leetcode Solution3204
605Subarrays with K Different Integers Leetcode Solution3201
606The Maze III LeetCode Solution3195
607Mean of Array After Removing Some Elements Leetcode Solution3179
608Maximum sum rectangle in a 2D matrix3179
609Sort a String According to Another String3178
610Maximize Elements Using Another Array3174
611Find the First Circular Tour that visits all the Petrol Pumps3174
612Jump Game IV LeetCode Solution3173
613Count pair with Given Sum3166
614Maximum Score After Splitting a String Leetcode Solution3160
615Lowest Common Ancestor of a Binary Search Tree Leetcode Solution3156
616Contains Duplicate3153
617Perform String Shifts Leetcode3152
618Heap Sort3150
619Valid Sudoku3137
620Word Break3136
621Merge Overlapping Intervals II3136
622Find the Minimum Element in a Sorted and Rotated Array3123
623Find First and Last Position of Element in Sorted Array LeetCode Solution3117
624Iterative Method to find Height of Binary Tree3116
625Possible Bipartition LeetCode Solution3115
626Convert BST to Min Heap3115
627A Space Optimized DP solution for 0-1 Knapsack Problem3109
628Palindrome Permutations of a String3109
629Edit Distance LeetCode Solution3107
630Minimum Jumps to Reach Home LeetCode Solution3107
631Palindrome Permutation3107
632Huffman Coding3104
633Find Largest Value in Each Tree Row LeetCode Solution3101
634Count Sub Islands LeetCode Solution3085
635Palindromic Substrings Leetcode Solution3079
636All Unique Triplets that Sum up to a Given Value3079
637Best Meeting Point LeetCode Solution3072
638Segregate 0s and 1s in an Array3071
639Number of palindromic paths in a matrix3066
640Reach a Number LeetCode Solution3058
641Maximum Product of Splitted Binary Tree LeetCode Solution3057
642Find Median from data Stream3057
643Find the Subarray of given length with Least Average3054
644Caesar Cipher3053
645Merge Two Balanced Binary Search Trees3050
646Level order Traversal in Spiral Form3048
647My Calendar I LeetCode Solution3043
648Check if the given array can represent Level Order Traversal of Binary Search Tree3039
649Pair with given product3032
650Word Pattern3031
651Find all triplets with zero sum3027
652Brick Wall LeetCode Solution3017
653Sorted Linked List to Balanced BST3017
654Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i3009
655Partition Problem3009
656Count Good Nodes in Binary Tree LeetCode Solution3006
657Construct BST from given Preorder Traversal2996
658Validate Binary Search Tree2994
659Alien Dictionary2988
660Swapping Nodes in a Linked List Leetcode Solution2985
661Add two numbers2979
662Merge K Sorted Arrays and Print Sorted Output2979
663Isomorphic Strings LeetCode Solution2975
664Minimum time required to rot all oranges2975
665Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2974
666Find whether a subarray is in form of a mountain or not2974
667Breadth First Search (BFS) for a Graph2970
668Convert Sorted List to Binary Search Tree2969
669Print Fibonacci sequence using 2 variables2963
670Maximize Sum of Array after K Negations Leetcode Solution2961
671How to Efficiently Implement k Stacks in a Single Array?2956
672Find all pairs (a, b) in an array such that a % b = k2953
673Count Distinct Elements in Every Window of Size K2953
674Queries on Probability of Even or Odd Number in given Ranges2951
675Sort 0s 1s and 2s in an Array2951
676Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2946
677Longest Subarray Having Count of 1s One More than Count of 0s2944
678Rotate Array2943
679Largest Sum Contiguous Subarray2940
680Bubble sort using two Stacks2935
681Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2934
682Range Sum Query 2D – Immutable LeetCode Solution2927
683Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2923
684Maximum Frequency Stack Leetcode Solution2922
685Maximum Number of Chocolates to be Distributed Equally Among k Students2921
686Detect Capital Leetcode Solution2919
687Split Array Into Consecutive Subsequences2913
688Find four elements that sum to a given value (Hashmap)2911
689Remove brackets from an algebraic string containing + and – operators2911
690Count ways to reach the nth stair using step 1, 2 or 32900
691Binary Tree Right Side View LeetCode Solution2899
692Binary Tree to Binary Search Tree Conversion2895
693Counting Bits2891
694Minimum Swaps to Group All 1’s Together Leetcode Solution2890
695Difference Array | Range update query in O(1)2890
696Remove duplicates from sorted array2885
697Length of Longest Fibonacci Subsequence2885
698Merge Two Sorted Lists Leetcode2882
699Remove Palindromic Subsequences Leetcode Solution2879
700Partition Equal Subset Sum2875
701Print all subarrays with 0 sum2872
702Partition to K Equal Sum Subsets Leetcode Solution2865
703Populating Next Right Pointers in Each Node Leetcode Solution2862
704Minimum Sum Path in a Triangle2854
705Populating Next Right Pointers in Each Node2854
706Find pairs with given sum such that elements of pair are in different rows2852
707Happy Number2851
708Topological Sorting2851
709Check if a Linked list of Strings form a Palindrome2848
710Elements Appear more than N/K times in Array2847
711Arithmetic Slices II – Subsequence LeetCode Solution2839
712String comparison containing wildcards2836
713Queue Reconstruction by Height2827
714Find All Pairs With a Given Difference2826
715Contiguous Array Leetcode2824
716Concatenation of Array LeetCode Solution2820
717Reverse Nodes in K-Group2819
718Web Crawler LeetCode Solution2807
719Inorder Successor of a node in Binary Tree2799
720Maximum Distance in Array2790
721Minimum Number of Arrows to Burst Balloons LeetCode Solution2787
722Increasing Subsequence of Length three with Maximum Product2786
723Find Duplicate Subtrees2784
724Swap Kth Node from beginning with Kth Node from End2774
725Minimum Swaps to Make Strings Equal Leetcode Solution2768
726Root to Leaf path with target sum Leetcode Solutions2767
727Finding K closest element2760
728Score of Parenthesis LeetCode Solution2758
729MiniMax Algorithm2756
730Check if String Follows Order of Characters by a Pattern or not2755
731Longest Common Prefix Using Binary Search II2753
732Given a binary tree, how do you remove all the half nodes?2750
733An Interesting Method to generate Binary Numbers from 1 to n2747
734Symmetric Tree2745
735Climbing stairs2745
736Maximum Product Subarray II2741
737Longest Increasing Subsequence2736
738Find the first repeating element in an array of integers2735
739Construct Binary Tree from given Parent Array representation2733
740Pancake Sorting2731
741Container with Most Water2728
742Count Minimum Steps to Get the given Array2724
743Union and Intersection of two Linked Lists2723
744Deletion in a Binary Tree2722
745Find K Closest Elements LeetCode Solution2719
746Parallel Courses II LeetCode Solution2718
747Iterative Preorder Traversal2711
748Delete Nth node from the end of the given linked list2711
749Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2704
750BFS vs DFS for Binary Tree2695
751Delete Nodes and Return Forest Leetcode Solution2690
752Check if all levels of two Binary Tree are anagrams or not2690
753Sum Root to Leaf Numbers LeetCode Solution2686
754Kill Process LeetCode Solution2682
755Minimum Cost to Move Chips to The Same Position LeetCode Solution2681
756Substring With Concatenation Of All Words2681
757Level order traversal using two Queues2678
758Level of Each node in a Tree from source node2676
759Count pairs from two linked lists whose sum is equal to a given value2674
760Boundary Traversal of binary tree2673
761Nested List Weight Sum II LeetCode Solution2671
762Rearrange an Array Such that arr[i] is equal to i2669
763Find Maximum of Minimum for Every Window Size in a Given Array2666
764Iterative Depth First Traversal of Graph2660
765Minimum Remove to Make Valid Parentheses LeetCode Solution2658
766Find the Difference Leetcode Solution2654
767Super Ugly Number2654
768Sort Array by Increasing Frequency Leetcode Solution2653
769Non-overlapping sum of two sets2651
770Linked List Cycle2651
771Minimum Size Subarray Sum2650
772Valid Anagrams2646
773New 21 Game2646
774Remove Duplicates from Sorted List II2641
775Longest Common Prefix Word by Word Matching2638
776Matrix Chain Multiplication2636
777Merge K Sorted Linked Lists2631
778K maximum sums of overlapping contiguous sub-arrays2626
779Merging Intervals2619
780Maximum size subarray sum equals k2618
781Range LCM Queries2617
782Reservoir Sampling2617
783Reorder Array Using Given Indexes2610
784Palindrome Partitioning2607
785Sum of f(a[i], a[j]) over all pairs in an array of n integers2603
786Check if any two intervals overlap among a given set of intervals2603
787Print a Binary Tree in Vertical Order2600
788Maximum Product Subarray2593
789Balanced Binary Tree2589
790Tree Traversal (Preorder, Inorder & Postorder)2589
791Create Maximum Number2585
792Sorting a K Sorted Array2583
793Flatten Binary Tree to Linked List LeetCode Solution2577
794Verify Preorder Serialization of a Binary Tree2577
795The Painter’s Partition Problem2575
796Missing Number2574
797Friends Of Appropriate Ages LeetCode Solution2572
798Check if a queue can be sorted into another queue using a stack2572
799Find Maximum Sum Possible Equal Sum of Three Stacks2566
800Defanging an IP Address LeetCode Solution2563
801Check if Two Expressions With Brackets are Same2563
802Maximum difference between two elements such as larger element comes after smaller2563
803Peak Index in a Mountain Array LeetCode Solution2559
804Smallest Range II Leetcode Solution2554
805Valid Triangle Number LeetCode Solution2543
806Hamming Distance2541
807Unique Binary Search Trees LeetCode Solution2538
808Valid Triangle Number LeetCode Solution2536
809Minimum insertions to form a palindrome with permutations allowed2535
810Vertical sum in a given binary tree2534
811Find Three Element From Different Three Arrays Such That a + b + c = sum2533
812Lowest Common Ancestor2531
813Check if a given array can represent Preorder Traversal of Binary Search Tree2529
814Find Sum of all unique sub-array sum for a given array2527
815Count number of triplets with product equal to given number2526
816Iterative Postorder Traversal Using Two Stacks2520
817Largest Submatrix With Rearrangements LeetCode Solution2519
818Find K Length Subarray of Maximum Average2519
819Find subarray with given sum (Handles Negative Numbers)2518
820Minimum Distance Between BST Nodes Leetcode Solution2517
821Check if two nodes are on the same path in a Tree2515
822Number Of Longest Increasing Subsequence2511
823Sort Elements by Frequency II2506
824Find Element Using Binary Search in Sorted Array2504
825Find Common Characters Leetcode Solution2495
826Merging Two Sorted Arrays2495
827Find distance between two nodes of a Binary Tree2490
828First Bad Version2490
829Newman-Conway Sequence2488
830Third Maximum Number Leetcode Solution2482
831Check Completeness of a Binary Tree LeetCode Solution2481
832Flatten 2D Vector LeetCode Solution2478
833Maximum difference between frequency of two elements such that element having greater frequency is also greater2478
834Maximum number of segments of lengths a, b and c2475
835Maximum subsequence sum such that no three are consecutive2473
836Print All Distinct Elements of a Given Integer Array2473
837Find Peak Element2473
838Employee Importance LeetCode Solution2472
839Products of ranges in an array2472
840Print all triplets in sorted array that form AP2471
841Longest Bitonic Subsequence2466
842Closest Leaf in a Binary Tree LeetCode Solution2465
843Kth Smallest Element in a Sorted Matrix LeetCode Solution2462
844Diagonal Traversal of Binary Tree2462
845Find Smallest Range Containing Elements from k Lists2460
846Array Nesting Leetcode Solution2459
847Arrange given numbers to form the biggest number2458
848Range Sum Query using Sparse Table2457
849Largest subarray with equal number of 0s and 1s2457
850Lower Case To Upper Case2457
851Valid Parenthesis String2456
852Find Nth Node2445
853Stone Game IV LeetCode Solution2443
854Longest Palindromic Subsequence2438
855Largest BST Subtree LeetCode Solution2436
856Distinct Subsequences2436
857Trapping Rain Water II LeetCode Solution2433
858Median of Two Sorted Arrays2433
859Print Right View of a Binary Tree2428
860Segment Tree2427
861Bottom View of a Binary Tree2424
862Contiguous Array2420
863Compare Strings by Frequency of the Smallest Character Leetcode Solution2412
864Shuffle an Array2412
865Largest divisible pairs subset2411
866Path Sum2411
867Number of siblings of a given Node in n-ary Tree2410
868Four Elements that Sum to Given2410
869Subset Sum Problem in O(sum) space2398
870Stone Game IV LeetCode Solution2397
871Find the largest multiple of 32397
872Write a function to get the intersection point of two Linked Lists2396
873Merge Two Sorted Arrays2388
874Maximum Population Year LeetCode Solution2386
875Binary array after M range toggle operations2384
876Count and Say2383
877Isomorphic Strings2379
878Unique Binary Search Trees2376
879Red-Black Tree Introduction2373
880Permutations of a Given String Using STL2372
881Infix to Postfix2371
882Next Greater Element in an Array2368
883Minimum Swaps To Make Sequences Increasing LeetCode Solution2358
884Height of a generic tree from parent array2357
885Friends Pairing Problem2350
886Find Largest d in Array such that a + b + c = d2348
887Closest Binary Search Tree Value Leetcode Solution2344
888Valid Number2340
889Valid Perfect Square LeetCode Solution2335
890The Number of Weak Characters in the Game LeetCode Solution2331
891Encoded String With Shortest Length LeetCode Solution2328
892Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2328
893Maximum Product Subarray2326
894Count Primes in Ranges2325
895Sentence Screen Fitting LeetCode Solution2320
896Averages of Levels in Binary Tree2320
897Find unique character in a string2319
898Insert Delete GetRandom2318
899Maximum Sum of 3 Non-Overlapping Subarrays2318
900Transform a BST to Greater sum Tree2316
901Shuffle a given Array2304
902Range Minimum Query (Square Root Decomposition and Sparse Table)2303
903Binary Search Tree Delete Operation2301
904Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2298
905Edit Distance2287
906Orderly Queue LeetCode Solution2286
907Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2284
908Reorganize String2283
909Print n terms of Newman-Conway Sequence2280
910Binary Tree Longest Consecutive Sequence LeetCode Solution2279
911Convert BST into a Min-Heap without using array2273
912Minimum sum of squares of character counts in a given string after removing k characters2271
913Serialize and Deserialize Binary Tree2268
914Integer to Roman2262
915Bold Words in String LeetCode Solution2257
916Find Minimum In Rotated Sorted Array2257
917Lowest Common Ancestor in Binary Search Tree2253
918Range Queries for Longest Correct Bracket Subsequence2247
919Kth Smallest Number in Multiplication Table Leetcode Solution2246
920Next greater element2246
921Maximum Product Subarray2245
922Swap Nodes In Pairs2240
923Diameter of N-Ary Tree LeetCode Solution2236
924Koko Eating Bananas LeetCode Solution2234
925Array Queries for multiply replacements and product2233
926Find the smallest binary digit multiple of given number2221
927K’th Largest element in BST using constant extra space2214
928K’th Largest Element in BST when modification to BST is not allowed2214
929Advantages of BST over Hash Table2212
930Constant time range add operation on an array2208
931Maximum Sum Increasing Subsequence2206
932Next Greater Element II LeetCode Solution2200
933Write Code to Determine if Two Trees are Identical2191
934Best Meeting Point LeetCode Solution2186
935Serialize and Deserialize Binary Tree LeetCode Solution2182
936Moving Stones Until Consecutive Leetcode Solution2181
937Check if an Array is Stack Sortable2179
938Valid Tic-Tac-Toe State LeetCode Solution2178
939Total Hamming Distance LeetCode Solution2174
940Longest Increasing Consecutive Subsequence2169
941Queries on XOR of greatest odd divisor of the range2167
942Power of Two2164
943Level Order Traversal of Binary Tree2163
944Insert into a Sorted Circular Linked List LeetCode Solution2159
945Numbers with prime frequencies greater than or equal to k2157
946Design Underground System Leetcode Solution2154
947Check if each internal node of a BST has exactly one child2152
948Clone a Binary Tree with Random Pointers2151
949Check if X can give change to every person in the Queue2148
950Reverse a Path in BST using Queue2146
951Greatest Sum Divisible by Three LeetCode Solution2145
952Image Overlap LeetCode Solution2145
953Number of elements less than or equal to a given number in a given subarray2145
954Number of Orders in the Backlog Leetcode Solution2138
955Find minimum number of merge operations to make an array palindrome2138
956Form minimum number from given sequence2136
957Find the node with minimum value in a Binary Search Tree2136
958A program to check if a binary tree is BST or not2128
959Count the Pairs at Same Distance as in English Alphabets2127
960Design Add and Search Words Data Structure LeetCode Solution2123
961Maximum Array from Two given Arrays Keeping Order Same2122
962Graph Cloning2120
963Count and Toggle Queries on a Binary Array2113
964Collect maximum points in a grid using two traversals2112
965Factorial Trailing Zeroes LeetCode Solution2111
966Print Next Greater Number of Q queries2107
967Merge two BSTs with limited extra space2100
968Largest Plus Sign Leetcode Solution2096
969Closest Binary Search Tree Value II LeetCode Solution2095
970Maximum difference between first and last indexes of an element in array2093
971Check for Palindrome after every character replacement Query2085
972Dividing Array into Pairs With Sum Divisible by K2082
973Merge Sort2081
974Queries for Decimal Values of Subarrays of a Binary Array2080
975Group Shifted Strings Leetcode Solution2079
976Merge Sorted Array2078
977Priority Queue2063
978Print modified array after multiple array range increment operations2049
979Longest Substring Without Repeating Characters Leetcode Solution2048
980Form Minimum Number From Given Sequence2048
981Print Ancestors of a Given Binary Tree Node Without Recursion2042
982Count even length binary sequences with same sum of first and second half bits2040
983Kth Smallest Element in a BST2034
984Excel Sheet Column Number LeetCode Solution2032
985Guess The Word2029
986Print all Possible Ways to Break a String in Bracket Form2028
987Cutting a Rod2026
988Swim in Rising Water LeetCode Solution2022
989Minimum Moves to Equal Array Elements LeetCode Solution2014
990Count Pairs Whose Products Exist in Array2000
991Binary Search Tree1999
992Find maximum average subarray of k length1996
993Excel Sheet Column Title LeetCode Solution1994
994How to print maximum number of A’s using given four keys1993
995Palindrome Partitioning1992
996Unique Paths II1985
997Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1982
998Find postorder traversal of BST from preorder traversal1977
999K Empty Slots1966
1000Sum of Left Leaves LeetCode Solution1961
1001Binary Search Tree Search and Insertion1958
1002Check given array of size n can represent BST of n levels or not1955
1003Longest Common Prefix using Character by Character Matching1954
1004Regular Expression Matching1952
1005Decrease Elements To Make Array Zigzag LeetCode Solution1931
1006Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1926
1007Sorted Array to Balanced BST1926
1008Queries for Number of Distinct Elements in a Subarray1894
1009Construct Complete Binary Tree from its Linked List Representation1894
1010Maximum Depth Of Binary Tree1893
1011Find the Town Judge LeetCode Solution1874
1012Iterative method to find ancestors of a given binary tree1868
1013Maximum weight transformation of a given string1866
1014Shortest Unsorted Continuous Subarray LeetCode Solution1857
1015Symmetric Tree LeetCode Solution Leetcode Solution1850
1016Binary Tree to Binary Search Tree Conversion using STL set1845
1017Find Maximum Depth of Nested Parenthesis in a String1842
1018Search in Sorted Rotated Array1826
1019Data Structure Designing1825
1020Random Pick Index LeetCode Solution1816
1021Search an Element in Sorted Rotated Array1786
1022Kth Smallest Product of Two Sorted Arrays LeetCode Solution1769
1023Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1761
1024Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1757
1025Next Greater Element I Leetcode Solution1751
1026Print Maximum Length Chain of Pairs1715
1027Flatten Binary Tree to Linked List LeetCode Solution1702
1028Maximum Binary Tree1697
1029Peeking Iterator LeetCode Solution1672
1030Find k-th smallest element in BST (Order Statistics in BST)1670
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1627
Translate »