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 Solution34685
2Maximum occurring character in a string17864
3Plus One Leetcode Solution16661
4Valid Parentheses LeetCode Solution16136
53Sum Leetcode Solution13672
6First Repeating Element13261
7Single Number Leetcode Solution12365
8Pow(x, n) Leetcode Solution11813
9Sqrt(x) Leetcode Solution11535
10Merge Sorted Arrays Leetcode Solution11358
11Meeting Rooms II LeetCode Solution11175
12Concatenation of Array LeetCode Solution10619
13Contains Duplicate II Leetcode Solution10088
14Roman to Integer Leetcode Solution9986
15Count Primes Leetcode Solutions9919
16Palindrome Number LeetCode Solution9742
17Search Insert Position Leetcode Solution9733
18Valid Palindrome Leetcode Solution9558
19Reverse Vowels of a String Leetcode Solution9350
20Jump Game Leetcode Solution9115
21Intersection of Two Arrays II Leetcode Solution8939
22Kids With the Greatest Number of Candies Leetcode Solution8827
23House Robber Leetcode Solution8753
24Number of Good Pairs Leetcode Solution8724
25Spiral Matrix LeetCode Solution8703
26Find the Maximum Repeating Number in Array8642
27Add Binary Leetcode Solution8633
28Text Justification LeetCode Solution8573
29Longest Substring Without Repeating Characters LeetCode Solution8429
30Number Of 1 bits8144
31Longest Palindromic Substring LeetCode Solution8118
32Jewels and Stones Leetcode Solution8059
33Power of Two Leetcode Solution8002
34Maximum Subarray Leetcode Solution7972
35Permutations Leetcode Solution7811
36Shuffle String Leetcode Solution7732
37Find All Numbers Disappeared in an Array Leetcode Solution7720
38Daily Temperatures Leetcode Solution7634
39Min Stack Leetcode Solution7609
40Maximum Profit in Job Scheduling Leetcode Solution7494
41Next Permutation Leetcode Solution7482
42Kth Missing Positive Number Leetcode Solution7474
43Longest Common Prefix Leetcode Solution7413
44Number of Islands LeetCode Solution7413
45Frog Jump Leetcode Solution7403
46Move Zeroes LeetCode Solution7401
47Word Search Leetcode Solution7371
48Running Sum of 1d Array Leetcode Solution7344
49Third Maximum Number Leetcode Solution7274
50Find Minimum Distance Between Two Numbers in an Array7208
51Remove Duplicates from Sorted Array Leetcode Solution7144
52Median of Two Sorted Arrays LeetCode Solution7089
53Rotate Image LeetCode Solution7068
54Next Greater Element I Leetcode Solution7052
55Can Place Flowers LeetCode Solution7018
56Bulb Switcher LeetCode Solution7012
57Combination Sum Leetcode Solution7004
58Shuffle the Array Leetcode Solution6963
593Sum Closest LeetCode Solution6905
60Search in Rotated Sorted Array Leetcode Solution6890
61Multiply Strings Leetcode Solution6879
62House Robber II Leetcode Solution6820
63Count and Say Leetcode Solution6762
64Reverse String Without Temporary Variable6709
65Valid Anagram Leetcode Solution6705
66Strobogrammatic Number LeetCode Solution6700
67Missing Number Leetcode Solution6693
68Subarray and Subsequence6600
69Excel Sheet Column Title Leetcode Solution6518
70Isomorphic Strings Leetcode Solution6502
71Integer to Roman Leetcode Solution6499
72Evaluation of Postfix Expression6484
73Koko Eating Bananas Leetcode Solution6450
74Count Pairs With Given Sum6431
75Product of array except self6396
76Rotate String LeetCode Solution6364
77String to Integer (atoi) LeetCode Solution6273
78Find the Difference Leetcode Solution6266
79Subtract the Product and Sum of Digits of an Integer Leetcode Solution6238
80Largest Number Leetcode Solution6153
81Candy LeetCode Solution6130
82Majority Element Leetcode Solution6125
83Happy Number Leetcode Solution6091
84How Many Numbers Are Smaller Than the Current Number Leetcode Solution6008
85Set Matrix Zeroes5998
86Is Subsequence Leetcode Solution5977
87Balanced Binary Tree Leetcode Solution5974
88Find Common Characters Leetcode Solution5946
89Summary Ranges Leetcode Solution5880
90Smallest window in a string containing all characters of another string5813
91Word Pattern LeetCode Solution5810
92Subset Leetcode5805
93Find the Town Judge Leetcode Solution5789
94Unique Paths Leetcode Solution5789
95Arranging Coins Leetcode Solution5784
96Rearrange Positive and Negative Numbers Alternatively in Array5693
97Sort Colors LeetCode Solution5657
98Sort Characters By Frequency LeetCode Solution5633
99Binary Search LeetCode Solution5614
100String Compression LeetCode Solution5606
101Asteroid Collision LeetCode Solution5575
102Best Time to Buy and Sell Stock LeetCode Solution5565
103Find the Winner of the Circular Game LeetCode Solution5537
104Repeated Substring Pattern LeetCode Solution5510
105Find the Duplicate Number LeetCode Solution5493
106Sort Array By Parity LeetCode Solution5460
107A Product Array Puzzle5436
108Valid Palindrome II Leetcode Solution5430
109Reverse Integer Leetcode Solution5423
110Best Time to Buy and Sell Stock  II Leetcode Solution5408
111Linked List Cycle II LeetCode Solution5392
112Rabin Karp Algorithm5379
113Sum of minimum and maximum elements of all subarrays of size k5370
114Product of Array Except Self LeetCode Solution5354
115Expression Evaluation5324
116Zigzag Conversion LeetCode Solution5317
117Divide Two Integers Leetcode Solution5290
118Bus Routes Leetcode Solution5263
119Group Anagrams LeetCode Solution5258
120Employee Free Time LeetCode Solution5195
121Merge Two Sorted Lists Leetcode Solutions5195
122Matrix Chain Multiplication using Dynamic Programming5158
123Minimum Cost For Tickets Leetcode Solution5118
124Pascal Triangle Leetcode5114
125First element occurring k times in an array5109
126Page Replacement Algorithms in Operating Systems5090
127Postfix to Infix Conversion5080
128Length of Last Word Leetcode Solution5052
129Kth largest element in an Array Leetcode Solutions5042
130Build Array From Permutation Leetcode Solution5033
131Number of Provinces Leetcode Solution5019
132Minimum Steps to reach target by a Knight5011
133Increasing Triplet Subsequence LeetCode Solution5003
134Optimal Account Balancing LeetCode Solution4957
135Assign Cookies Leetcode Solution4948
136H-Index Leetcode Solution4946
137Implementation of Deque using Doubly Linked List4930
138Decode String Leetcode Solution4912
139Generate Parentheses Leetcode Solution4880
140Fibonacci Number LeetCode Solution4876
141Remove Duplicates from Sorted Array II Leetcode Solution4849
142Defanging an IP Address Leetcode Solution4841
143First Unique Character in a String LeetCode Solution4808
144Convert array into Zig-Zag fashion4801
145Robot Room Cleaner Leetcode Solution4791
146Pascal’s Triangle II Leetcode Solution4734
147Subarray with Given Sum4705
148Swap Nodes in Pairs Leetcode Solutions4694
149Find Smallest Missing Number in a Sorted Array4692
150Island Perimeter Leetcode Solution4681
151Subarray Product Less Than K LeetCode Solution4666
152Check if the Elements of an Array are Consecutive4663
153Bellman Ford Algorithm4660
154KMP Algorithm4639
155Length of the largest subarray with contiguous elements4629
156K-th Smallest Element in a Sorted Matrix4627
157Guess Number Higher or Lower LeetCode Solution4619
158Prefix to Infix Conversion4612
159Find First and Last Position of Element in Sorted Array Leetcode Solution4593
160Add Two Numbers II Leetcode Solution4582
161Find the Missing Number4576
162Coin Change 2 Leetcode Solution4572
163Last Stone Weight4569
164Max Consecutive Ones Leetcode Solution4563
165Lemonade Change Leetcode Solution4556
166Form Minimum Number from Given Sequence of D’s and I’s4530
167Reverse Words in a String III LeetCode Solution4527
168Majority Element II Leetcode Solution4520
169OSI Model4515
170Find Pair with Given Difference4499
171Capacity To Ship Packages Within D Days Leetcode Solution4490
172Design Parking System Leetcode Solution4487
173First negative integer in every window of size k4453
174Combinations Leetcode Solution4448
175Delete middle element of a stack4431
176String Compression4423
177Palindrome Linked List Leetcode Solution4408
178Trapping Rain Water Leetcode Solution4407
179Backspace String Compare4407
180Remove Linked List Elements Leetcode Solution4406
181Find All Duplicates in an Array LeetCode Solution4403
182Iterative Implementation of Quick Sort4396
183Remove Duplicates from Sorted List II LeetCode Solution4392
184Repeated Substring Pattern4338
185Subarray Sum Equals K LeetCode Solution4330
186Word Ladder LeetCode Solution4307
187Break a Palindrome LeetCode Solution4295
188Same Tree LeetCode Solution4276
189Slowest Key Leetcode Solution4255
190Remove All Occurrences of a Substring LeetCode Solution4250
191Monotonic Array LeetCode Solution4250
192Merge Sorted Array LeetCode Solution4226
193Find the Row with Maximum Number of 1’s4209
194Continuous Subarray Sum LeetCode Solution4208
19501 Matrix LeetCode Solution4204
196Merge k Sorted Lists Leetcode Solution4202
197Leetcode Permutations4144
198Make The String Great Leetcode Solution4139
199Find Peak Element LeetCode Solution4132
200Convert a Number to Hexadecimal Leetcode Solution4120
201Time Based Key-Value Store LeetCode Solution4109
202Insert Delete GetRandom O(1) Leetcode Solution4104
203The K Weakest Rows in a Matrix Leetcode Solution4092
204Valid Perfect Square Leetcode Solution4090
205Rearrange given Array in Maximum Minimum Form4085
206Second Most Repeated Word in a Sequence4081
207Number of Dice Rolls With Target Sum LeetCode Solution4080
208Single Element in a Sorted Array LeetCode Solution4075
209Delete Node in a Linked List Leetcode Solution4057
210Moving Average from Data Stream Leetcode Solution4048
211Find N Unique Integers Sum up to Zero Leetcode Solution4047
212Kth Largest Element in a Stream Leetcode Solution4043
213Printing brackets in Matrix Chain Multiplication Problem4042
214Target Sum4041
215Combination Sum4041
216Rotate List Leetcode Solution4033
217Relative Ranks Leetcode Solution4012
218Find the Duplicate Element3993
219Longest Common Subsequence LeetCode Solution3991
220Max Area of Island3991
221Generate all Binary Strings Without Consecutive 1’s3987
222Top K Frequent Elements LeetCode Solution3985
223Maximum Product of Three Numbers LeetCode Solution3983
224Cuckoo sequence program3982
225Subarray Sum Equals k3973
226Check If Two String Arrays are Equivalent Leetcode Solution3972
227Palindrome Number3967
228LRU Cache LeetCode Solution3941
229Prefix to Postfix Conversion3924
230Minimum Knight Moves LeetCode Solution3921
231Reverse Only Letters LeetCode Solution3921
232Relative Sort Array Leetcode Solution3915
233Find Leaders in an Array3903
234Find Triplet in Array With a Given Sum3881
235Letter Combinations of a Phone Number3870
236Count Good Nodes in Binary Tree Leetcode Solution3866
237Number of Steps to Reduce a Number to Zero Leetcode Solution3864
238Scramble String3858
239Flipping an Image LeetCode Solution3854
240Permutation in String Leetcode Solution3831
241Maximum Population Year LeetCode Solution3827
242Unique Paths II Leetcode Solution3817
243Smallest Positive Number Missing in an Unsorted Array3816
244Set Matrix Zeroes Leetcode Solution3814
245The kth Factor of n Leetcode Solution3788
246N-Queens LeetCode Solution3783
247Check If N and Its Double Exist Leetcode Solution3778
248Stock Buy Sell to Maximize Profit3771
249Arithmetic Expression Evaluation3751
250Top K Frequent Elements3750
251Minimum swaps required to bring all elements less than or equal to k together3745
252Given two unsorted arrays find all pairs whose sum is x3740
253To Lower Case Leetcode Solution3735
254Maximum Subarray Sum using Divide and Conquer3734
255Remove Minimum Characters so that Two Strings Become Anagrams3732
256Minimum Operations to convert X to Y3726
257Search Suggestions System LeetCode Solution3703
258Min Cost Climbing Stairs LeetCode Solution3680
259Sum of Subarray Ranges Leetcode Solution3669
260Student Attendance Record I Leetcode Solution3663
261License Key Formatting Leetcode Solution3619
262Construct Binary Tree from Given Inorder and Preorder Traversals3614
263Top K Frequent Words LeetCode Solution3613
264Find the Number Occurring Odd Number of Times in an Array3612
265Maximize Distance to Closest Person LeetCode Solution3609
266Remove Duplicates from Sorted List LeetCode Solution3607
267Maximum Sum Increasing Subsequence3600
268Stone Game LeetCode3590
269Reformat Date LeetCode Solution3573
270Prim’s Algorithm3552
271Next Permutation3537
272Container With Most Water LeetCode Solution3517
273Most Frequent Element in an Array3517
274Find if Path Exists in Graph Leetcode Solution3505
275Reverse words in a string3495
276Minimum Characters to be Added at Front to Make String Palindrome3491
277Minimum Path Sum Leetcode Solution3490
278Find any one of the multiple repeating elements in read only array3487
279Min Stack3485
280Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution3480
281Implement a stack using single queue3471
282Count of index pairs with equal elements in an array3470
283Reverse individual words3467
284Arrange given Numbers to Form the Biggest Number II3467
285Diagonal Traverse LeetCode Solution3458
286BFS for Disconnected Graph3453
287Design A Leaderboard Leetcode Solution3446
288Sort Elements by Frequency of Occurrences3446
289Intersection of Two Arrays3434
290Find The Duplicate Number3434
291Evaluate Division3427
292Find Words That Can Be Formed by Characters Leetcode Solution3413
293Maximum Depth of Binary Tree Leetcode Solution3411
294Contains Duplicate LeetCode Solution3388
295Spiral Matrix II Leetcode Solution3386
296Count Number of Occurrences in a Sorted Array3374
297Special Array With X Elements Greater Than or Equal X Leetcode Solution3362
298Reveal Cards In Increasing Order Leetcode Solution3360
299Diagonal Traversal LeetCode Solution3359
300Minimum number of Merge Operations to make an Array Palindrome3353
301Invalid Transactions LeetCode Solution3349
302Longest Common Subsequence3341
303Length of Longest valid Substring3340
304House Robber3338
305Best Time to Buy and Sell Stock III Leetcode Solution3334
306Remove Nth Node From End of List Leetcode Solution3330
307Last Stone Weight II LeetCode Solution3304
308Least Number of Unique Integers after K Removals Leetcode Solution3302
309Single Number3300
310Symmetric Tree Leetcode Solution3291
311Maximum Size Subarray Sum Equals k Leetcode Solution3289
312Brightest Position on Street LeetCode Solution3280
313Sudoku Solver3263
314Special Positions in a Binary Matrix Leetcode Solution3261
315Find Leaves of Binary Tree LeetCode Solution3248
316Range Sum Query 2D – Immutable Leetcode Solution3247
317Robot Bounded In Circle LeetCode Solution3224
318Find the Closest Palindrome number3223
319N-th Tribonacci Number Leetcode Solution3222
320Binary Tree Inorder Traversal LeetCode Solution3220
321Construct BST from its given Level Order Traversal3215
322Lowest Common Ancestor of a Binary Tree Leetcode Solution3214
323Shortest Word Distance Leetcode Solution3212
324Partition Labels LeetCode Solution3210
325Binary Tree Zigzag Level Order Traversal LeetCode Solution3201
326The Celebrity Problem3199
327Alien Dictionary LeetCode Solution3198
328Reverse Bits3191
329One Edit Distance LeetCode Solution3183
330Check whether Strings are K Distance Apart or Not3179
331Mobile Numeric Keypad Problem3161
332Invert Binary Tree LeetCode Solution3159
333Next Greater Element III LeetCode Solution3158
334Find Duplicates in an Array in Most Efficient Way3150
335Jump Game3143
336Count of Triplets With Sum Less than Given Value3141
337Round Robin Scheduling3137
338Next Permutation LeetCode Solution3126
339Remove All Ones With Row and Column Flips Leetcode Solution3118
340Pair of Positive Negative Values in an Array3112
341Find Winner on a Tic Tac Toe Game Leetcode Solution3109
342Sort Array By Parity II Leetcode Solution3099
343Find Index of Closing Bracket for a Given Opening Bracket in an Expression3099
344Clone Graph LeetCode Solution3092
345Remove Invalid Parentheses Leetcode Solution3083
346Minimum operation to make all elements equal in array3083
347Largest Rectangle in Histogram LeetCode Solution3082
348Partition Array Into Three Parts With Equal Sum Leetcode Solution3081
349Regular Expression Matching Regular Expression Matching LeetCode Solution3065
350Painting Fence Algorithm3050
351Merge Two Sorted Linked Lists3050
352Minimum Time Visiting All Points Leetcode Solution3045
353Maximal Square3023
354Rank Transform of an Array Leetcode Solution3022
355Check if a given array contains duplicate elements within k distance from each other3017
356Sort a stack using a temporary stack3015
357Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3014
358Longest subarray not having more than K distinct elements3013
359Reverse Nodes in k-Group LeetCode Solution3009
360Find the First and Second Smallest Elements3009
361Find Top K (or Most Frequent) Numbers in a Stream3008
362Minimum Moves to Equal Array Elements Leetcode Solution3006
363Tug of War3003
364Find minimum difference between any two elements3000
365Find the subarray with least average2995
366Minimum Cost to Hire K Workers2993
367Combination Sum IV LeetCode Solution2992
368Paint House LeetCode Solution2988
369Minimum Depth of Binary Tree Leetcode Solution2984
370String Matching in an Array Leetcode Solution2983
371Maximum Circular Subarray Sum2983
372Range Sum of BST LeetCode Solution2977
373Longest subsequence such that difference between adjacents is one2976
374Unique Paths2967
375Smallest Subarray with k Distinct Numbers2964
376Number of Smaller Elements on Right Side2963
377K Empty Slots LeetCode2960
378Maximum Number of Occurrences of a Substring Leetcode Solution2958
379LRU Cache Implementation2956
380Bitwise AND of Numbers Range LeetCode Solution2955
381Best Time to Buy and Sell Stock with Cooldown Leetcode Solution2954
382Path With Maximum Minimum Value LeetCode Solution2951
383Dijkstra Algorithm2951
384Design Browser History LeetCode Solution2950
385Longest Common Prefix using Trie2948
386Find the Smallest Divisor given a Threshold Leetcode Solution2937
387Sliding Window Technique2934
388Longest Palindrome can be Formed by Removing or Rearranging Characters2933
389Ugly Number II LeetCode Solution2932
390Missing Element in Sorted Array LeetCode Solution2931
391LRU Cache Leetcode Solution2929
392Split Linked List in Parts Leetcode Solution2921
393Find Maximum Level sum in Binary Tree2920
394Common elements in all rows of a given matrix2920
395Permutation Sequence LeetCode Solution2919
396Hamming Distance Leetcode Solution2919
397Integer Break LeetCode Solution2916
398Non-decreasing Array LeetCode Solution2915
399Minimize Maximum Pair Sum in Array LeetCode Solution2915
400Graph Valid Tree LeetCode Solution2908
401First Circular Tour to Visit all the Petrol Bunks2908
402Insert Interval Leetcode Solution2899
403Minimum Time to Collect All Apples in a Tree LeetCode Solution2895
404Transpose Graph2893
405Given an Array of Pairs Find all Symmetric Pairs in it2892
406Number of Islands II LeetCode Solution2889
407Find the Peak Element from an Array2880
408Consecutive Characters LeetCode Solution2874
409Queries for counts of array elements with values in given range2871
410K Closest Points to Origin Leetcode Solution2869
411Unique Paths III LeetCode Solution2868
412Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions2866
413Invert Binary Tree LeetCode Solution2859
414Find duplicates in a given array when elements are not limited to a range2858
415Implementation of Deque using circular array2855
416Priority Queue using doubly linked list2854
417Number of Closed Islands Leetcode Solution2846
418Max stack2842
419Minesweeper LeetCode Solution2833
420Stone Game II Leetcode2816
421Maximum Consecutive Numbers Present in an Array2813
422Move All the Zeros to the End of the Given Array2810
423Sort elements by frequency2808
424Convert Sorted Array to Binary Search Tree LeetCode Solutions2802
425Word Search2800
426Replace Elements with Greatest Element on Right Side Leetcode Solution2798
427Odd Even Linked List Leetcode Solution2794
428Decompress Run-Length Encoded List Leetcode Solution2793
429Expression Contains Redundant Bracket or Not2790
430Top View of Binary Tree2789
431Restore IP Addresses Leetcode Solution2786
432Stack Permutations (Check if an array is stack permutation of other)2784
433Binary Tree Maximum Path Sum LeetCode Solution2783
434Design a stack that supports getMin() in O(1) time and O(1) extra space2782
435Toeplitz Matrix2779
436Maximum Subarray2779
437Is Graph Bipartite? LeetCode Solution2772
438Nth Catalan Number2772
439Partition List Leetcode Solution2771
440Snakes and Ladders LeetCode Solution2770
441Sorting array using Stacks2765
442Can Make Arithmetic Progression From Sequence Leetcode Solution2762
443Validate Stack Sequences LeetCode Solution2752
444Kth Smallest Element in a BST Leetcode Solution2752
445Priority Queue in C++2751
446Integer to English words2749
447Longest Common Prefix using Sorting2748
448Path Sum II LeetCode Solution2740
449Gold Mine Problem2739
450Vertical Order Traversal of Binary Tree LeetCode Solution2728
451Flood Fill LeetCode2725
452Rearrange array such that even positioned are greater than odd2720
453Recursion2719
454Reverse a linked list2716
455Palindrome Substring Queries2711
456Longest Substring with At Most K Distinct Characters LeetCode Solution2710
457Minimum Absolute Difference in BST Leetcode Solution2709
458Kth Non-repeating Character2707
459Number of Days Between Two Dates LeetCode Solution2703
460Number Complement Leetcode Solution2700
461Count Submatrices With All Ones LeetCode Solution2699
462Sequences of given length where every element is more than or equal to twice of previous2698
463Multiplication of Two Matrices2698
464Find a Peak Element II LeetCode Solution2693
465Search a 2D Matrix II Leetcode Solution2693
466Find All Possible Recipes from Given Supplies LeetCode Solution2683
467How to Implement Stack Using Priority Queue or Heap?2681
468Find a Fixed Point in a Given Array2679
469Cells with Odd Values in a Matrix LeetCode Solution2674
470Minimum Path Sum2671
471Longest Increasing Path in a Matrix LeetCode Solution2669
472Queries for GCD of all numbers of an array except elements in a given range2664
473Intersection of Two Linked Lists LeetCode Solution2653
474Majority Element2652
475Search in a Binary Search Tree Leetcode Solution2650
476Kruskal Algorithm2649
477Distance of nearest cell having 1 in a binary matrix2648
478Convert Sorted Array to Binary Search Tree Leetcode Solution2646
479Shortest Completing Word Leetcode Solution2638
480Best Time to Buy and Sell Stock2637
481Reorder Data in Log Files LeetCode Solution2635
482Trapping Rain Water LeetCode Solution2629
483Detect a loop in the Linked List2628
484Shortest Palindrome2626
485Insert into a Binary Search Tree Leetcode Solution2625
486Scramble String LeetCode Solution2624
4874Sum2622
488Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest2621
489Minimum Number of Taps to Open to Water a Garden LeetCode Solution2619
490Find Pythagorean Triplets from Array2619
491High Five LeetCode Solution2615
492Design Hit Counter LeetCode Solution2614
493Find Median from Data Stream LeetCode Solution2610
494Check if Two given Strings are Isomorphic to each other2610
495The Stock Span Problem2604
496Merge Two Binary Trees LeetCode Solution2603
497Find Minimum in Rotated Sorted Array II LeetCode Solution2599
498Generate all Binary Strings from Given Pattern2596
499Implement Trie (Prefix Tree) Leetcode Solution2593
500Largest rectangular sub-matrix whose sum is 02593
501Balanced Expression with Replacement2593
502Tiling Problem2591
503Insert Node in the Sorted Linked List2588
504Postfix to Prefix Conversion2580
505Interval Tree2578
506Substring with Concatenation of All Words Leetcode Solution2574
507Camelcase Matching Leetcode Solution2568
508Divide Chocolate LeetCode Solution2568
509Custom Sort String Leetcode Solution2568
510Evaluate Reverse Polish Notation LeetCode Solution2564
511Check If Array Pairs Are Divisible by k LeetCode Solution2560
512Kth ancestor of a node in binary tree2554
513Race Car LeetCode Solution2552
514Pancake Sorting Problem2552
515Longest Common Prefix using Divide and Conquer2549
516Guess Number Higher or Lower II2544
517Count subarrays having total distinct elements same as original array2543
518Spiral Matrix III LeetCode Solution2536
519Letter Case Permutation2535
520The Maze III LeetCode Solution2534
521Check if Array Contains Contiguous Integers With Duplicates Allowed2534
522Count Possible Triangles2532
523Sliding Window Maximum LeetCode Solution2531
524Print all Palindromic Partitions of a String2529
525Largest Subarray with Equal Number of 0’s and 1’s2528
526Sort Colors2523
527Find the Minimum Element in a Sorted and Rotated Array2522
528Palindrome Permutation LeetCode Solution2520
529LCS (Longest Common Subsequence) of three strings2517
530Sieve of Eratosthenes2516
531Sliding Window Median Leetcode Solution2508
532Analyze User Website Visit Pattern LeetCode Solution2505
533Find the first Repeating Number in a Given Array2501
534Fibonacci numbers2500
535Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution2499
536Merge Overlapping Intervals2499
537Maximum Sum of Non Consecutive Elements2498
5383 Sum2496
539Sort an array according to the order defined by another array2491
540Convert BST to Min Heap2487
541Minimum Bracket Reversals2480
542Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution2479
543Find a Sorted Subsequence of size 32477
544How to Create Mergable Stack?2472
545Coin Change Problem2468
546Decode String2467
547Perfect Squares LeetCode Solution2463
548Recover Binary Search Tree Leetcode Solution2453
549Longest Repeated Subsequence2453
550Maximum Length of Chain Pairs2451
551Edit Distance LeetCode Solution2450
552Minimum Height Trees2449
553Minimum Jumps to Reach Home LeetCode Solution2446
554Maximum Element in an Array which is Increasing and then Decreasing2445
555Jump Game IV LeetCode Solution2443
556Path Crossing Leetcode Solution2443
557Longest Substring with At Least K Repeating Characters LeetCode Solution2441
558Group Anagrams2437
559Iterative Method to find Height of Binary Tree2435
560Maximum Number of Ways to Partition an Array LeetCode Solution2432
561N queen problem2432
562Different Ways to Add Parentheses Leetcode Solution2430
563Implement Two Stacks in an Array2430
564Find the Lost Element From a Duplicated Array2425
565Shifting Letters LeetCode Solution2418
566Number of Distinct Islands Leetcode Solution2417
567Find maximum length Snake sequence2410
568Decode Ways2409
569Build an Array With Stack Operations Leetcode Solution2408
570Fibonacci Number LeetCode Solution2404
571Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2403
572Most Stones Removed with Same Row or Column LeetCode Solution2397
573K-th Distinct Element in an Array2392
574Rectangle Overlap LeetCode Solution2387
575Count items common to both the lists but with different prices2386
576Subarrays with K Different Integers Leetcode Solution2384
577Nearest Exit from Entrance in Maze LeetCode Solution2382
578First missing positive2381
579Champagne Tower LeetCode Solution2380
580Sorted Linked List to Balanced BST2377
581Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution2374
582Subset sum problem2369
583Find if an Expression has Duplicate Parenthesis or Not2365
584Contains Duplicate2358
585Sort a stack using recursion2355
586Minimum Height Trees LeetCode Solution2354
587Contiguous Array LeetCode Solution2353
588Find the two Numbers with Odd Occurrences in an Unsorted Array2349
589Valid Boomerang Leetcode Solution2345
590Queue based approach for first non-repeating character in a stream2343
591Sliding Window Maximum2337
592Monotonic Array Leetcode Solution2335
593Number of Equivalent Domino Pairs Leetcode Solution2335
594Palindrome Partitioning Leetcode Solution2333
595Find Largest Value in Each Tree Row LeetCode Solution2331
596Design a Stack With Increment Operation Leetcode Solution2330
597Possible Bipartition LeetCode Solution2326
598Reorder an Array According to the Given Indexes2321
599Palindrome Permutations of a String2320
600Palindromic Substrings Leetcode Solution2313
601Sort a String According to Another String2309
602Rearrange Spaces Between Words Leetcode Solution2308
603Find the Town Judge LeetCode Solution2307
604Merge Overlapping Intervals II2300
605Best Meeting Point LeetCode Solution2299
606Word Break2299
607Recover Binary Search Tree2297
608Distance Between Bus Stops Leetcode Solution2295
609Maximum Frequency Stack Leetcode Solution2294
610Merge Two Balanced Binary Search Trees2286
611Number of palindromic paths in a matrix2278
612Valid Parentheses Leetcode Solution2277
613Morris Traversal2270
614Maximum sum rectangle in a 2D matrix2268
615Detect Capital Leetcode Solution2264
616Find the Subarray of given length with Least Average2262
617Maximum Depth of N-ary Tree Leetcode Solution2256
618Swapping Nodes in a Linked List Leetcode Solution2255
619Perform String Shifts Leetcode2251
620Find Median from data Stream2243
621Construction of Longest Increasing Subsequence (N log N)2239
622Caesar Cipher2239
623Reach a Number LeetCode Solution2236
624Minimum number of jumps to reach end2232
625Maximum Product of Splitted Binary Tree LeetCode Solution2229
626Maximum Score After Splitting a String Leetcode Solution2229
627Check if the given array can represent Level Order Traversal of Binary Search Tree2228
628Queue using Stacks2220
629Smallest Good Base2215
630A Space Optimized DP solution for 0-1 Knapsack Problem2215
631Implement strStr() LeetCode Solution2214
632Merge K Sorted Arrays and Print Sorted Output2213
633All Possible Full Binary Trees LeetCode Solution2210
634Brick Wall LeetCode Solution2208
635Maximize Elements Using Another Array2206
636Pair with given product2205
637Binary Tree zigzag level order Traversal2201
638Word Pattern2195
639Palindrome Permutation2193
640Find the First Circular Tour that visits all the Petrol Pumps2193
641Mean of Array After Removing Some Elements Leetcode Solution2188
642Find First and Last Position of Element in Sorted Array LeetCode Solution2183
643Convert Sorted List to Binary Search Tree2173
644My Calendar I LeetCode Solution2172
645Valid Sudoku2168
646Find all pairs (a, b) in an array such that a % b = k2165
647Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2159
648Split Array Into Consecutive Subsequences2159
649Populating Next Right Pointers in Each Node Leetcode Solution2158
650Maximum Number of Chocolates to be Distributed Equally Among k Students2152
651How to Efficiently Implement k Stacks in a Single Array?2151
652Count pair with Given Sum2149
653Check if a Linked list of Strings form a Palindrome2149
654Best Time to Buy and Sell Stock IV LeetCode Solution2148
655Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2148
656Group Multiple Occurrence of Array Elements Ordered by first Occurrence2147
657Binary Tree Right Side View LeetCode Solution2144
658Minimum Sum Path in a Triangle2128
659Huffman Coding2126
660Design Skiplist LeetCode Solution2125
661Check if String Follows Order of Characters by a Pattern or not2120
662Web Crawler LeetCode Solution2115
663Largest Sum Contiguous Subarray2114
664Count ways to reach the nth stair using step 1, 2 or 32113
665Add two numbers2113
666Segregate 0s and 1s in an Array2107
667Remove brackets from an algebraic string containing + and – operators2106
668Length of Longest Fibonacci Subsequence2106
669Arithmetic Slices II – Subsequence LeetCode Solution2098
670Populating Next Right Pointers in Each Node2098
671Partition to K Equal Sum Subsets Leetcode Solution2096
672Concatenation of Array LeetCode Solution2095
673Minimum Swaps to Group All 1’s Together Leetcode Solution2092
674Print Fibonacci sequence using 2 variables2091
675Find whether a subarray is in form of a mountain or not2090
676Count Sub Islands LeetCode Solution2089
677Construct BST from given Preorder Traversal2089
678Print all subarrays with 0 sum2088
679Minimum time required to rot all oranges2086
680Counting Bits2086
681Longest Subarray Having Count of 1s One More than Count of 0s2079
682All Unique Triplets that Sum up to a Given Value2073
683Remove Palindromic Subsequences Leetcode Solution2068
684Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2068
685Isomorphic Strings LeetCode Solution2065
686Find four elements that sum to a given value (Hashmap)2065
687Elements Appear more than N/K times in Array2060
688Sort 0s 1s and 2s in an Array2059
689Level order Traversal in Spiral Form2058
690Find Maximum of Minimum for Every Window Size in a Given Array2056
691Swap Kth Node from beginning with Kth Node from End2047
692Check for Balanced Parentheses in an Expression2044
693Finding K closest element2040
694Range Sum Query 2D – Immutable LeetCode Solution2038
695Count Distinct Elements in Every Window of Size K2038
696Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2036
697Validate Binary Search Tree2036
698Partition Problem2033
699Bubble sort using two Stacks2032
700Find all triplets with zero sum2031
701Heap Sort2026
702Difference Array | Range update query in O(1)2015
703Maximize Sum of Array after K Negations Leetcode Solution2014
704Nested List Weight Sum II LeetCode Solution2000
705Find All Pairs With a Given Difference2000
706Count Minimum Steps to Get the given Array1996
707Contiguous Array Leetcode1983
708Binary Tree to Binary Search Tree Conversion1977
709Find Duplicate Subtrees1975
710String comparison containing wildcards1971
711Happy Number1965
712Increasing Subsequence of Length three with Maximum Product1964
713Rearrange an Array Such that arr[i] is equal to i1963
714Linked List Cycle1960
715Maximum Product Subarray II1957
716MiniMax Algorithm1956
717Maximum Distance in Array1954
718Reverse Nodes in K-Group1952
719Inorder Successor of a node in Binary Tree1950
720Merge K Sorted Linked Lists1948
721Reorder Array Using Given Indexes1948
722Symmetric Tree1945
723Sum Root to Leaf Numbers LeetCode Solution1938
724Root to Leaf path with target sum Leetcode Solutions1931
725Parallel Courses II LeetCode Solution1930
726Merge Two Sorted Lists Leetcode1927
727Container with Most Water1924
728Longest Increasing Subsequence1921
729Queue Reconstruction by Height1920
730Check if Two Expressions With Brackets are Same1917
731Alien Dictionary1917
732An Interesting Method to generate Binary Numbers from 1 to n1915
733Count Good Nodes in Binary Tree LeetCode Solution1913
734Union and Intersection of two Linked Lists1913
735Iterative Depth First Traversal of Graph1913
736Rotate Array1913
737Longest Common Prefix Using Binary Search II1912
738Check if any two intervals overlap among a given set of intervals1910
739Maximum difference between two elements such as larger element comes after smaller1910
740K maximum sums of overlapping contiguous sub-arrays1907
741Minimum Distance Between BST Nodes Leetcode Solution1903
742Climbing stairs1901
743Score of Parenthesis LeetCode Solution1897
744Flatten 2D Vector LeetCode Solution1893
745Minimum Swaps to Make Strings Equal Leetcode Solution1893
746Queries on Probability of Even or Odd Number in given Ranges1891
747Find pairs with given sum such that elements of pair are in different rows1891
748Substring With Concatenation Of All Words1889
749Delete Nth node from the end of the given linked list1884
750Smallest Range II Leetcode Solution1883
751Minimum Cost to Move Chips to The Same Position LeetCode Solution1882
752Find the first repeating element in an array of integers1875
753Print a Binary Tree in Vertical Order1875
754Breadth First Search (BFS) for a Graph1873
755Longest Common Prefix Word by Word Matching1872
756Iterative Preorder Traversal1870
757Kill Process LeetCode Solution1867
758Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution1864
759Delete Nodes and Return Forest Leetcode Solution1862
760Find subarray with given sum (Handles Negative Numbers)1859
761Merging Intervals1859
762Check if a queue can be sorted into another queue using a stack1853
763Remove duplicates from sorted array1850
764Find K Closest Elements LeetCode Solution1834
765New 21 Game1834
766Maximum size subarray sum equals k1829
767Range LCM Queries1823
768Minimum Size Subarray Sum1823
769Valid Parenthesis String1819
770Peak Index in a Mountain Array LeetCode Solution1818
771Minimum Number of Arrows to Burst Balloons LeetCode Solution1815
772Vertical sum in a given binary tree1813
773Deletion in a Binary Tree1811
774Sorting a K Sorted Array1811
775Sort Array by Increasing Frequency Leetcode Solution1806
776Find Maximum Sum Possible Equal Sum of Three Stacks1805
777Find the Difference Leetcode Solution1803
778Friends Of Appropriate Ages LeetCode Solution1802
779Verify Preorder Serialization of a Binary Tree1802
780Construct Binary Tree from given Parent Array representation1793
781Matrix Chain Multiplication1791
782Minimum Remove to Make Valid Parentheses LeetCode Solution1786
783Find Sum of all unique sub-array sum for a given array1786
784Non-overlapping sum of two sets1782
785Maximum Product Subarray1781
786Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution1773
787Find K Length Subarray of Maximum Average1771
788Check if a given array can represent Preorder Traversal of Binary Search Tree1770
789Defanging an IP Address LeetCode Solution1769
790Valid Anagrams1767
791Count pairs from two linked lists whose sum is equal to a given value1767
792Number of siblings of a given Node in n-ary Tree1764
793Find Three Element From Different Three Arrays Such That a + b + c = sum1763
794Boundary Traversal of binary tree1761
795Reservoir Sampling1759
796Boolean Parenthesization Problem1758
797The Painter’s Partition Problem1755
798Given a binary tree, how do you remove all the half nodes?1748
799Remove Duplicates from Sorted List II1747
800Flatten Binary Tree to Linked List LeetCode Solution1744
801Sum of f(a[i], a[j]) over all pairs in an array of n integers1744
802Employee Importance LeetCode Solution1735
803Print All Distinct Elements of a Given Integer Array1735
804Count and Say1729
805Check Completeness of a Binary Tree LeetCode Solution1727
806Find the largest multiple of 31727
807Count number of triplets with product equal to given number1726
808Closest Leaf in a Binary Tree LeetCode Solution1723
809Unique Binary Search Trees1720
810Pancake Sorting1720
811Isomorphic Strings1719
812Partition Equal Subset Sum1716
813Hamming Distance1712
814Third Maximum Number Leetcode Solution1711
815Find Peak Element1710
816Median of Two Sorted Arrays1709
817Find Element Using Binary Search in Sorted Array1709
818Level of Each node in a Tree from source node1707
819Level order traversal using two Queues1705
820Tree Traversal (Preorder, Inorder & Postorder)1705
821Largest BST Subtree LeetCode Solution1701
822Print all triplets in sorted array that form AP1701
823Infix to Postfix1699
824Products of ranges in an array1697
825Maximum subsequence sum such that no three are consecutive1696
826Longest Palindromic Subsequence1695
827Create Maximum Number1691
828Distinct Subsequences1691
829Subset Sum Problem in O(sum) space1687
830Array Nesting Leetcode Solution1684
831Unique Binary Search Trees LeetCode Solution1683
832Largest divisible pairs subset1682
833Palindrome Partitioning1680
834Find Nth Node1677
835Super Ugly Number1676
836Find Common Characters Leetcode Solution1675
837Find distance between two nodes of a Binary Tree1674
838Bold Words in String LeetCode Solution1673
839BFS vs DFS for Binary Tree1673
840Minimum insertions to form a palindrome with permutations allowed1672
841Four Elements that Sum to Given1667
842Kth Smallest Element in a Sorted Matrix LeetCode Solution1662
843Valid Triangle Number LeetCode Solution1661
844Largest Submatrix With Rearrangements LeetCode Solution1657
845Binary array after M range toggle operations1653
846Valid Number1651
847Maximum number of segments of lengths a, b and c1647
848Lowest Common Ancestor1645
849Maximum Population Year LeetCode Solution1642
850Compare Strings by Frequency of the Smallest Character Leetcode Solution1640
851Transform a BST to Greater sum Tree1640
852Missing Number1637
853Newman-Conway Sequence1636
854Balanced Binary Tree1635
855Serialize and Deserialize Binary Tree LeetCode Solution1634
856Next Greater Element in an Array1632
857Sort Elements by Frequency II1631
858Check if all levels of two Binary Tree are anagrams or not1629
859Find Smallest Range Containing Elements from k Lists1628
860Shuffle an Array1625
861Check if two nodes are on the same path in a Tree1624
862Number Of Longest Increasing Subsequence1618
863Sentence Screen Fitting LeetCode Solution1615
864Insert Delete GetRandom1614
865Binary Tree Longest Consecutive Sequence LeetCode Solution1612
866Averages of Levels in Binary Tree1602
867Integer to Roman1602
868Trapping Rain Water II LeetCode Solution1598
869Next Greater Element II LeetCode Solution1598
870Arrange given numbers to form the biggest number1594
871First Bad Version1594
872Maximum Sum of 3 Non-Overlapping Subarrays1591
873Path Sum1589
874Encoded String With Shortest Length LeetCode Solution1588
875Minimum sum of squares of character counts in a given string after removing k characters1587
876Closest Binary Search Tree Value Leetcode Solution1585
877Height of a generic tree from parent array1585
878Valid Triangle Number LeetCode Solution1584
879Largest subarray with equal number of 0s and 1s1583
880Merge Two Sorted Arrays1583
881Stone Game IV LeetCode Solution1582
882Stone Game IV LeetCode Solution1582
883Merging Two Sorted Arrays1581
884Contiguous Array1578
885Kth Smallest Number in Multiplication Table Leetcode Solution1576
886Topological Sorting1576
887Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution1567
888Red-Black Tree Introduction1566
889Lower Case To Upper Case1566
890Count Primes in Ranges1560
891Permutations of a Given String Using STL1558
892Range Minimum Query (Square Root Decomposition and Sparse Table)1555
893Find unique character in a string1548
894Friends Pairing Problem1543
895Reorganize String1543
896Diameter of N-Ary Tree LeetCode Solution1538
897Iterative Postorder Traversal Using Two Stacks1537
898Find Largest d in Array such that a + b + c = d1536
899Bottom View of a Binary Tree1535
900Print Right View of a Binary Tree1535
901Level Order Traversal of Binary Tree1532
902Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’1528
903Minimum Swaps To Make Sequences Increasing LeetCode Solution1525
904Orderly Queue LeetCode Solution1524
905Find minimum number of merge operations to make an array palindrome1524
906Maximum difference between first and last indexes of an element in array1519
907Find Minimum In Rotated Sorted Array1519
908Longest Bitonic Subsequence1514
909Diagonal Traversal of Binary Tree1512
910Valid Perfect Square LeetCode Solution1511
911Next greater element1508
912Reverse a Path in BST using Queue1507
913Constant time range add operation on an array1506
914Serialize and Deserialize Binary Tree1499
915Binary Search Tree Delete Operation1498
916Swap Nodes In Pairs1498
917Total Hamming Distance LeetCode Solution1494
918Segment Tree1494
919Largest Plus Sign Leetcode Solution1491
920Koko Eating Bananas LeetCode Solution1491
921Maximum Product Subarray1489
922Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution1488
923Range Sum Query using Sparse Table1485
924Count the Pairs at Same Distance as in English Alphabets1484
925Best Meeting Point LeetCode Solution1478
926Valid Tic-Tac-Toe State LeetCode Solution1465
927A program to check if a binary tree is BST or not1462
928Find the smallest binary digit multiple of given number1461
929Edit Distance1457
930Maximum Product Subarray1456
931The Number of Weak Characters in the Game LeetCode Solution1455
932Longest Substring Without Repeating Characters Leetcode Solution1452
933Advantages of BST over Hash Table1452
934Binary Search Tree Search and Insertion1451
935Convert BST into a Min-Heap without using array1446
936Maximum difference between frequency of two elements such that element having greater frequency is also greater1445
937Shuffle a given Array1434
938Design Add and Search Words Data Structure LeetCode Solution1433
939Group Shifted Strings Leetcode Solution1427
940Maximum Sum Increasing Subsequence1426
941Array Queries for multiply replacements and product1424
942Longest Increasing Consecutive Subsequence1424
943Dividing Array into Pairs With Sum Divisible by K1421
944Image Overlap LeetCode Solution1411
945K’th Largest element in BST using constant extra space1411
946Greatest Sum Divisible by Three LeetCode Solution1409
947Priority Queue1404
948Collect maximum points in a grid using two traversals1403
949Design Underground System Leetcode Solution1399
950Print Next Greater Number of Q queries1399
951Write a function to get the intersection point of two Linked Lists1398
952Print n terms of Newman-Conway Sequence1393
953Find the node with minimum value in a Binary Search Tree1392
954Range Queries for Longest Correct Bracket Subsequence1391
955Factorial Trailing Zeroes LeetCode Solution1387
956Merge Sort1387
957Queries on XOR of greatest odd divisor of the range1385
958Check if an Array is Stack Sortable1384
959Construct Complete Binary Tree from its Linked List Representation1381
960Insert into a Sorted Circular Linked List LeetCode Solution1377
961Lowest Common Ancestor in Binary Search Tree1377
962Form Minimum Number From Given Sequence1376
963Swim in Rising Water LeetCode Solution1374
964Clone a Binary Tree with Random Pointers1374
965Guess The Word1366
966Maximum Array from Two given Arrays Keeping Order Same1361
967Moving Stones Until Consecutive Leetcode Solution1358
968Power of Two1357
969K’th Largest Element in BST when modification to BST is not allowed1355
970Numbers with prime frequencies greater than or equal to k1354
971Print modified array after multiple array range increment operations1353
972Sorted Array to Balanced BST1353
973Form minimum number from given sequence1348
974Find postorder traversal of BST from preorder traversal1347
975Write Code to Determine if Two Trees are Identical1347
976Longest Common Prefix using Character by Character Matching1346
977Print all Possible Ways to Break a String in Bracket Form1343
978Excel Sheet Column Number LeetCode Solution1337
979Queries for Number of Distinct Elements in a Subarray1331
980K Empty Slots1329
981Merge Sorted Array1329
982Check for Palindrome after every character replacement Query1328
983Closest Binary Search Tree Value II LeetCode Solution1318
984Count and Toggle Queries on a Binary Array1312
985Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1308
986Count even length binary sequences with same sum of first and second half bits1307
987Check if each internal node of a BST has exactly one child1307
988Cutting a Rod1302
989Decrease Elements To Make Array Zigzag LeetCode Solution1298
990Find maximum average subarray of k length1294
991Find Maximum Depth of Nested Parenthesis in a String1293
992Search in Sorted Rotated Array1290
993Check if X can give change to every person in the Queue1289
994Number of elements less than or equal to a given number in a given subarray1287
995Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1284
996Queries for Decimal Values of Subarrays of a Binary Array1282
997Minimum Moves to Equal Array Elements LeetCode Solution1281
998Binary Search Tree1281
999Number of Orders in the Backlog Leetcode Solution1278
1000Print Ancestors of a Given Binary Tree Node Without Recursion1278
1001Kth Smallest Product of Two Sorted Arrays LeetCode Solution1277
1002Merge two BSTs with limited extra space1274
1003Unique Paths II1272
1004Kth Smallest Element in a BST1270
1005Count Pairs Whose Products Exist in Array1268
1006Sum of Left Leaves LeetCode Solution1263
1007Regular Expression Matching1259
1008Symmetric Tree LeetCode Solution Leetcode Solution1241
1009How to print maximum number of A’s using given four keys1237
1010Shortest Unsorted Continuous Subarray LeetCode Solution1236
1011Graph Cloning1228
1012Maximum weight transformation of a given string1224
1013Palindrome Partitioning1210
1014Random Pick Index LeetCode Solution1208
1015Maximum Depth Of Binary Tree1207
1016Excel Sheet Column Title LeetCode Solution1205
1017Search an Element in Sorted Rotated Array1187
1018Data Structure Designing1184
1019Check given array of size n can represent BST of n levels or not1177
1020Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1175
1021Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1172
1022Iterative method to find ancestors of a given binary tree1168
1023Next Greater Element I Leetcode Solution1124
1024Maximum Binary Tree1123
1025Find the Town Judge LeetCode Solution1102
1026Binary Tree to Binary Search Tree Conversion using STL set1100
1027Find k-th smallest element in BST (Order Statistics in BST)1095
1028Peeking Iterator LeetCode Solution1049
1029Print Maximum Length Chain of Pairs1040
1030Flatten Binary Tree to Linked List LeetCode Solution1031
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1028
Translate »