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 Solution42379
2Maximum occurring character in a string19339
3Plus One Leetcode Solution18612
4Valid Parentheses LeetCode Solution18556
53Sum Leetcode Solution16521
6First Repeating Element14748
7Single Number Leetcode Solution14477
8Merge Sorted Arrays Leetcode Solution14418
9Count Primes Leetcode Solutions14046
10Pow(x, n) Leetcode Solution13713
11Sqrt(x) Leetcode Solution13514
12Meeting Rooms II LeetCode Solution12685
13Concatenation of Array LeetCode Solution12353
14Roman to Integer Leetcode Solution11566
15Search Insert Position Leetcode Solution11360
16Valid Palindrome Leetcode Solution11350
17Contains Duplicate II Leetcode Solution11327
18Palindrome Number LeetCode Solution11199
19Reverse Vowels of a String Leetcode Solution10794
20Jump Game Leetcode Solution10769
21Intersection of Two Arrays II Leetcode Solution10646
22Number of Good Pairs Leetcode Solution10552
23Remove Duplicates from Sorted Array Leetcode Solution10493
24Spiral Matrix LeetCode Solution10449
25Longest Substring Without Repeating Characters LeetCode Solution10421
26Kids With the Greatest Number of Candies Leetcode Solution10396
27House Robber Leetcode Solution10331
28Add Binary Leetcode Solution10224
29Maximum Subarray Leetcode Solution9869
30Find the Maximum Repeating Number in Array9707
31Number Of 1 bits9556
32Text Justification LeetCode Solution9544
33Jewels and Stones Leetcode Solution9399
34Power of Two Leetcode Solution9248
35Move Zeroes LeetCode Solution9239
36Longest Palindromic Substring LeetCode Solution9237
37Min Stack Leetcode Solution9212
38Permutations Leetcode Solution9093
39Shuffle String Leetcode Solution8979
40Word Search Leetcode Solution8874
41Third Maximum Number Leetcode Solution8865
42Find All Numbers Disappeared in an Array Leetcode Solution8863
43Next Permutation Leetcode Solution8842
44Daily Temperatures Leetcode Solution8824
45Median of Two Sorted Arrays LeetCode Solution8756
46Number of Islands LeetCode Solution8708
47Search in Rotated Sorted Array Leetcode Solution8657
48Kth Missing Positive Number Leetcode Solution8640
49Maximum Profit in Job Scheduling Leetcode Solution8622
50Longest Common Prefix Leetcode Solution8589
51Next Greater Element I Leetcode Solution8553
52Evaluation of Postfix Expression8483
53Frog Jump Leetcode Solution8470
54Find Minimum Distance Between Two Numbers in an Array8331
55Running Sum of 1d Array Leetcode Solution8236
56Rotate Image LeetCode Solution8176
57Multiply Strings Leetcode Solution8159
58Valid Anagram Leetcode Solution8148
59Combination Sum Leetcode Solution8112
60Can Place Flowers LeetCode Solution8102
61Shuffle the Array Leetcode Solution8096
623Sum Closest LeetCode Solution8058
63Bulb Switcher LeetCode Solution8048
64House Robber II Leetcode Solution8030
65Count and Say Leetcode Solution8008
66Excel Sheet Column Title Leetcode Solution7774
67Koko Eating Bananas Leetcode Solution7745
68Isomorphic Strings Leetcode Solution7739
69Subarray and Subsequence7733
70Happy Number Leetcode Solution7710
71Count Pairs With Given Sum7637
72Missing Number Leetcode Solution7630
73Product of array except self7628
74Integer to Roman Leetcode Solution7618
75Majority Element Leetcode Solution7591
76Strobogrammatic Number LeetCode Solution7568
77Best Time to Buy and Sell Stock LeetCode Solution7516
78Rotate String LeetCode Solution7511
79Reverse String Without Temporary Variable7490
80Candy LeetCode Solution7417
81Find the Difference Leetcode Solution7356
82Is Subsequence Leetcode Solution7350
83Largest Number Leetcode Solution7236
84Subtract the Product and Sum of Digits of an Integer Leetcode Solution7231
85Find Common Characters Leetcode Solution7230
86String to Integer (atoi) LeetCode Solution7161
87How Many Numbers Are Smaller Than the Current Number Leetcode Solution7153
88Find the Duplicate Number LeetCode Solution7144
89Binary Search LeetCode Solution7105
90Expression Evaluation7102
91A Product Array Puzzle7092
92Set Matrix Zeroes7076
93Summary Ranges Leetcode Solution7022
94Subset Leetcode7008
95Sort Characters By Frequency LeetCode Solution6925
96Find the Town Judge Leetcode Solution6922
97Word Pattern LeetCode Solution6898
98Rabin Karp Algorithm6896
99Balanced Binary Tree Leetcode Solution6893
100Unique Paths Leetcode Solution6845
101Arranging Coins Leetcode Solution6807
102Find the Winner of the Circular Game LeetCode Solution6785
103String Compression LeetCode Solution6751
104Rearrange Positive and Negative Numbers Alternatively in Array6728
105Repeated Substring Pattern LeetCode Solution6664
106Asteroid Collision LeetCode Solution6633
107Smallest window in a string containing all characters of another string6622
108Group Anagrams LeetCode Solution6602
109Sort Colors LeetCode Solution6583
110Best Time to Buy and Sell Stock  II Leetcode Solution6449
111Sort Array By Parity LeetCode Solution6447
112Page Replacement Algorithms in Operating Systems6423
113Zigzag Conversion LeetCode Solution6400
114Postfix to Infix Conversion6396
115Divide Two Integers Leetcode Solution6340
116Valid Palindrome II Leetcode Solution6333
117Sum of minimum and maximum elements of all subarrays of size k6331
118Matrix Chain Multiplication using Dynamic Programming6315
119Generate Parentheses Leetcode Solution6253
120Product of Array Except Self LeetCode Solution6253
121Kth largest element in an Array Leetcode Solutions6238
122Reverse Integer Leetcode Solution6229
123Assign Cookies Leetcode Solution6220
124Remove Duplicates from Sorted Array II Leetcode Solution6170
125Bus Routes Leetcode Solution6125
126Merge Two Sorted Lists Leetcode Solutions6124
127Pascal Triangle Leetcode6120
128Number of Provinces Leetcode Solution6114
129Length of Last Word Leetcode Solution6094
130H-Index Leetcode Solution6084
131Linked List Cycle II LeetCode Solution6064
132Decode String Leetcode Solution6060
133Convert array into Zig-Zag fashion6013
134Minimum Steps to reach target by a Knight6007
135Defanging an IP Address Leetcode Solution5994
136Optimal Account Balancing LeetCode Solution5971
137Employee Free Time LeetCode Solution5967
138Minimum Cost For Tickets Leetcode Solution5922
139First element occurring k times in an array5887
140Find the Row with Maximum Number of 1’s5856
141Build Array From Permutation Leetcode Solution5842
142Pascal’s Triangle II Leetcode Solution5840
143Prefix to Infix Conversion5820
144Find First and Last Position of Element in Sorted Array Leetcode Solution5772
145Increasing Triplet Subsequence LeetCode Solution5768
146Implementation of Deque using Doubly Linked List5759
147Island Perimeter Leetcode Solution5713
148Robot Room Cleaner Leetcode Solution5707
149Majority Element II Leetcode Solution5672
150Bellman Ford Algorithm5648
151Max Consecutive Ones Leetcode Solution5646
152Find Pair with Given Difference5642
153K-th Smallest Element in a Sorted Matrix5629
154Merge Sorted Array LeetCode Solution5625
155Swap Nodes in Pairs Leetcode Solutions5621
156Check if the Elements of an Array are Consecutive5604
157Fibonacci Number LeetCode Solution5584
158Guess Number Higher or Lower LeetCode Solution5549
159Design Parking System Leetcode Solution5546
160KMP Algorithm5540
161Find the Missing Number5539
162First negative integer in every window of size k5508
163Add Two Numbers II Leetcode Solution5497
164Delete middle element of a stack5488
165OSI Model5485
166Coin Change 2 Leetcode Solution5470
167Lemonade Change Leetcode Solution5466
168Subarray Sum Equals K LeetCode Solution5462
169Length of the largest subarray with contiguous elements5457
170Subarray Product Less Than K LeetCode Solution5443
171First Unique Character in a String LeetCode Solution5438
172String Compression5435
173Trapping Rain Water Leetcode Solution5429
174Capacity To Ship Packages Within D Days Leetcode Solution5403
175Last Stone Weight5402
176Set Matrix Zeroes Leetcode Solution5401
177Word Ladder LeetCode Solution5378
178Subarray with Given Sum5373
179Find All Duplicates in an Array LeetCode Solution5369
180Palindrome Linked List Leetcode Solution5367
181Monotonic Array LeetCode Solution5365
182Find Smallest Missing Number in a Sorted Array5350
183Form Minimum Number from Given Sequence of D’s and I’s5334
184Repeated Substring Pattern5326
185Combinations Leetcode Solution5283
186Remove Duplicates from Sorted List II LeetCode Solution5263
187Reverse Words in a String III LeetCode Solution5238
18801 Matrix LeetCode Solution5233
189Same Tree LeetCode Solution5224
190Iterative Implementation of Quick Sort5211
191Valid Perfect Square Leetcode Solution5210
192Continuous Subarray Sum LeetCode Solution5198
193Single Element in a Sorted Array LeetCode Solution5178
194Break a Palindrome LeetCode Solution5128
195Remove Linked List Elements Leetcode Solution5125
196Prefix to Postfix Conversion5118
197Backspace String Compare5114
198Slowest Key Leetcode Solution5110
199Merge k Sorted Lists Leetcode Solution5090
200Combination Sum5087
201Relative Ranks Leetcode Solution5056
202Leetcode Permutations5050
203The K Weakest Rows in a Matrix Leetcode Solution5013
204Rotate List Leetcode Solution5004
205Find the Duplicate Element5002
206Maximum Product of Three Numbers LeetCode Solution4989
207Find Peak Element LeetCode Solution4957
208Second Most Repeated Word in a Sequence4950
209Insert Delete GetRandom O(1) Leetcode Solution4939
210Top K Frequent Elements LeetCode Solution4930
211Printing brackets in Matrix Chain Multiplication Problem4929
212Longest Common Subsequence LeetCode Solution4928
213Kth Largest Element in a Stream Leetcode Solution4899
214Palindrome Number4882
215Cuckoo sequence program4877
216Make The String Great Leetcode Solution4857
217Remove All Occurrences of a Substring LeetCode Solution4856
218Rearrange given Array in Maximum Minimum Form4853
219Container With Most Water LeetCode Solution4848
220Relative Sort Array Leetcode Solution4838
221Subarray Sum Equals k4836
222Convert a Number to Hexadecimal Leetcode Solution4830
223Max Area of Island4826
224Unique Paths II Leetcode Solution4816
225Delete Node in a Linked List Leetcode Solution4797
226Find Leaders in an Array4793
227Permutation in String Leetcode Solution4790
228Check If Two String Arrays are Equivalent Leetcode Solution4780
229Target Sum4779
230Generate all Binary Strings Without Consecutive 1’s4776
231Contains Duplicate LeetCode Solution4774
232Time Based Key-Value Store LeetCode Solution4748
233N-Queens LeetCode Solution4743
234Moving Average from Data Stream Leetcode Solution4741
235Arithmetic Expression Evaluation4727
236Given two unsorted arrays find all pairs whose sum is x4703
237Count Good Nodes in Binary Tree Leetcode Solution4697
238Find N Unique Integers Sum up to Zero Leetcode Solution4693
239Scramble String4690
240Letter Combinations of a Phone Number4675
241Number of Dice Rolls With Target Sum LeetCode Solution4669
242LRU Cache LeetCode Solution4654
243Next Permutation4652
244Construct Binary Tree from Given Inorder and Preorder Traversals4631
245Find Triplet in Array With a Given Sum4623
246Flipping an Image LeetCode Solution4608
247Stone Game LeetCode4608
248Minimum swaps required to bring all elements less than or equal to k together4589
249Number of Steps to Reduce a Number to Zero Leetcode Solution4585
250Check If N and Its Double Exist Leetcode Solution4581
251Reverse Only Letters LeetCode Solution4577
252Min Cost Climbing Stairs LeetCode Solution4568
253Remove Minimum Characters so that Two Strings Become Anagrams4567
254Prim’s Algorithm4558
255Find The Duplicate Number4539
256Stock Buy Sell to Maximize Profit4538
257Minimum Knight Moves LeetCode Solution4532
258Student Attendance Record I Leetcode Solution4529
259To Lower Case Leetcode Solution4501
260Top K Frequent Elements4486
261Minimum Operations to convert X to Y4475
262The kth Factor of n Leetcode Solution4464
263Smallest Positive Number Missing in an Unsorted Array4455
264License Key Formatting Leetcode Solution4440
265Reverse words in a string4422
266Maximum Subarray Sum using Divide and Conquer4414
267Min Stack4398
268Maximum Sum Increasing Subsequence4387
269Search Suggestions System LeetCode Solution4371
270Maximum Population Year LeetCode Solution4367
271Single Number4349
272Find the Number Occurring Odd Number of Times in an Array4343
273Sum of Subarray Ranges Leetcode Solution4340
274Special Array With X Elements Greater Than or Equal X Leetcode Solution4338
275Find Words That Can Be Formed by Characters Leetcode Solution4326
276Reformat Date LeetCode Solution4307
277Top K Frequent Words LeetCode Solution4303
278Longest Common Subsequence4288
279Remove Nth Node From End of List Leetcode Solution4268
280Minimum Path Sum Leetcode Solution4261
281N-th Tribonacci Number Leetcode Solution4233
282Reverse individual words4227
283Intersection of Two Arrays4227
284Maximum Depth of Binary Tree Leetcode Solution4221
285Reveal Cards In Increasing Order Leetcode Solution4201
286Evaluate Division4200
287Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4198
288BFS for Disconnected Graph4198
289Maximize Distance to Closest Person LeetCode Solution4184
290Last Stone Weight II LeetCode Solution4182
291House Robber4178
292Remove Duplicates from Sorted List LeetCode Solution4175
293Best Time to Buy and Sell Stock III Leetcode Solution4174
294Minimum Characters to be Added at Front to Make String Palindrome4164
295Diagonal Traverse LeetCode Solution4151
296Find any one of the multiple repeating elements in read only array4133
297Count of index pairs with equal elements in an array4125
298Design A Leaderboard Leetcode Solution4123
299Find if Path Exists in Graph Leetcode Solution4122
300Count Number of Occurrences in a Sorted Array4115
301Length of Longest valid Substring4111
302Sort Elements by Frequency of Occurrences4107
303Binary Tree Inorder Traversal LeetCode Solution4103
304Most Frequent Element in an Array4103
305Minimum number of Merge Operations to make an Array Palindrome4064
306Implement a stack using single queue4060
307Range Sum Query 2D – Immutable Leetcode Solution4054
308Find the Closest Palindrome number4028
309Brightest Position on Street LeetCode Solution4026
310Maximum Size Subarray Sum Equals k Leetcode Solution4015
311Find Leaves of Binary Tree LeetCode Solution4003
312Mobile Numeric Keypad Problem3998
313Partition Array Into Three Parts With Equal Sum Leetcode Solution3986
314Invalid Transactions LeetCode Solution3981
315Reverse Nodes in k-Group LeetCode Solution3979
316Reverse Bits3974
317Spiral Matrix II Leetcode Solution3971
318Special Positions in a Binary Matrix Leetcode Solution3966
319Find Index of Closing Bracket for a Given Opening Bracket in an Expression3965
320Remove All Ones With Row and Column Flips Leetcode Solution3963
321Shortest Word Distance Leetcode Solution3957
322Symmetric Tree Leetcode Solution3952
323Sort Array By Parity II Leetcode Solution3952
324Sudoku Solver3943
325Arrange given Numbers to Form the Biggest Number II3929
326Diagonal Traversal LeetCode Solution3921
327Paint House LeetCode Solution3918
328One Edit Distance LeetCode Solution3904
329Binary Tree Zigzag Level Order Traversal LeetCode Solution3886
330Maximum Subarray3886
331Find Duplicates in an Array in Most Efficient Way3872
332Remove Invalid Parentheses Leetcode Solution3870
333Rank Transform of an Array Leetcode Solution3867
334Jump Game3865
335Split Linked List in Parts Leetcode Solution3852
336Partition Labels LeetCode Solution3846
337Unique Paths3845
338Construct BST from its given Level Order Traversal3842
339Minimum Moves to Equal Array Elements Leetcode Solution3840
340Alien Dictionary LeetCode Solution3839
341Hamming Distance Leetcode Solution3825
342Largest Rectangle in Histogram LeetCode Solution3821
343Round Robin Scheduling3809
344Tug of War3798
345Minimum operation to make all elements equal in array3797
346Bitwise AND of Numbers Range LeetCode Solution3795
347Maximal Square3795
348Least Number of Unique Integers after K Removals Leetcode Solution3791
349Minimum Depth of Binary Tree Leetcode Solution3787
350Dijkstra Algorithm3787
351Find Winner on a Tic Tac Toe Game Leetcode Solution3785
352Lowest Common Ancestor of a Binary Tree Leetcode Solution3783
353Range Sum of BST LeetCode Solution3782
354The Celebrity Problem3782
355Next Permutation LeetCode Solution3771
356Pair of Positive Negative Values in an Array3763
357Maximum Circular Subarray Sum3762
358String Matching in an Array Leetcode Solution3761
359Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3758
360Check whether Strings are K Distance Apart or Not3746
361Minimum Time to Collect All Apples in a Tree LeetCode Solution3744
362Smallest Subarray with k Distinct Numbers3740
363Given an Array of Pairs Find all Symmetric Pairs in it3724
364Merge Two Sorted Linked Lists3724
365Minimum Time Visiting All Points Leetcode Solution3718
366Minimum Cost to Hire K Workers3716
367Count of Triplets With Sum Less than Given Value3716
368Clone Graph LeetCode Solution3710
369Longest Common Prefix using Trie3709
370K Empty Slots LeetCode3704
371Transpose Graph3699
372Next Greater Element III LeetCode Solution3694
373Sort a stack using a temporary stack3687
374Check if a given array contains duplicate elements within k distance from each other3680
375Regular Expression Matching Regular Expression Matching LeetCode Solution3678
376Find minimum difference between any two elements3678
377Implementation of Deque using circular array3674
378Minimize Maximum Pair Sum in Array LeetCode Solution3671
379Robot Bounded In Circle LeetCode Solution3664
380Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3662
381Ugly Number II LeetCode Solution3656
382Unique Paths III LeetCode Solution3647
383Postfix to Prefix Conversion3640
384Non-decreasing Array LeetCode Solution3632
385Substring with Concatenation of All Words Leetcode Solution3625
386Validate Stack Sequences LeetCode Solution3624
387Invert Binary Tree LeetCode Solution3623
388Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3617
389Invert Binary Tree LeetCode Solution3615
390Sliding Window Technique3608
391Permutation Sequence LeetCode Solution3605
392Longest Substring with At Most K Distinct Characters LeetCode Solution3602
393Longest subarray not having more than K distinct elements3602
394Graph Valid Tree LeetCode Solution3593
395Find the Smallest Divisor given a Threshold Leetcode Solution3590
396Find duplicates in a given array when elements are not limited to a range3590
397Missing Element in Sorted Array LeetCode Solution3589
398LRU Cache Implementation3588
399Kth Smallest Element in a BST Leetcode Solution3583
400Find the subarray with least average3583
401Stack Permutations (Check if an array is stack permutation of other)3581
402Design Browser History LeetCode Solution3580
403Find the First and Second Smallest Elements3579
404Longest subsequence such that difference between adjacents is one3577
405First Circular Tour to Visit all the Petrol Bunks3577
406Number of Islands II LeetCode Solution3574
407Find Top K (or Most Frequent) Numbers in a Stream3572
408Path With Maximum Minimum Value LeetCode Solution3571
409Find Maximum Level sum in Binary Tree3563
410Kruskal Algorithm3563
411Stone Game II Leetcode3562
412Common elements in all rows of a given matrix3561
413Queries for counts of array elements with values in given range3558
414Word Search3558
415Toeplitz Matrix3558
416K Closest Points to Origin Leetcode Solution3555
417Sequences of given length where every element is more than or equal to twice of previous3552
418Combination Sum IV LeetCode Solution3550
419Snakes and Ladders LeetCode Solution3538
420Convert Sorted Array to Binary Search Tree LeetCode Solutions3537
421Partition List Leetcode Solution3535
422Integer Break LeetCode Solution3533
423Recursion3533
424Number Complement Leetcode Solution3529
425Search a 2D Matrix II Leetcode Solution3525
426Number of Smaller Elements on Right Side3523
427Painting Fence Algorithm3522
428Max stack3518
429Maximum Number of Occurrences of a Substring Leetcode Solution3511
430Find the Peak Element from an Array3496
4313 Sum3491
432Longest Palindrome can be Formed by Removing or Rearranging Characters3490
433Odd Even Linked List Leetcode Solution3489
434Minesweeper LeetCode Solution3483
435Sort elements by frequency3482
436Top View of Binary Tree3477
437Priority Queue using doubly linked list3472
438LRU Cache Leetcode Solution3468
439Maximum Consecutive Numbers Present in an Array3464
440Nth Catalan Number3464
441Consecutive Characters LeetCode Solution3463
442Insert Interval Leetcode Solution3461
443Search in a Binary Search Tree Leetcode Solution3461
444Can Make Arithmetic Progression From Sequence Leetcode Solution3460
445Rearrange array such that even positioned are greater than odd3458
446Check if Two given Strings are Isomorphic to each other3454
447Find Minimum in Rotated Sorted Array II LeetCode Solution3444
448Flood Fill LeetCode3439
449Expression Contains Redundant Bracket or Not3407
450Distance of nearest cell having 1 in a binary matrix3398
451Design a stack that supports getMin() in O(1) time and O(1) extra space3397
452Shortest Palindrome3396
453Number of Closed Islands Leetcode Solution3393
454Kth Non-repeating Character3392
455High Five LeetCode Solution3388
456Replace Elements with Greatest Element on Right Side Leetcode Solution3385
457Move All the Zeros to the End of the Given Array3383
458Decompress Run-Length Encoded List Leetcode Solution3381
459Minimum Absolute Difference in BST Leetcode Solution3381
460Find a Peak Element II LeetCode Solution3377
4614Sum3374
462Sliding Window Maximum LeetCode Solution3368
463Check If Array Pairs Are Divisible by k LeetCode Solution3367
464Gold Mine Problem3360
465Spiral Matrix III LeetCode Solution3359
466Insert into a Binary Search Tree Leetcode Solution3359
467Integer to English words3353
468Tiling Problem3343
469Minimum Path Sum3342
470N queen problem3339
471Restore IP Addresses Leetcode Solution3335
472Queries for GCD of all numbers of an array except elements in a given range3331
473Binary Tree Maximum Path Sum LeetCode Solution3327
474Balanced Expression with Replacement3327
475Sorting array using Stacks3321
476Longest Common Prefix using Sorting3321
477Convert Sorted Array to Binary Search Tree Leetcode Solution3318
478Coin Change Problem3317
479Find All Possible Recipes from Given Supplies LeetCode Solution3313
480Best Time to Buy and Sell Stock3307
481Trapping Rain Water LeetCode Solution3306
482Count items common to both the lists but with different prices3302
483Sort Colors3299
484Majority Element3298
485Priority Queue in C++3294
486Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3293
487Find Pythagorean Triplets from Array3291
488Sliding Window Median Leetcode Solution3287
489Fibonacci Number LeetCode Solution3284
490Evaluate Reverse Polish Notation LeetCode Solution3284
491Cells with Odd Values in a Matrix LeetCode Solution3284
492Palindrome Substring Queries3284
493Number of Days Between Two Dates LeetCode Solution3274
494The Stock Span Problem3269
495Vertical Order Traversal of Binary Tree LeetCode Solution3266
496Minimum Number of Taps to Open to Water a Garden LeetCode Solution3262
497Interval Tree3254
498Sort an array according to the order defined by another array3250
499Reverse a linked list3246
500Is Graph Bipartite? LeetCode Solution3245
501Path Sum II LeetCode Solution3236
502Largest rectangular sub-matrix whose sum is 03234
503Pancake Sorting Problem3230
504Camelcase Matching Leetcode Solution3213
505Find the first Repeating Number in a Given Array3213
506Different Ways to Add Parentheses Leetcode Solution3208
507How to Implement Stack Using Priority Queue or Heap?3208
508Queue using Stacks3207
509Kth ancestor of a node in binary tree3205
510Intersection of Two Linked Lists LeetCode Solution3202
511Custom Sort String Leetcode Solution3202
512Shortest Completing Word Leetcode Solution3200
513Design Hit Counter LeetCode Solution3194
514Sieve of Eratosthenes3190
515Longest Increasing Path in a Matrix LeetCode Solution3189
516Divide Chocolate LeetCode Solution3187
517Find Median from Data Stream LeetCode Solution3180
518Multiplication of Two Matrices3176
519Find a Fixed Point in a Given Array3175
520Check if Array Contains Contiguous Integers With Duplicates Allowed3174
521Scramble String LeetCode Solution3173
522Analyze User Website Visit Pattern LeetCode Solution3169
523Count subarrays having total distinct elements same as original array3168
524Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3167
525Subset sum problem3167
526Detect a loop in the Linked List3159
527Perfect Squares LeetCode Solution3153
528Fibonacci numbers3151
529Count Submatrices With All Ones LeetCode Solution3144
530Queue based approach for first non-repeating character in a stream3137
531Group Anagrams3133
532Number of Distinct Islands Leetcode Solution3131
533Implement Trie (Prefix Tree) Leetcode Solution3131
534Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3125
535Reorder Data in Log Files LeetCode Solution3124
536Path Crossing Leetcode Solution3120
537Monotonic Array Leetcode Solution3116
538Valid Boomerang Leetcode Solution3114
539Generate all Binary Strings from Given Pattern3112
540Find the Lost Element From a Duplicated Array3107
541Champagne Tower LeetCode Solution3105
542Longest Common Prefix using Divide and Conquer3103
543Insert Node in the Sorted Linked List3101
544Maximum Sum of Non Consecutive Elements3094
545Construction of Longest Increasing Subsequence (N log N)3086
546Minimum Height Trees3086
547How to Create Mergable Stack?3084
548Merge Overlapping Intervals3078
549Nearest Exit from Entrance in Maze LeetCode Solution3073
550Sort a stack using recursion3072
551Race Car LeetCode Solution3067
552Decode Ways3066
553Shifting Letters LeetCode Solution3065
554Find if an Expression has Duplicate Parenthesis or Not3065
555Palindrome Permutation LeetCode Solution3064
556Build an Array With Stack Operations Leetcode Solution3060
557Count Possible Triangles3056
558First missing positive3052
559Recover Binary Search Tree3051
560Find a Sorted Subsequence of size 33047
561Find maximum length Snake sequence3046
562Decode String3046
563Binary Tree zigzag level order Traversal3045
564Merge Two Binary Trees LeetCode Solution3042
565Smallest Good Base3042
566Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3040
567Sliding Window Maximum3035
568LCS (Longest Common Subsequence) of three strings3033
569Most Stones Removed with Same Row or Column LeetCode Solution3030
570Minimum Bracket Reversals3027
571Number of Equivalent Domino Pairs Leetcode Solution3025
572Print all Palindromic Partitions of a String3025
573Letter Case Permutation3019
574Morris Traversal3017
575Rectangle Overlap LeetCode Solution3014
576Minimum Height Trees LeetCode Solution3011
577Maximum Element in an Array which is Increasing and then Decreasing3007
578Largest Subarray with Equal Number of 0’s and 1’s3006
579Palindrome Partitioning Leetcode Solution3004
580Recover Binary Search Tree Leetcode Solution3002
581Implement strStr() LeetCode Solution3000
582Distance Between Bus Stops Leetcode Solution2999
583Minimum number of jumps to reach end2995
584Maximum Number of Ways to Partition an Array LeetCode Solution2992
585Longest Substring with At Least K Repeating Characters LeetCode Solution2992
586Guess Number Higher or Lower II2981
587K-th Distinct Element in an Array2979
588Maximum Length of Chain Pairs2979
589Design a Stack With Increment Operation Leetcode Solution2978
590Find the Town Judge LeetCode Solution2977
591Reorder an Array According to the Given Indexes2977
592Longest Repeated Subsequence2976
593Best Time to Buy and Sell Stock IV LeetCode Solution2965
594Contiguous Array LeetCode Solution2963
595Implement Two Stacks in an Array2958
596Maximum Depth of N-ary Tree Leetcode Solution2956
597Mean of Array After Removing Some Elements Leetcode Solution2948
598Jump Game IV LeetCode Solution2941
599Design Skiplist LeetCode Solution2941
600Find the two Numbers with Odd Occurrences in an Unsorted Array2939
601All Possible Full Binary Trees LeetCode Solution2937
602The Maze III LeetCode Solution2937
603Maximize Elements Using Another Array2937
604Subarrays with K Different Integers Leetcode Solution2936
605Valid Parentheses Leetcode Solution2934
606Check for Balanced Parentheses in an Expression2933
607Rearrange Spaces Between Words Leetcode Solution2930
608Sort a String According to Another String2927
609Group Multiple Occurrence of Array Elements Ordered by first Occurrence2924
610Maximum sum rectangle in a 2D matrix2913
611Contains Duplicate2912
612Minimum Jumps to Reach Home LeetCode Solution2898
613Boolean Parenthesization Problem2883
614Word Break2879
615Convert BST to Min Heap2877
616Palindrome Permutations of a String2877
617Perform String Shifts Leetcode2874
618Count pair with Given Sum2873
619Iterative Method to find Height of Binary Tree2870
620Valid Sudoku2863
621Maximum Score After Splitting a String Leetcode Solution2861
622Possible Bipartition LeetCode Solution2856
623Edit Distance LeetCode Solution2854
624Find the Minimum Element in a Sorted and Rotated Array2853
625Find the First Circular Tour that visits all the Petrol Pumps2842
626Maximum Product of Splitted Binary Tree LeetCode Solution2841
627A Space Optimized DP solution for 0-1 Knapsack Problem2839
628Reach a Number LeetCode Solution2832
629Best Meeting Point LeetCode Solution2821
630Number of palindromic paths in a matrix2817
631Merge Two Balanced Binary Search Trees2815
632Find Largest Value in Each Tree Row LeetCode Solution2804
633Find the Subarray of given length with Least Average2802
634Segregate 0s and 1s in an Array2799
635Sorted Linked List to Balanced BST2799
636Merge Overlapping Intervals II2797
637Count Sub Islands LeetCode Solution2792
638Brick Wall LeetCode Solution2790
639Check if the given array can represent Level Order Traversal of Binary Search Tree2790
640My Calendar I LeetCode Solution2789
641Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2783
642Swapping Nodes in a Linked List Leetcode Solution2783
643Caesar Cipher2782
644Heap Sort2780
645Level order Traversal in Spiral Form2774
646Palindromic Substrings Leetcode Solution2766
647Find Median from data Stream2760
648Construct BST from given Preorder Traversal2757
649Merge K Sorted Arrays and Print Sorted Output2752
650Palindrome Permutation2750
651Pair with given product2749
652All Unique Triplets that Sum up to a Given Value2748
653Word Pattern2743
654Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2735
655Maximize Sum of Array after K Negations Leetcode Solution2726
656Find First and Last Position of Element in Sorted Array LeetCode Solution2725
657Find all triplets with zero sum2725
658Print Fibonacci sequence using 2 variables2715
659Find whether a subarray is in form of a mountain or not2714
660Validate Binary Search Tree2714
661Maximum Frequency Stack Leetcode Solution2704
662Find all pairs (a, b) in an array such that a % b = k2702
663Huffman Coding2700
664Count Distinct Elements in Every Window of Size K2698
665Bubble sort using two Stacks2693
666Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2693
667Convert Sorted List to Binary Search Tree2689
668Queries on Probability of Even or Odd Number in given Ranges2686
669Minimum time required to rot all oranges2685
670Add two numbers2684
671Partition Problem2684
672Isomorphic Strings LeetCode Solution2681
673Counting Bits2679
674Longest Subarray Having Count of 1s One More than Count of 0s2678
675Find four elements that sum to a given value (Hashmap)2676
676Length of Longest Fibonacci Subsequence2672
677How to Efficiently Implement k Stacks in a Single Array?2670
678Split Array Into Consecutive Subsequences2669
679Sort 0s 1s and 2s in an Array2668
680Largest Sum Contiguous Subarray2667
681Binary Tree Right Side View LeetCode Solution2665
682Detect Capital Leetcode Solution2661
683Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2655
684Rotate Array2644
685Range Sum Query 2D – Immutable LeetCode Solution2643
686Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2641
687Minimum Swaps to Group All 1’s Together Leetcode Solution2636
688Print all subarrays with 0 sum2636
689Remove brackets from an algebraic string containing + and – operators2636
690Count Good Nodes in Binary Tree LeetCode Solution2635
691Populating Next Right Pointers in Each Node Leetcode Solution2632
692Remove Palindromic Subsequences Leetcode Solution2632
693Partition to K Equal Sum Subsets Leetcode Solution2629
694Count ways to reach the nth stair using step 1, 2 or 32625
695Populating Next Right Pointers in Each Node2622
696Binary Tree to Binary Search Tree Conversion2620
697Merge Two Sorted Lists Leetcode2619
698String comparison containing wildcards2615
699Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2607
700Find pairs with given sum such that elements of pair are in different rows2607
701Arithmetic Slices II – Subsequence LeetCode Solution2604
702Maximum Number of Chocolates to be Distributed Equally Among k Students2586
703Minimum Sum Path in a Triangle2582
704Happy Number2579
705Alien Dictionary2570
706Check if a Linked list of Strings form a Palindrome2569
707Concatenation of Array LeetCode Solution2568
708Queue Reconstruction by Height2568
709Web Crawler LeetCode Solution2566
710Partition Equal Subset Sum2562
711Inorder Successor of a node in Binary Tree2561
712Find Duplicate Subtrees2557
713Topological Sorting2549
714Contiguous Array Leetcode2547
715Difference Array | Range update query in O(1)2546
716Breadth First Search (BFS) for a Graph2544
717Find All Pairs With a Given Difference2541
718Swap Kth Node from beginning with Kth Node from End2540
719Increasing Subsequence of Length three with Maximum Product2538
720Check if String Follows Order of Characters by a Pattern or not2532
721Root to Leaf path with target sum Leetcode Solutions2523
722Remove duplicates from sorted array2516
723Longest Common Prefix Using Binary Search II2515
724Reverse Nodes in K-Group2511
725Elements Appear more than N/K times in Array2508
726Maximum Product Subarray II2506
727Maximum Distance in Array2498
728Container with Most Water2493
729Minimum Number of Arrows to Burst Balloons LeetCode Solution2492
730Minimum Swaps to Make Strings Equal Leetcode Solution2490
731Climbing stairs2487
732Count Minimum Steps to Get the given Array2479
733Sum Root to Leaf Numbers LeetCode Solution2478
734An Interesting Method to generate Binary Numbers from 1 to n2470
735Parallel Courses II LeetCode Solution2469
736Substring With Concatenation Of All Words2467
737Finding K closest element2466
738Check if all levels of two Binary Tree are anagrams or not2463
739Symmetric Tree2462
740Pancake Sorting2460
741Delete Nodes and Return Forest Leetcode Solution2457
742Longest Increasing Subsequence2455
743Deletion in a Binary Tree2453
744Score of Parenthesis LeetCode Solution2450
745Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2449
746Delete Nth node from the end of the given linked list2447
747Minimum Cost to Move Chips to The Same Position LeetCode Solution2442
748Given a binary tree, how do you remove all the half nodes?2442
749Boundary Traversal of binary tree2436
750Iterative Depth First Traversal of Graph2434
751Find the first repeating element in an array of integers2433
752MiniMax Algorithm2432
753Linked List Cycle2425
754Sort Array by Increasing Frequency Leetcode Solution2424
755Merge K Sorted Linked Lists2424
756Union and Intersection of two Linked Lists2421
757Non-overlapping sum of two sets2421
758Find K Closest Elements LeetCode Solution2418
759Kill Process LeetCode Solution2416
760Longest Common Prefix Word by Word Matching2416
761Count pairs from two linked lists whose sum is equal to a given value2413
762Minimum Size Subarray Sum2413
763Iterative Preorder Traversal2407
764Construct Binary Tree from given Parent Array representation2406
765New 21 Game2401
766Rearrange an Array Such that arr[i] is equal to i2399
767Find Maximum of Minimum for Every Window Size in a Given Array2399
768Level of Each node in a Tree from source node2398
769Verify Preorder Serialization of a Binary Tree2397
770Minimum Remove to Make Valid Parentheses LeetCode Solution2392
771Level order traversal using two Queues2387
772Check if a queue can be sorted into another queue using a stack2383
773Nested List Weight Sum II LeetCode Solution2382
774BFS vs DFS for Binary Tree2376
775Reservoir Sampling2372
776Merging Intervals2370
777Find the Difference Leetcode Solution2368
778Valid Anagrams2359
779Maximum Product Subarray2358
780Maximum size subarray sum equals k2358
781Matrix Chain Multiplication2355
782Range LCM Queries2353
783Remove Duplicates from Sorted List II2351
784Reorder Array Using Given Indexes2348
785Flatten Binary Tree to Linked List LeetCode Solution2346
786Palindrome Partitioning2346
787Smallest Range II Leetcode Solution2343
788Print a Binary Tree in Vertical Order2341
789K maximum sums of overlapping contiguous sub-arrays2337
790Sum of f(a[i], a[j]) over all pairs in an array of n integers2335
791Super Ugly Number2332
792Vertical sum in a given binary tree2331
793Defanging an IP Address LeetCode Solution2325
794Friends Of Appropriate Ages LeetCode Solution2318
795Valid Triangle Number LeetCode Solution2307
796Balanced Binary Tree2307
797Check if Two Expressions With Brackets are Same2306
798Maximum difference between two elements such as larger element comes after smaller2303
799Missing Number2297
800Check if any two intervals overlap among a given set of intervals2296
801The Painter’s Partition Problem2296
802Minimum Distance Between BST Nodes Leetcode Solution2294
803Flatten 2D Vector LeetCode Solution2291
804Find subarray with given sum (Handles Negative Numbers)2291
805Create Maximum Number2291
806Number Of Longest Increasing Subsequence2290
807Largest Submatrix With Rearrangements LeetCode Solution2287
808Find Three Element From Different Three Arrays Such That a + b + c = sum2283
809Employee Importance LeetCode Solution2282
810Find Maximum Sum Possible Equal Sum of Three Stacks2280
811Find K Length Subarray of Maximum Average2280
812Check if a given array can represent Preorder Traversal of Binary Search Tree2278
813Lowest Common Ancestor2278
814Count number of triplets with product equal to given number2274
815Unique Binary Search Trees LeetCode Solution2272
816Check if two nodes are on the same path in a Tree2258
817Find Peak Element2258
818Kth Smallest Element in a Sorted Matrix LeetCode Solution2257
819Peak Index in a Mountain Array LeetCode Solution2256
820Closest Leaf in a Binary Tree LeetCode Solution2255
821Array Nesting Leetcode Solution2250
822Minimum insertions to form a palindrome with permutations allowed2250
823Valid Triangle Number LeetCode Solution2244
824Third Maximum Number Leetcode Solution2240
825Maximum subsequence sum such that no three are consecutive2240
826Find distance between two nodes of a Binary Tree2240
827Find Common Characters Leetcode Solution2236
828Find Smallest Range Containing Elements from k Lists2235
829Hamming Distance2235
830Check Completeness of a Binary Tree LeetCode Solution2234
831Largest BST Subtree LeetCode Solution2234
832Iterative Postorder Traversal Using Two Stacks2228
833Distinct Subsequences2225
834Print all triplets in sorted array that form AP2223
835First Bad Version2223
836Find Sum of all unique sub-array sum for a given array2221
837Print All Distinct Elements of a Given Integer Array2218
838Products of ranges in an array2217
839Sorting a K Sorted Array2216
840Newman-Conway Sequence2214
841Arrange given numbers to form the biggest number2213
842Merging Two Sorted Arrays2212
843Valid Parenthesis String2211
844Sort Elements by Frequency II2211
845Maximum number of segments of lengths a, b and c2208
846Largest divisible pairs subset2207
847Find Element Using Binary Search in Sorted Array2205
848Number of siblings of a given Node in n-ary Tree2203
849Tree Traversal (Preorder, Inorder & Postorder)2200
850Bottom View of a Binary Tree2196
851Longest Palindromic Subsequence2195
852Path Sum2189
853Stone Game IV LeetCode Solution2176
854Find the largest multiple of 32176
855Lower Case To Upper Case2175
856Largest subarray with equal number of 0s and 1s2170
857Diagonal Traversal of Binary Tree2167
858Compare Strings by Frequency of the Smallest Character Leetcode Solution2164
859Print Right View of a Binary Tree2163
860Four Elements that Sum to Given2163
861Merge Two Sorted Arrays2160
862Contiguous Array2159
863Binary array after M range toggle operations2156
864Range Sum Query using Sparse Table2155
865Count and Say2155
866Stone Game IV LeetCode Solution2154
867Shuffle an Array2154
868Maximum difference between frequency of two elements such that element having greater frequency is also greater2151
869Segment Tree2150
870Subset Sum Problem in O(sum) space2141
871Median of Two Sorted Arrays2141
872Unique Binary Search Trees2138
873Isomorphic Strings2137
874Permutations of a Given String Using STL2136
875Encoded String With Shortest Length LeetCode Solution2131
876Find Largest d in Array such that a + b + c = d2130
877Longest Bitonic Subsequence2129
878Averages of Levels in Binary Tree2124
879Find Nth Node2118
880Next Greater Element in an Array2116
881Red-Black Tree Introduction2111
882Maximum Sum of 3 Non-Overlapping Subarrays2111
883Valid Number2111
884Infix to Postfix2110
885Closest Binary Search Tree Value Leetcode Solution2103
886Minimum Swaps To Make Sequences Increasing LeetCode Solution2103
887Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2103
888Height of a generic tree from parent array2097
889Maximum Product Subarray2097
890Find unique character in a string2097
891Friends Pairing Problem2094
892Transform a BST to Greater sum Tree2092
893Orderly Queue LeetCode Solution2087
894Count Primes in Ranges2087
895Trapping Rain Water II LeetCode Solution2074
896Maximum Population Year LeetCode Solution2073
897Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2070
898Valid Perfect Square LeetCode Solution2067
899Binary Tree Longest Consecutive Sequence LeetCode Solution2062
900Bold Words in String LeetCode Solution2061
901Write a function to get the intersection point of two Linked Lists2056
902Serialize and Deserialize Binary Tree2051
903Binary Search Tree Delete Operation2049
904Range Minimum Query (Square Root Decomposition and Sparse Table)2048
905Minimum sum of squares of character counts in a given string after removing k characters2048
906Shuffle a given Array2042
907Sentence Screen Fitting LeetCode Solution2039
908Insert Delete GetRandom2032
909The Number of Weak Characters in the Game LeetCode Solution2030
910Kth Smallest Number in Multiplication Table Leetcode Solution2030
911Diameter of N-Ary Tree LeetCode Solution2028
912Swap Nodes In Pairs2024
913Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2022
914Next greater element2018
915Convert BST into a Min-Heap without using array2015
916Lowest Common Ancestor in Binary Search Tree2008
917Reorganize String2008
918K’th Largest Element in BST when modification to BST is not allowed2004
919Integer to Roman1996
920Maximum Product Subarray1990
921Find Minimum In Rotated Sorted Array1990
922Edit Distance1979
923Array Queries for multiply replacements and product1978
924Advantages of BST over Hash Table1977
925Next Greater Element II LeetCode Solution1976
926Total Hamming Distance LeetCode Solution1970
927Queries on XOR of greatest odd divisor of the range1963
928Constant time range add operation on an array1960
929Koko Eating Bananas LeetCode Solution1959
930Check if an Array is Stack Sortable1955
931Longest Increasing Consecutive Subsequence1950
932Serialize and Deserialize Binary Tree LeetCode Solution1949
933Find the smallest binary digit multiple of given number1947
934Best Meeting Point LeetCode Solution1944
935Print n terms of Newman-Conway Sequence1942
936Maximum Sum Increasing Subsequence1942
937Level Order Traversal of Binary Tree1940
938Clone a Binary Tree with Random Pointers1938
939Power of Two1936
940K’th Largest element in BST using constant extra space1932
941Moving Stones Until Consecutive Leetcode Solution1929
942Image Overlap LeetCode Solution1928
943Reverse a Path in BST using Queue1923
944Numbers with prime frequencies greater than or equal to k1922
945Range Queries for Longest Correct Bracket Subsequence1920
946Design Underground System Leetcode Solution1919
947Write Code to Determine if Two Trees are Identical1918
948Number of Orders in the Backlog Leetcode Solution1917
949Greatest Sum Divisible by Three LeetCode Solution1910
950Count and Toggle Queries on a Binary Array1910
951Valid Tic-Tac-Toe State LeetCode Solution1909
952Check if X can give change to every person in the Queue1906
953A program to check if a binary tree is BST or not1904
954Print Next Greater Number of Q queries1900
955Find the node with minimum value in a Binary Search Tree1899
956Design Add and Search Words Data Structure LeetCode Solution1895
957Insert into a Sorted Circular Linked List LeetCode Solution1890
958Find minimum number of merge operations to make an array palindrome1889
959Closest Binary Search Tree Value II LeetCode Solution1887
960Form minimum number from given sequence1887
961Check for Palindrome after every character replacement Query1886
962Factorial Trailing Zeroes LeetCode Solution1884
963Check if each internal node of a BST has exactly one child1884
964Count the Pairs at Same Distance as in English Alphabets1879
965Merge two BSTs with limited extra space1878
966Number of elements less than or equal to a given number in a given subarray1877
967Maximum Array from Two given Arrays Keeping Order Same1875
968Queries for Decimal Values of Subarrays of a Binary Array1873
969Largest Plus Sign Leetcode Solution1869
970Collect maximum points in a grid using two traversals1863
971Merge Sort1863
972Maximum difference between first and last indexes of an element in array1853
973Dividing Array into Pairs With Sum Divisible by K1852
974Group Shifted Strings Leetcode Solution1845
975Priority Queue1833
976Merge Sorted Array1832
977Longest Substring Without Repeating Characters Leetcode Solution1827
978Print modified array after multiple array range increment operations1824
979Count even length binary sequences with same sum of first and second half bits1823
980Graph Cloning1816
981Cutting a Rod1807
982Print Ancestors of a Given Binary Tree Node Without Recursion1799
983Form Minimum Number From Given Sequence1793
984Swim in Rising Water LeetCode Solution1784
985Find maximum average subarray of k length1784
986Kth Smallest Element in a BST1784
987Count Pairs Whose Products Exist in Array1782
988Excel Sheet Column Number LeetCode Solution1778
989Minimum Moves to Equal Array Elements LeetCode Solution1776
990Unique Paths II1766
991Excel Sheet Column Title LeetCode Solution1763
992Binary Search Tree1761
993Guess The Word1760
994Decrease Elements To Make Array Zigzag LeetCode Solution1756
995Palindrome Partitioning1755
996Print all Possible Ways to Break a String in Bracket Form1753
997K Empty Slots1752
998Check given array of size n can represent BST of n levels or not1748
999Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1747
1000Binary Search Tree Search and Insertion1746
1001Longest Common Prefix using Character by Character Matching1745
1002Regular Expression Matching1739
1003Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1736
1004Sorted Array to Balanced BST1730
1005How to print maximum number of A’s using given four keys1726
1006Sum of Left Leaves LeetCode Solution1711
1007Find postorder traversal of BST from preorder traversal1702
1008Maximum weight transformation of a given string1681
1009Construct Complete Binary Tree from its Linked List Representation1681
1010Queries for Number of Distinct Elements in a Subarray1671
1011Find the Town Judge LeetCode Solution1653
1012Symmetric Tree LeetCode Solution Leetcode Solution1648
1013Iterative method to find ancestors of a given binary tree1648
1014Maximum Depth Of Binary Tree1647
1015Binary Tree to Binary Search Tree Conversion using STL set1639
1016Shortest Unsorted Continuous Subarray LeetCode Solution1638
1017Random Pick Index LeetCode Solution1625
1018Data Structure Designing1621
1019Search in Sorted Rotated Array1613
1020Find Maximum Depth of Nested Parenthesis in a String1594
1021Search an Element in Sorted Rotated Array1576
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1553
1023Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1546
1024Kth Smallest Product of Two Sorted Arrays LeetCode Solution1541
1025Next Greater Element I Leetcode Solution1499
1026Maximum Binary Tree1485
1027Print Maximum Length Chain of Pairs1475
1028Flatten Binary Tree to Linked List LeetCode Solution1461
1029Find k-th smallest element in BST (Order Statistics in BST)1446
1030Peeking Iterator LeetCode Solution1423
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1409
Translate »