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 Solution34189
2Maximum occurring character in a string17777
3Plus One Leetcode Solution16513
4Valid Parentheses LeetCode Solution15950
53Sum Leetcode Solution13518
6First Repeating Element13203
7Single Number Leetcode Solution12252
8Pow(x, n) Leetcode Solution11690
9Sqrt(x) Leetcode Solution11414
10Merge Sorted Arrays Leetcode Solution11205
11Meeting Rooms II LeetCode Solution11072
12Concatenation of Array LeetCode Solution10479
13Contains Duplicate II Leetcode Solution10011
14Roman to Integer Leetcode Solution9876
15Count Primes Leetcode Solutions9813
16Search Insert Position Leetcode Solution9659
17Palindrome Number LeetCode Solution9654
18Valid Palindrome Leetcode Solution9461
19Reverse Vowels of a String Leetcode Solution9266
20Jump Game Leetcode Solution8994
21Intersection of Two Arrays II Leetcode Solution8862
22Kids With the Greatest Number of Candies Leetcode Solution8715
23House Robber Leetcode Solution8662
24Number of Good Pairs Leetcode Solution8633
25Spiral Matrix LeetCode Solution8613
26Find the Maximum Repeating Number in Array8561
27Text Justification LeetCode Solution8521
28Add Binary Leetcode Solution8508
29Longest Substring Without Repeating Characters LeetCode Solution8308
30Number Of 1 bits8058
31Longest Palindromic Substring LeetCode Solution8010
32Jewels and Stones Leetcode Solution7984
33Power of Two Leetcode Solution7944
34Maximum Subarray Leetcode Solution7838
35Permutations Leetcode Solution7720
36Shuffle String Leetcode Solution7664
37Find All Numbers Disappeared in an Array Leetcode Solution7622
38Daily Temperatures Leetcode Solution7540
39Min Stack Leetcode Solution7515
40Maximum Profit in Job Scheduling Leetcode Solution7424
41Next Permutation Leetcode Solution7403
42Kth Missing Positive Number Leetcode Solution7394
43Longest Common Prefix Leetcode Solution7354
44Frog Jump Leetcode Solution7346
45Move Zeroes LeetCode Solution7337
46Number of Islands LeetCode Solution7332
47Running Sum of 1d Array Leetcode Solution7312
48Word Search Leetcode Solution7293
49Third Maximum Number Leetcode Solution7217
50Find Minimum Distance Between Two Numbers in an Array7138
51Rotate Image LeetCode Solution7003
52Bulb Switcher LeetCode Solution6966
53Remove Duplicates from Sorted Array Leetcode Solution6964
54Next Greater Element I Leetcode Solution6956
55Median of Two Sorted Arrays LeetCode Solution6954
56Combination Sum Leetcode Solution6947
57Shuffle the Array Leetcode Solution6910
58Can Place Flowers LeetCode Solution6908
593Sum Closest LeetCode Solution6831
60Multiply Strings Leetcode Solution6789
61Search in Rotated Sorted Array Leetcode Solution6776
62House Robber II Leetcode Solution6744
63Count and Say Leetcode Solution6696
64Reverse String Without Temporary Variable6664
65Missing Number Leetcode Solution6647
66Strobogrammatic Number LeetCode Solution6645
67Valid Anagram Leetcode Solution6583
68Subarray and Subsequence6543
69Isomorphic Strings Leetcode Solution6447
70Excel Sheet Column Title Leetcode Solution6447
71Integer to Roman Leetcode Solution6441
72Evaluation of Postfix Expression6397
73Count Pairs With Given Sum6386
74Koko Eating Bananas Leetcode Solution6382
75Product of array except self6321
76Rotate String LeetCode Solution6285
77Find the Difference Leetcode Solution6204
78String to Integer (atoi) LeetCode Solution6193
79Subtract the Product and Sum of Digits of an Integer Leetcode Solution6150
80Largest Number Leetcode Solution6105
81Candy LeetCode Solution6050
82Majority Element Leetcode Solution6041
83Happy Number Leetcode Solution6008
84Set Matrix Zeroes5940
85How Many Numbers Are Smaller Than the Current Number Leetcode Solution5928
86Find Common Characters Leetcode Solution5902
87Balanced Binary Tree Leetcode Solution5891
88Is Subsequence Leetcode Solution5851
89Summary Ranges Leetcode Solution5801
90Smallest window in a string containing all characters of another string5748
91Find the Town Judge Leetcode Solution5738
92Arranging Coins Leetcode Solution5721
93Word Pattern LeetCode Solution5721
94Unique Paths Leetcode Solution5711
95Subset Leetcode5694
96Rearrange Positive and Negative Numbers Alternatively in Array5627
97Sort Colors LeetCode Solution5596
98Binary Search LeetCode Solution5541
99Sort Characters By Frequency LeetCode Solution5539
100String Compression LeetCode Solution5525
101Asteroid Collision LeetCode Solution5494
102Best Time to Buy and Sell Stock LeetCode Solution5466
103Repeated Substring Pattern LeetCode Solution5463
104Find the Winner of the Circular Game LeetCode Solution5446
105Find the Duplicate Number LeetCode Solution5428
106Sort Array By Parity LeetCode Solution5400
107Reverse Integer Leetcode Solution5372
108Linked List Cycle II LeetCode Solution5359
109Valid Palindrome II Leetcode Solution5354
110Best Time to Buy and Sell Stock  II Leetcode Solution5334
111Sum of minimum and maximum elements of all subarrays of size k5307
112A Product Array Puzzle5300
113Product of Array Except Self LeetCode Solution5283
114Rabin Karp Algorithm5283
115Zigzag Conversion LeetCode Solution5253
116Expression Evaluation5248
117Divide Two Integers Leetcode Solution5236
118Bus Routes Leetcode Solution5194
119Group Anagrams LeetCode Solution5179
120Employee Free Time LeetCode Solution5155
121Merge Two Sorted Lists Leetcode Solutions5141
122Matrix Chain Multiplication using Dynamic Programming5078
123First element occurring k times in an array5073
124Pascal Triangle Leetcode5071
125Minimum Cost For Tickets Leetcode Solution5039
126Postfix to Infix Conversion5021
127Page Replacement Algorithms in Operating Systems5013
128Build Array From Permutation Leetcode Solution4988
129Length of Last Word Leetcode Solution4981
130Kth largest element in an Array Leetcode Solutions4973
131Minimum Steps to reach target by a Knight4946
132Number of Provinces Leetcode Solution4939
133Increasing Triplet Subsequence LeetCode Solution4929
134Optimal Account Balancing LeetCode Solution4904
135Assign Cookies Leetcode Solution4881
136H-Index Leetcode Solution4879
137Implementation of Deque using Doubly Linked List4866
138Decode String Leetcode Solution4849
139Fibonacci Number LeetCode Solution4831
140Defanging an IP Address Leetcode Solution4804
141Generate Parentheses Leetcode Solution4779
142Robot Room Cleaner Leetcode Solution4751
143Remove Duplicates from Sorted Array II Leetcode Solution4749
144First Unique Character in a String LeetCode Solution4746
145Convert array into Zig-Zag fashion4740
146Subarray with Given Sum4660
147Swap Nodes in Pairs Leetcode Solutions4640
148Find Smallest Missing Number in a Sorted Array4637
149Pascal’s Triangle II Leetcode Solution4634
150Subarray Product Less Than K LeetCode Solution4605
151Check if the Elements of an Array are Consecutive4605
152Island Perimeter Leetcode Solution4604
153Bellman Ford Algorithm4597
154Guess Number Higher or Lower LeetCode Solution4582
155Length of the largest subarray with contiguous elements4573
156K-th Smallest Element in a Sorted Matrix4568
157KMP Algorithm4559
158Prefix to Infix Conversion4558
159Find the Missing Number4532
160Add Two Numbers II Leetcode Solution4528
161Find First and Last Position of Element in Sorted Array Leetcode Solution4513
162Coin Change 2 Leetcode Solution4508
163Last Stone Weight4502
164Max Consecutive Ones Leetcode Solution4495
165Lemonade Change Leetcode Solution4493
166Reverse Words in a String III LeetCode Solution4487
167Form Minimum Number from Given Sequence of D’s and I’s4482
168Majority Element II Leetcode Solution4454
169Capacity To Ship Packages Within D Days Leetcode Solution4443
170OSI Model4440
171Design Parking System Leetcode Solution4431
172First negative integer in every window of size k4403
173Find Pair with Given Difference4403
174Combinations Leetcode Solution4400
175String Compression4379
176Backspace String Compare4362
177Palindrome Linked List Leetcode Solution4353
178Remove Linked List Elements Leetcode Solution4351
179Delete middle element of a stack4351
180Iterative Implementation of Quick Sort4351
181Find All Duplicates in an Array LeetCode Solution4339
182Trapping Rain Water Leetcode Solution4338
183Remove Duplicates from Sorted List II LeetCode Solution4331
184Repeated Substring Pattern4266
185Word Ladder LeetCode Solution4248
186Break a Palindrome LeetCode Solution4240
187Subarray Sum Equals K LeetCode Solution4231
188Same Tree LeetCode Solution4211
189Monotonic Array LeetCode Solution4204
190Remove All Occurrences of a Substring LeetCode Solution4200
191Slowest Key Leetcode Solution4192
192Merge Sorted Array LeetCode Solution4156
193Continuous Subarray Sum LeetCode Solution4151
194Merge k Sorted Lists Leetcode Solution4141
19501 Matrix LeetCode Solution4141
196Find the Row with Maximum Number of 1’s4118
197Make The String Great Leetcode Solution4108
198Leetcode Permutations4077
199Find Peak Element LeetCode Solution4067
200Convert a Number to Hexadecimal Leetcode Solution4060
201Time Based Key-Value Store LeetCode Solution4045
202Second Most Repeated Word in a Sequence4043
203Number of Dice Rolls With Target Sum LeetCode Solution4037
204Rearrange given Array in Maximum Minimum Form4032
205The K Weakest Rows in a Matrix Leetcode Solution4031
206Valid Perfect Square Leetcode Solution4020
207Single Element in a Sorted Array LeetCode Solution4009
208Moving Average from Data Stream Leetcode Solution4003
209Delete Node in a Linked List Leetcode Solution4002
210Find N Unique Integers Sum up to Zero Leetcode Solution4001
211Kth Largest Element in a Stream Leetcode Solution3997
212Printing brackets in Matrix Chain Multiplication Problem3997
213Insert Delete GetRandom O(1) Leetcode Solution3996
214Target Sum3992
215Combination Sum3984
216Rotate List Leetcode Solution3978
217Find the Duplicate Element3939
218Top K Frequent Elements LeetCode Solution3936
219Max Area of Island3933
220Check If Two String Arrays are Equivalent Leetcode Solution3930
221Longest Common Subsequence LeetCode Solution3928
222Generate all Binary Strings Without Consecutive 1’s3928
223Subarray Sum Equals k3925
224Palindrome Number3912
225Maximum Product of Three Numbers LeetCode Solution3902
226Cuckoo sequence program3899
227Prefix to Postfix Conversion3887
228Reverse Only Letters LeetCode Solution3876
229LRU Cache LeetCode Solution3864
230Minimum Knight Moves LeetCode Solution3853
231Relative Sort Array Leetcode Solution3848
232Relative Ranks Leetcode Solution3843
233Find Leaders in an Array3835
234Number of Steps to Reduce a Number to Zero Leetcode Solution3820
235Find Triplet in Array With a Given Sum3818
236Flipping an Image LeetCode Solution3814
237Scramble String3813
238Letter Combinations of a Phone Number3811
239Count Good Nodes in Binary Tree Leetcode Solution3809
240Maximum Population Year LeetCode Solution3777
241Permutation in String Leetcode Solution3767
242Smallest Positive Number Missing in an Unsorted Array3765
243Unique Paths II Leetcode Solution3760
244The kth Factor of n Leetcode Solution3745
245Check If N and Its Double Exist Leetcode Solution3724
246Set Matrix Zeroes Leetcode Solution3717
247Stock Buy Sell to Maximize Profit3717
248Minimum swaps required to bring all elements less than or equal to k together3705
249N-Queens LeetCode Solution3697
250Top K Frequent Elements3697
251To Lower Case Leetcode Solution3691
252Arithmetic Expression Evaluation3691
253Maximum Subarray Sum using Divide and Conquer3690
254Given two unsorted arrays find all pairs whose sum is x3687
255Remove Minimum Characters so that Two Strings Become Anagrams3685
256Minimum Operations to convert X to Y3684
257Search Suggestions System LeetCode Solution3657
258Sum of Subarray Ranges Leetcode Solution3632
259Min Cost Climbing Stairs LeetCode Solution3623
260Student Attendance Record I Leetcode Solution3621
261Remove Duplicates from Sorted List LeetCode Solution3574
262Top K Frequent Words LeetCode Solution3572
263License Key Formatting Leetcode Solution3572
264Find the Number Occurring Odd Number of Times in an Array3569
265Maximize Distance to Closest Person LeetCode Solution3563
266Maximum Sum Increasing Subsequence3562
267Reformat Date LeetCode Solution3527
268Stone Game LeetCode3520
269Construct Binary Tree from Given Inorder and Preorder Traversals3519
270Next Permutation3500
271Prim’s Algorithm3477
272Most Frequent Element in an Array3464
273Find if Path Exists in Graph Leetcode Solution3463
274Minimum Characters to be Added at Front to Make String Palindrome3447
275Arrange given Numbers to Form the Biggest Number II3445
276Container With Most Water LeetCode Solution3443
277Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution3440
278Reverse words in a string3438
279Min Stack3437
280Minimum Path Sum Leetcode Solution3435
281Find any one of the multiple repeating elements in read only array3433
282Reverse individual words3429
283Implement a stack using single queue3425
284Count of index pairs with equal elements in an array3410
285Sort Elements by Frequency of Occurrences3408
286Design A Leaderboard Leetcode Solution3404
287BFS for Disconnected Graph3399
288Diagonal Traverse LeetCode Solution3396
289Evaluate Division3393
290Intersection of Two Arrays3392
291Maximum Depth of Binary Tree Leetcode Solution3359
292Spiral Matrix II Leetcode Solution3356
293Find Words That Can Be Formed by Characters Leetcode Solution3355
294Find The Duplicate Number3343
295Count Number of Occurrences in a Sorted Array3340
296Diagonal Traversal LeetCode Solution3326
297Special Array With X Elements Greater Than or Equal X Leetcode Solution3322
298Invalid Transactions LeetCode Solution3316
299Minimum number of Merge Operations to make an Array Palindrome3316
300Contains Duplicate LeetCode Solution3304
301Reveal Cards In Increasing Order Leetcode Solution3304
302House Robber3292
303Length of Longest valid Substring3292
304Best Time to Buy and Sell Stock III Leetcode Solution3289
305Longest Common Subsequence3278
306Least Number of Unique Integers after K Removals Leetcode Solution3267
307Remove Nth Node From End of List Leetcode Solution3260
308Last Stone Weight II LeetCode Solution3252
309Symmetric Tree Leetcode Solution3241
310Single Number3239
311Brightest Position on Street LeetCode Solution3236
312Maximum Size Subarray Sum Equals k Leetcode Solution3231
313Find Leaves of Binary Tree LeetCode Solution3207
314Special Positions in a Binary Matrix Leetcode Solution3204
315Robot Bounded In Circle LeetCode Solution3201
316Sudoku Solver3196
317Find the Closest Palindrome number3184
318Partition Labels LeetCode Solution3177
319Binary Tree Zigzag Level Order Traversal LeetCode Solution3174
320Alien Dictionary LeetCode Solution3170
321N-th Tribonacci Number Leetcode Solution3170
322Construct BST from its given Level Order Traversal3170
323The Celebrity Problem3170
324Binary Tree Inorder Traversal LeetCode Solution3163
325Shortest Word Distance Leetcode Solution3163
326Lowest Common Ancestor of a Binary Tree Leetcode Solution3154
327Range Sum Query 2D – Immutable Leetcode Solution3145
328Reverse Bits3139
329One Edit Distance LeetCode Solution3136
330Check whether Strings are K Distance Apart or Not3122
331Next Greater Element III LeetCode Solution3116
332Mobile Numeric Keypad Problem3114
333Invert Binary Tree LeetCode Solution3111
334Jump Game3101
335Count of Triplets With Sum Less than Given Value3099
336Round Robin Scheduling3092
337Find Duplicates in an Array in Most Efficient Way3092
338Next Permutation LeetCode Solution3078
339Pair of Positive Negative Values in an Array3064
340Remove All Ones With Row and Column Flips Leetcode Solution3057
341Sort Array By Parity II Leetcode Solution3049
342Find Index of Closing Bracket for a Given Opening Bracket in an Expression3048
343Find Winner on a Tic Tac Toe Game Leetcode Solution3047
344Clone Graph LeetCode Solution3041
345Minimum operation to make all elements equal in array3034
346Remove Invalid Parentheses Leetcode Solution3027
347Largest Rectangle in Histogram LeetCode Solution3026
348Regular Expression Matching Regular Expression Matching LeetCode Solution3026
349Partition Array Into Three Parts With Equal Sum Leetcode Solution3022
350Painting Fence Algorithm3011
351Merge Two Sorted Linked Lists3009
352Minimum Time Visiting All Points Leetcode Solution2994
353Find the First and Second Smallest Elements2984
354Maximal Square2975
355Find Top K (or Most Frequent) Numbers in a Stream2970
356Rank Transform of an Array Leetcode Solution2968
357Minimum Moves to Equal Array Elements Leetcode Solution2965
358Check if a given array contains duplicate elements within k distance from each other2960
359Find minimum difference between any two elements2960
360Reverse Nodes in k-Group LeetCode Solution2959
361Combination Sum IV LeetCode Solution2959
362Maximum Length of a Concatenated String with Unique Characters Leetcode Solution2957
363Tug of War2957
364Find the subarray with least average2956
365Sort a stack using a temporary stack2955
366Longest subarray not having more than K distinct elements2952
367String Matching in an Array Leetcode Solution2943
368Longest subsequence such that difference between adjacents is one2937
369Maximum Circular Subarray Sum2932
370Unique Paths2928
371Paint House LeetCode Solution2924
372Bitwise AND of Numbers Range LeetCode Solution2924
373Minimum Depth of Binary Tree Leetcode Solution2924
374Range Sum of BST LeetCode Solution2923
375K Empty Slots LeetCode2920
376LRU Cache Implementation2920
377Number of Smaller Elements on Right Side2920
378Design Browser History LeetCode Solution2918
379Maximum Number of Occurrences of a Substring Leetcode Solution2916
380Minimum Cost to Hire K Workers2902
381Longest Palindrome can be Formed by Removing or Rearranging Characters2900
382Path With Maximum Minimum Value LeetCode Solution2897
383Longest Common Prefix using Trie2896
384Dijkstra Algorithm2896
385Find the Smallest Divisor given a Threshold Leetcode Solution2895
386Best Time to Buy and Sell Stock with Cooldown Leetcode Solution2892
387Sliding Window Technique2892
388Smallest Subarray with k Distinct Numbers2890
389Ugly Number II LeetCode Solution2889
390Missing Element in Sorted Array LeetCode Solution2888
391LRU Cache Leetcode Solution2884
392Find Maximum Level sum in Binary Tree2877
393Minimize Maximum Pair Sum in Array LeetCode Solution2874
394Permutation Sequence LeetCode Solution2872
395Graph Valid Tree LeetCode Solution2872
396Integer Break LeetCode Solution2872
397First Circular Tour to Visit all the Petrol Bunks2872
398Hamming Distance Leetcode Solution2871
399Non-decreasing Array LeetCode Solution2870
400Split Linked List in Parts Leetcode Solution2866
401Common elements in all rows of a given matrix2866
402Number of Islands II LeetCode Solution2863
403Insert Interval Leetcode Solution2859
404Find the Peak Element from an Array2850
405Consecutive Characters LeetCode Solution2839
406Minimum Time to Collect All Apples in a Tree LeetCode Solution2834
407Given an Array of Pairs Find all Symmetric Pairs in it2828
408Queries for counts of array elements with values in given range2828
409Unique Paths III LeetCode Solution2822
410Transpose Graph2822
411K Closest Points to Origin Leetcode Solution2818
412Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions2818
413Find duplicates in a given array when elements are not limited to a range2814
414Invert Binary Tree LeetCode Solution2813
415Number of Closed Islands Leetcode Solution2806
416Max stack2799
417Priority Queue using doubly linked list2799
418Implementation of Deque using circular array2791
419Minesweeper LeetCode Solution2780
420Move All the Zeros to the End of the Given Array2777
421Stone Game II Leetcode2773
422Maximum Consecutive Numbers Present in an Array2766
423Sort elements by frequency2761
424Decompress Run-Length Encoded List Leetcode Solution2759
425Convert Sorted Array to Binary Search Tree LeetCode Solutions2753
426Replace Elements with Greatest Element on Right Side Leetcode Solution2749
427Odd Even Linked List Leetcode Solution2745
428Top View of Binary Tree2745
429Stack Permutations (Check if an array is stack permutation of other)2744
430Nth Catalan Number2744
431Expression Contains Redundant Bracket or Not2743
432Restore IP Addresses Leetcode Solution2742
433Word Search2742
434Design a stack that supports getMin() in O(1) time and O(1) extra space2741
435Toeplitz Matrix2734
436Binary Tree Maximum Path Sum LeetCode Solution2731
437Is Graph Bipartite? LeetCode Solution2730
438Sorting array using Stacks2724
439Longest Common Prefix using Sorting2716
440Partition List Leetcode Solution2715
441Kth Smallest Element in a BST Leetcode Solution2713
442Can Make Arithmetic Progression From Sequence Leetcode Solution2713
443Snakes and Ladders LeetCode Solution2711
444Priority Queue in C++2709
445Maximum Subarray2709
446Integer to English words2704
447Validate Stack Sequences LeetCode Solution2695
448Reverse a linked list2695
449Gold Mine Problem2694
450Path Sum II LeetCode Solution2693
451Rearrange array such that even positioned are greater than odd2692
452Vertical Order Traversal of Binary Tree LeetCode Solution2682
453Flood Fill LeetCode2681
454Recursion2679
455Minimum Absolute Difference in BST Leetcode Solution2672
456Count Submatrices With All Ones LeetCode Solution2671
457Palindrome Substring Queries2670
458Kth Non-repeating Character2664
459Multiplication of Two Matrices2658
460Sequences of given length where every element is more than or equal to twice of previous2655
461Number of Days Between Two Dates LeetCode Solution2654
462Find a Peak Element II LeetCode Solution2653
463Search a 2D Matrix II Leetcode Solution2647
464Longest Substring with At Most K Distinct Characters LeetCode Solution2646
465Number Complement Leetcode Solution2643
466Cells with Odd Values in a Matrix LeetCode Solution2640
467How to Implement Stack Using Priority Queue or Heap?2638
468Find a Fixed Point in a Given Array2636
469Longest Increasing Path in a Matrix LeetCode Solution2632
470Minimum Path Sum2626
471Find All Possible Recipes from Given Supplies LeetCode Solution2623
472Queries for GCD of all numbers of an array except elements in a given range2618
473Reorder Data in Log Files LeetCode Solution2613
474Majority Element2613
475Intersection of Two Linked Lists LeetCode Solution2612
476Shortest Completing Word Leetcode Solution2605
477Convert Sorted Array to Binary Search Tree Leetcode Solution2605
478Distance of nearest cell having 1 in a binary matrix2605
479Search in a Binary Search Tree Leetcode Solution2604
480Kruskal Algorithm2604
481Best Time to Buy and Sell Stock2595
482Detect a loop in the Linked List2595
483Trapping Rain Water LeetCode Solution2591
484Insert into a Binary Search Tree Leetcode Solution2578
485Scramble String LeetCode Solution2576
486Find Pythagorean Triplets from Array2575
487Design Hit Counter LeetCode Solution2572
4884Sum2571
489Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest2569
490Minimum Number of Taps to Open to Water a Garden LeetCode Solution2568
491Merge Two Binary Trees LeetCode Solution2566
492Shortest Palindrome2566
493High Five LeetCode Solution2563
494Largest rectangular sub-matrix whose sum is 02563
495The Stock Span Problem2561
496Find Median from Data Stream LeetCode Solution2558
497Tiling Problem2556
498Balanced Expression with Replacement2553
499Insert Node in the Sorted Linked List2549
500Generate all Binary Strings from Given Pattern2548
501Postfix to Prefix Conversion2547
502Check if Two given Strings are Isomorphic to each other2545
503Implement Trie (Prefix Tree) Leetcode Solution2541
504Divide Chocolate LeetCode Solution2539
505Custom Sort String Leetcode Solution2535
506Find Minimum in Rotated Sorted Array II LeetCode Solution2534
507Check If Array Pairs Are Divisible by k LeetCode Solution2525
508Race Car LeetCode Solution2516
509Guess Number Higher or Lower II2516
510Longest Common Prefix using Divide and Conquer2515
511Pancake Sorting Problem2515
512Camelcase Matching Leetcode Solution2514
513Kth ancestor of a node in binary tree2510
514Interval Tree2510
515Find the Minimum Element in a Sorted and Rotated Array2503
516The Maze III LeetCode Solution2502
517Substring with Concatenation of All Words Leetcode Solution2498
518Evaluate Reverse Polish Notation LeetCode Solution2498
519Largest Subarray with Equal Number of 0’s and 1’s2497
520Palindrome Permutation LeetCode Solution2495
521Count subarrays having total distinct elements same as original array2495
522Spiral Matrix III LeetCode Solution2493
523Print all Palindromic Partitions of a String2493
524Check if Array Contains Contiguous Integers With Duplicates Allowed2492
525Letter Case Permutation2490
526Sliding Window Maximum LeetCode Solution2477
527Sort Colors2473
528Sieve of Eratosthenes2470
529Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution2468
530LCS (Longest Common Subsequence) of three strings2467
531Count Possible Triangles2465
532Find the first Repeating Number in a Given Array2463
533Merge Overlapping Intervals2462
534Convert BST to Min Heap2459
535Maximum Sum of Non Consecutive Elements2459
536Sliding Window Median Leetcode Solution2457
537Analyze User Website Visit Pattern LeetCode Solution2456
538Fibonacci numbers2454
539Sort an array according to the order defined by another array2446
540Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution2445
5413 Sum2435
542How to Create Mergable Stack?2432
543Minimum Bracket Reversals2431
544Find a Sorted Subsequence of size 32427
545Decode String2423
546Longest Repeated Subsequence2420
547Maximum Length of Chain Pairs2418
548Edit Distance LeetCode Solution2415
549Coin Change Problem2411
550Minimum Jumps to Reach Home LeetCode Solution2409
551Iterative Method to find Height of Binary Tree2408
552Maximum Element in an Array which is Increasing and then Decreasing2408
553Minimum Height Trees2406
554Group Anagrams2405
555Jump Game IV LeetCode Solution2403
556Perfect Squares LeetCode Solution2402
557Longest Substring with At Least K Repeating Characters LeetCode Solution2399
558Maximum Number of Ways to Partition an Array LeetCode Solution2397
559Implement Two Stacks in an Array2396
560N queen problem2393
561Path Crossing Leetcode Solution2389
562Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2383
563Recover Binary Search Tree Leetcode Solution2381
564Different Ways to Add Parentheses Leetcode Solution2379
565Find the Lost Element From a Duplicated Array2378
566Number of Distinct Islands Leetcode Solution2377
567Decode Ways2376
568Find maximum length Snake sequence2374
569K-th Distinct Element in an Array2369
570Fibonacci Number LeetCode Solution2363
571Shifting Letters LeetCode Solution2363
572Build an Array With Stack Operations Leetcode Solution2361
573Subarrays with K Different Integers Leetcode Solution2350
574Champagne Tower LeetCode Solution2349
575Rectangle Overlap LeetCode Solution2348
576Nearest Exit from Entrance in Maze LeetCode Solution2343
577Subset sum problem2338
578Sorted Linked List to Balanced BST2336
579Most Stones Removed with Same Row or Column LeetCode Solution2332
580Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution2328
581Find if an Expression has Duplicate Parenthesis or Not2328
582Contains Duplicate2325
583Count items common to both the lists but with different prices2323
584First missing positive2322
585Find the two Numbers with Odd Occurrences in an Unsorted Array2319
586Palindrome Partitioning Leetcode Solution2311
587Valid Boomerang Leetcode Solution2309
588Sort a stack using recursion2308
589Find Largest Value in Each Tree Row LeetCode Solution2302
590Queue based approach for first non-repeating character in a stream2301
591Minimum Height Trees LeetCode Solution2298
592Monotonic Array Leetcode Solution2297
593Possible Bipartition LeetCode Solution2294
594Design a Stack With Increment Operation Leetcode Solution2285
595Number of Equivalent Domino Pairs Leetcode Solution2285
596Palindrome Permutations of a String2282
597Palindromic Substrings Leetcode Solution2281
598Sliding Window Maximum2277
599Contiguous Array LeetCode Solution2272
600Merge Overlapping Intervals II2269
601Sort a String According to Another String2266
602Distance Between Bus Stops Leetcode Solution2263
603Reorder an Array According to the Given Indexes2261
604Rearrange Spaces Between Words Leetcode Solution2255
605Word Break2255
606Find the Town Judge LeetCode Solution2254
607Maximum Frequency Stack Leetcode Solution2249
608Merge Two Balanced Binary Search Trees2246
609Best Meeting Point LeetCode Solution2243
610Detect Capital Leetcode Solution2236
611Number of palindromic paths in a matrix2234
612Morris Traversal2230
613Recover Binary Search Tree2225
614Valid Parentheses Leetcode Solution2224
615Find the Subarray of given length with Least Average2222
616Swapping Nodes in a Linked List Leetcode Solution2221
617Maximum sum rectangle in a 2D matrix2221
618Perform String Shifts Leetcode2217
619Maximum Depth of N-ary Tree Leetcode Solution2215
620Find Median from data Stream2210
621Caesar Cipher2209
622Construction of Longest Increasing Subsequence (N log N)2200
623Maximum Score After Splitting a String Leetcode Solution2193
624Check if the given array can represent Level Order Traversal of Binary Search Tree2191
625Maximum Product of Splitted Binary Tree LeetCode Solution2189
626Minimum number of jumps to reach end2189
627Merge K Sorted Arrays and Print Sorted Output2184
628Queue using Stacks2181
629All Possible Full Binary Trees LeetCode Solution2178
630Maximize Elements Using Another Array2171
631Brick Wall LeetCode Solution2170
632Pair with given product2170
633A Space Optimized DP solution for 0-1 Knapsack Problem2168
634Reach a Number LeetCode Solution2167
635Smallest Good Base2167
636Implement strStr() LeetCode Solution2165
637Binary Tree zigzag level order Traversal2163
638Find First and Last Position of Element in Sorted Array LeetCode Solution2160
639Find the First Circular Tour that visits all the Petrol Pumps2157
640Palindrome Permutation2155
641Mean of Array After Removing Some Elements Leetcode Solution2152
642Word Pattern2151
643My Calendar I LeetCode Solution2140
644Split Array Into Consecutive Subsequences2134
645Maximum Number of Chocolates to be Distributed Equally Among k Students2133
646Valid Sudoku2128
647Check if a Linked list of Strings form a Palindrome2122
648How to Efficiently Implement k Stacks in a Single Array?2119
649Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2112
650Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2110
651Group Multiple Occurrence of Array Elements Ordered by first Occurrence2108
652Find all pairs (a, b) in an array such that a % b = k2108
653Binary Tree Right Side View LeetCode Solution2104
654Populating Next Right Pointers in Each Node Leetcode Solution2104
655Count pair with Given Sum2103
656Convert Sorted List to Binary Search Tree2103
657Check if String Follows Order of Characters by a Pattern or not2093
658Minimum Sum Path in a Triangle2090
659Add two numbers2084
660Web Crawler LeetCode Solution2082
661Remove brackets from an algebraic string containing + and – operators2082
662Largest Sum Contiguous Subarray2082
663Best Time to Buy and Sell Stock IV LeetCode Solution2077
664Huffman Coding2077
665Design Skiplist LeetCode Solution2072
666Length of Longest Fibonacci Subsequence2070
667Count ways to reach the nth stair using step 1, 2 or 32067
668Segregate 0s and 1s in an Array2061
669Minimum Swaps to Group All 1’s Together Leetcode Solution2060
670Print all subarrays with 0 sum2060
671Print Fibonacci sequence using 2 variables2060
672Find whether a subarray is in form of a mountain or not2057
673Concatenation of Array LeetCode Solution2056
674Count Sub Islands LeetCode Solution2051
675Minimum time required to rot all oranges2050
676Arithmetic Slices II – Subsequence LeetCode Solution2045
677Populating Next Right Pointers in Each Node2043
678Longest Subarray Having Count of 1s One More than Count of 0s2039
679Construct BST from given Preorder Traversal2039
680Find Maximum of Minimum for Every Window Size in a Given Array2031
681Partition to K Equal Sum Subsets Leetcode Solution2027
682All Unique Triplets that Sum up to a Given Value2027
683Find four elements that sum to a given value (Hashmap)2026
684Elements Appear more than N/K times in Array2025
685Sort 0s 1s and 2s in an Array2024
686Counting Bits2022
687Isomorphic Strings LeetCode Solution2021
688Remove Palindromic Subsequences Leetcode Solution2018
689Level order Traversal in Spiral Form2016
690Range Sum Query 2D – Immutable LeetCode Solution2015
691Swap Kth Node from beginning with Kth Node from End2010
692Finding K closest element2008
693Partition Problem2008
694Count Distinct Elements in Every Window of Size K2000
695Validate Binary Search Tree1997
696Find all triplets with zero sum1996
697Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i1994
698Shortest Path in a Grid with Obstacles Elimination LeetCode Solution1991
699Check for Balanced Parentheses in an Expression1990
700Heap Sort1989
701Maximize Sum of Array after K Negations Leetcode Solution1986
702Bubble sort using two Stacks1984
703Difference Array | Range update query in O(1)1974
704Nested List Weight Sum II LeetCode Solution1957
705Count Minimum Steps to Get the given Array1955
706Find All Pairs With a Given Difference1953
707Find Duplicate Subtrees1948
708String comparison containing wildcards1946
709Contiguous Array Leetcode1935
710Binary Tree to Binary Search Tree Conversion1932
711MiniMax Algorithm1929
712Maximum Distance in Array1926
713Happy Number1926
714Linked List Cycle1926
715Rearrange an Array Such that arr[i] is equal to i1922
716Reorder Array Using Given Indexes1916
717Reverse Nodes in K-Group1914
718Maximum Product Subarray II1914
719Increasing Subsequence of Length three with Maximum Product1914
720Merge K Sorted Linked Lists1912
721Sum Root to Leaf Numbers LeetCode Solution1908
722Inorder Successor of a node in Binary Tree1899
723Parallel Courses II LeetCode Solution1898
724Symmetric Tree1897
725Root to Leaf path with target sum Leetcode Solutions1894
726Container with Most Water1891
727Maximum difference between two elements such as larger element comes after smaller1891
728Longest Increasing Subsequence1890
729Merge Two Sorted Lists Leetcode1888
730Alien Dictionary1885
731Check if Two Expressions With Brackets are Same1883
732Rotate Array1881
733Check if any two intervals overlap among a given set of intervals1880
734An Interesting Method to generate Binary Numbers from 1 to n1879
735Minimum Distance Between BST Nodes Leetcode Solution1878
736Queue Reconstruction by Height1878
737Union and Intersection of two Linked Lists1873
738Iterative Depth First Traversal of Graph1868
739Longest Common Prefix Using Binary Search II1868
740K maximum sums of overlapping contiguous sub-arrays1866
741Flatten 2D Vector LeetCode Solution1862
742Count Good Nodes in Binary Tree LeetCode Solution1860
743Find pairs with given sum such that elements of pair are in different rows1860
744Minimum Swaps to Make Strings Equal Leetcode Solution1859
745Delete Nth node from the end of the given linked list1859
746Climbing stairs1858
747Score of Parenthesis LeetCode Solution1855
748Minimum Cost to Move Chips to The Same Position LeetCode Solution1850
749Substring With Concatenation Of All Words1847
750Queries on Probability of Even or Odd Number in given Ranges1845
751Find the first repeating element in an array of integers1841
752Smallest Range II Leetcode Solution1839
753Kill Process LeetCode Solution1837
754Breadth First Search (BFS) for a Graph1835
755Find subarray with given sum (Handles Negative Numbers)1832
756Print a Binary Tree in Vertical Order1832
757Delete Nodes and Return Forest Leetcode Solution1830
758Longest Common Prefix Word by Word Matching1829
759Merging Intervals1818
760Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution1817
761Iterative Preorder Traversal1815
762Remove duplicates from sorted array1811
763Check if a queue can be sorted into another queue using a stack1809
764New 21 Game1807
765Minimum Size Subarray Sum1786
766Peak Index in a Mountain Array LeetCode Solution1784
767Valid Parenthesis String1784
768Range LCM Queries1781
769Maximum size subarray sum equals k1781
770Find K Closest Elements LeetCode Solution1780
771Vertical sum in a given binary tree1775
772Sorting a K Sorted Array1774
773Friends Of Appropriate Ages LeetCode Solution1771
774Find Maximum Sum Possible Equal Sum of Three Stacks1766
775Construct Binary Tree from given Parent Array representation1764
776Sort Array by Increasing Frequency Leetcode Solution1761
777Find the Difference Leetcode Solution1761
778Matrix Chain Multiplication1760
779Verify Preorder Serialization of a Binary Tree1758
780Find Sum of all unique sub-array sum for a given array1750
781Minimum Number of Arrows to Burst Balloons LeetCode Solution1744
782Count pairs from two linked lists whose sum is equal to a given value1744
783Minimum Remove to Make Valid Parentheses LeetCode Solution1741
784Find K Length Subarray of Maximum Average1741
785Check if a given array can represent Preorder Traversal of Binary Search Tree1740
786Non-overlapping sum of two sets1737
787Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution1734
788Defanging an IP Address LeetCode Solution1734
789Reservoir Sampling1732
790Maximum Product Subarray1730
791Find Three Element From Different Three Arrays Such That a + b + c = sum1729
792Valid Anagrams1725
793Boolean Parenthesization Problem1723
794Deletion in a Binary Tree1721
795The Painter’s Partition Problem1720
796Remove Duplicates from Sorted List II1719
797Flatten Binary Tree to Linked List LeetCode Solution1717
798Number of siblings of a given Node in n-ary Tree1717
799Sum of f(a[i], a[j]) over all pairs in an array of n integers1713
800Print All Distinct Elements of a Given Integer Array1713
801Boundary Traversal of binary tree1711
802Given a binary tree, how do you remove all the half nodes?1707
803Employee Importance LeetCode Solution1699
804Find the largest multiple of 31698
805Isomorphic Strings1697
806Unique Binary Search Trees1694
807Partition Equal Subset Sum1690
808Check Completeness of a Binary Tree LeetCode Solution1689
809Count and Say1688
810Closest Leaf in a Binary Tree LeetCode Solution1686
811Count number of triplets with product equal to given number1683
812Pancake Sorting1681
813Median of Two Sorted Arrays1679
814Level of Each node in a Tree from source node1679
815Infix to Postfix1674
816Level order traversal using two Queues1673
817Largest BST Subtree LeetCode Solution1672
818Print all triplets in sorted array that form AP1671
819Tree Traversal (Preorder, Inorder & Postorder)1671
820Find Peak Element1670
821Distinct Subsequences1668
822Products of ranges in an array1667
823Hamming Distance1667
824Third Maximum Number Leetcode Solution1662
825Maximum subsequence sum such that no three are consecutive1660
826Find Element Using Binary Search in Sorted Array1660
827Longest Palindromic Subsequence1654
828Bold Words in String LeetCode Solution1652
829Subset Sum Problem in O(sum) space1652
830Find distance between two nodes of a Binary Tree1650
831Unique Binary Search Trees LeetCode Solution1649
832Largest divisible pairs subset1644
833Array Nesting Leetcode Solution1642
834Create Maximum Number1639
835Find Nth Node1638
836Palindrome Partitioning1636
837BFS vs DFS for Binary Tree1636
838Super Ugly Number1633
839Find Common Characters Leetcode Solution1631
840Valid Number1627
841Four Elements that Sum to Given1627
842Largest Submatrix With Rearrangements LeetCode Solution1625
843Kth Smallest Element in a Sorted Matrix LeetCode Solution1618
844Minimum insertions to form a palindrome with permutations allowed1615
845Binary array after M range toggle operations1614
846Missing Number1614
847Maximum number of segments of lengths a, b and c1613
848Serialize and Deserialize Binary Tree LeetCode Solution1606
849Valid Triangle Number LeetCode Solution1605
850Lowest Common Ancestor1605
851Compare Strings by Frequency of the Smallest Character Leetcode Solution1604
852Transform a BST to Greater sum Tree1603
853Maximum Population Year LeetCode Solution1600
854Shuffle an Array1599
855Newman-Conway Sequence1596
856Sort Elements by Frequency II1596
857Check if two nodes are on the same path in a Tree1591
858Number Of Longest Increasing Subsequence1591
859Next Greater Element in an Array1590
860Find Smallest Range Containing Elements from k Lists1587
861Binary Tree Longest Consecutive Sequence LeetCode Solution1580
862Sentence Screen Fitting LeetCode Solution1579
863Insert Delete GetRandom1578
864Trapping Rain Water II LeetCode Solution1577
865Balanced Binary Tree1577
866Next Greater Element II LeetCode Solution1574
867Integer to Roman1570
868Averages of Levels in Binary Tree1569
869Maximum Sum of 3 Non-Overlapping Subarrays1568
870Minimum sum of squares of character counts in a given string after removing k characters1555
871Path Sum1555
872Arrange given numbers to form the biggest number1554
873First Bad Version1554
874Largest subarray with equal number of 0s and 1s1553
875Encoded String With Shortest Length LeetCode Solution1551
876Check if all levels of two Binary Tree are anagrams or not1551
877Merging Two Sorted Arrays1551
878Closest Binary Search Tree Value Leetcode Solution1550
879Height of a generic tree from parent array1548
880Stone Game IV LeetCode Solution1545
881Merge Two Sorted Arrays1542
882Valid Triangle Number LeetCode Solution1541
883Stone Game IV LeetCode Solution1538
884Topological Sorting1538
885Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution1534
886Kth Smallest Number in Multiplication Table Leetcode Solution1534
887Contiguous Array1530
888Count Primes in Ranges1528
889Permutations of a Given String Using STL1528
890Red-Black Tree Introduction1527
891Lower Case To Upper Case1525
892Range Minimum Query (Square Root Decomposition and Sparse Table)1517
893Reorganize String1513
894Diameter of N-Ary Tree LeetCode Solution1507
895Print Right View of a Binary Tree1504
896Bottom View of a Binary Tree1502
897Friends Pairing Problem1500
898Find minimum number of merge operations to make an array palindrome1500
899Find unique character in a string1500
900Iterative Postorder Traversal Using Two Stacks1498
901Maximum difference between first and last indexes of an element in array1496
902Orderly Queue LeetCode Solution1494
903Find Largest d in Array such that a + b + c = d1493
904Level Order Traversal of Binary Tree1492
905Find Minimum In Rotated Sorted Array1490
906Minimum Swaps To Make Sequences Increasing LeetCode Solution1489
907Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’1485
908Diagonal Traversal of Binary Tree1481
909Longest Bitonic Subsequence1479
910Constant time range add operation on an array1476
911Swap Nodes In Pairs1473
912Total Hamming Distance LeetCode Solution1471
913Reverse a Path in BST using Queue1469
914Valid Perfect Square LeetCode Solution1467
915Serialize and Deserialize Binary Tree1466
916Binary Search Tree Delete Operation1464
917Next greater element1462
918Largest Plus Sign Leetcode Solution1461
919Koko Eating Bananas LeetCode Solution1457
920Range Sum Query using Sparse Table1451
921Count the Pairs at Same Distance as in English Alphabets1450
922Segment Tree1448
923Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution1443
924Best Meeting Point LeetCode Solution1443
925Maximum Product Subarray1439
926Binary Search Tree Search and Insertion1430
927Valid Tic-Tac-Toe State LeetCode Solution1429
928Longest Substring Without Repeating Characters Leetcode Solution1426
929A program to check if a binary tree is BST or not1424
930Edit Distance1424
931Maximum Product Subarray1421
932Advantages of BST over Hash Table1420
933Find the smallest binary digit multiple of given number1419
934The Number of Weak Characters in the Game LeetCode Solution1410
935Maximum difference between frequency of two elements such that element having greater frequency is also greater1400
936Convert BST into a Min-Heap without using array1400
937Maximum Sum Increasing Subsequence1399
938Group Shifted Strings Leetcode Solution1398
939Shuffle a given Array1397
940Longest Increasing Consecutive Subsequence1390
941Design Add and Search Words Data Structure LeetCode Solution1386
942Array Queries for multiply replacements and product1386
943K’th Largest element in BST using constant extra space1379
944Image Overlap LeetCode Solution1378
945Greatest Sum Divisible by Three LeetCode Solution1377
946Priority Queue1377
947Dividing Array into Pairs With Sum Divisible by K1374
948Print Next Greater Number of Q queries1371
949Design Underground System Leetcode Solution1368
950Print n terms of Newman-Conway Sequence1366
951Write a function to get the intersection point of two Linked Lists1365
952Collect maximum points in a grid using two traversals1365
953Find the node with minimum value in a Binary Search Tree1362
954Construct Complete Binary Tree from its Linked List Representation1359
955Range Queries for Longest Correct Bracket Subsequence1358
956Factorial Trailing Zeroes LeetCode Solution1349
957Check if an Array is Stack Sortable1349
958Merge Sort1349
959Insert into a Sorted Circular Linked List LeetCode Solution1344
960Queries on XOR of greatest odd divisor of the range1343
961Swim in Rising Water LeetCode Solution1341
962Guess The Word1341
963Form Minimum Number From Given Sequence1340
964Lowest Common Ancestor in Binary Search Tree1340
965Sorted Array to Balanced BST1330
966Numbers with prime frequencies greater than or equal to k1329
967Print modified array after multiple array range increment operations1326
968Power of Two1326
969Find postorder traversal of BST from preorder traversal1325
970Clone a Binary Tree with Random Pointers1325
971K’th Largest Element in BST when modification to BST is not allowed1323
972Maximum Array from Two given Arrays Keeping Order Same1319
973Write Code to Determine if Two Trees are Identical1317
974Moving Stones Until Consecutive Leetcode Solution1315
975Form minimum number from given sequence1315
976Longest Common Prefix using Character by Character Matching1314
977Excel Sheet Column Number LeetCode Solution1313
978Print all Possible Ways to Break a String in Bracket Form1310
979Queries for Number of Distinct Elements in a Subarray1305
980Merge Sorted Array1303
981Check for Palindrome after every character replacement Query1299
982K Empty Slots1290
983Count and Toggle Queries on a Binary Array1288
984Check if each internal node of a BST has exactly one child1279
985Cutting a Rod1278
986Count even length binary sequences with same sum of first and second half bits1275
987Decrease Elements To Make Array Zigzag LeetCode Solution1274
988Search in Sorted Rotated Array1270
989Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1269
990Find Maximum Depth of Nested Parenthesis in a String1266
991Number of elements less than or equal to a given number in a given subarray1262
992Closest Binary Search Tree Value II LeetCode Solution1258
993Find maximum average subarray of k length1256
994Check if X can give change to every person in the Queue1255
995Queries for Decimal Values of Subarrays of a Binary Array1253
996Number of Orders in the Backlog Leetcode Solution1248
997Binary Search Tree1248
998Kth Smallest Product of Two Sorted Arrays LeetCode Solution1246
999Kth Smallest Element in a BST1244
1000Print Ancestors of a Given Binary Tree Node Without Recursion1242
1001Count Pairs Whose Products Exist in Array1237
1002Minimum Moves to Equal Array Elements LeetCode Solution1235
1003Unique Paths II1235
1004Merge two BSTs with limited extra space1235
1005Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1221
1006Regular Expression Matching1221
1007Symmetric Tree LeetCode Solution Leetcode Solution1214
1008Sum of Left Leaves LeetCode Solution1209
1009Shortest Unsorted Continuous Subarray LeetCode Solution1202
1010Maximum weight transformation of a given string1202
1011How to print maximum number of A’s using given four keys1200
1012Graph Cloning1194
1013Random Pick Index LeetCode Solution1182
1014Maximum Depth Of Binary Tree1176
1015Palindrome Partitioning1175
1016Excel Sheet Column Title LeetCode Solution1172
1017Search an Element in Sorted Rotated Array1158
1018Data Structure Designing1148
1019Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1147
1020Check given array of size n can represent BST of n levels or not1142
1021Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1141
1022Iterative method to find ancestors of a given binary tree1133
1023Next Greater Element I Leetcode Solution1107
1024Maximum Binary Tree1103
1025Binary Tree to Binary Search Tree Conversion using STL set1080
1026Find k-th smallest element in BST (Order Statistics in BST)1070
1027Find the Town Judge LeetCode Solution1065
1028Print Maximum Length Chain of Pairs1020
1029Peeking Iterator LeetCode Solution1012
1030Flatten Binary Tree to Linked List LeetCode Solution999
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution988
Translate »