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 Solution42380
2Maximum occurring character in a string19340
3Plus One Leetcode Solution18615
4Valid Parentheses LeetCode Solution18557
53Sum Leetcode Solution16522
6First Repeating Element14750
7Single Number Leetcode Solution14478
8Merge Sorted Arrays Leetcode Solution14422
9Count Primes Leetcode Solutions14047
10Pow(x, n) Leetcode Solution13714
11Sqrt(x) Leetcode Solution13516
12Meeting Rooms II LeetCode Solution12686
13Concatenation of Array LeetCode Solution12354
14Roman to Integer Leetcode Solution11567
15Search Insert Position Leetcode Solution11361
16Valid Palindrome Leetcode Solution11351
17Contains Duplicate II Leetcode Solution11328
18Palindrome Number LeetCode Solution11200
19Reverse Vowels of a String Leetcode Solution10795
20Jump Game Leetcode Solution10770
21Intersection of Two Arrays II Leetcode Solution10647
22Number of Good Pairs Leetcode Solution10553
23Remove Duplicates from Sorted Array Leetcode Solution10497
24Spiral Matrix LeetCode Solution10450
25Longest Substring Without Repeating Characters LeetCode Solution10426
26Kids With the Greatest Number of Candies Leetcode Solution10397
27House Robber Leetcode Solution10334
28Add Binary Leetcode Solution10226
29Maximum Subarray Leetcode Solution9870
30Find the Maximum Repeating Number in Array9708
31Number Of 1 bits9557
32Text Justification LeetCode Solution9545
33Jewels and Stones Leetcode Solution9400
34Power of Two Leetcode Solution9249
35Move Zeroes LeetCode Solution9242
36Longest Palindromic Substring LeetCode Solution9239
37Min Stack Leetcode Solution9213
38Permutations Leetcode Solution9094
39Shuffle String Leetcode Solution8981
40Word Search Leetcode Solution8875
41Third Maximum Number Leetcode Solution8866
42Find All Numbers Disappeared in an Array Leetcode Solution8864
43Next Permutation Leetcode Solution8843
44Daily Temperatures Leetcode Solution8825
45Median of Two Sorted Arrays LeetCode Solution8757
46Number of Islands LeetCode Solution8715
47Search in Rotated Sorted Array Leetcode Solution8662
48Kth Missing Positive Number Leetcode Solution8641
49Maximum Profit in Job Scheduling Leetcode Solution8625
50Longest Common Prefix Leetcode Solution8590
51Next Greater Element I Leetcode Solution8554
52Evaluation of Postfix Expression8490
53Frog Jump Leetcode Solution8471
54Find Minimum Distance Between Two Numbers in an Array8331
55Running Sum of 1d Array Leetcode Solution8237
56Rotate Image LeetCode Solution8177
57Multiply Strings Leetcode Solution8160
58Valid Anagram Leetcode Solution8149
59Combination Sum Leetcode Solution8112
60Can Place Flowers LeetCode Solution8103
61Shuffle the Array Leetcode Solution8103
623Sum Closest LeetCode Solution8058
63Bulb Switcher LeetCode Solution8049
64House Robber II Leetcode Solution8031
65Count and Say Leetcode Solution8009
66Excel Sheet Column Title Leetcode Solution7775
67Koko Eating Bananas Leetcode Solution7746
68Isomorphic Strings Leetcode Solution7740
69Subarray and Subsequence7736
70Happy Number Leetcode Solution7711
71Count Pairs With Given Sum7638
72Missing Number Leetcode Solution7631
73Product of array except self7629
74Integer to Roman Leetcode Solution7619
75Majority Element Leetcode Solution7593
76Strobogrammatic Number LeetCode Solution7569
77Best Time to Buy and Sell Stock LeetCode Solution7517
78Rotate String LeetCode Solution7512
79Reverse String Without Temporary Variable7491
80Candy LeetCode Solution7418
81Find the Difference Leetcode Solution7356
82Is Subsequence Leetcode Solution7352
83Largest Number Leetcode Solution7237
84Subtract the Product and Sum of Digits of an Integer Leetcode Solution7232
85Find Common Characters Leetcode Solution7231
86String to Integer (atoi) LeetCode Solution7162
87How Many Numbers Are Smaller Than the Current Number Leetcode Solution7155
88Find the Duplicate Number LeetCode Solution7145
89Binary Search LeetCode Solution7106
90Expression Evaluation7103
91A Product Array Puzzle7093
92Set Matrix Zeroes7077
93Summary Ranges Leetcode Solution7023
94Subset Leetcode7009
95Sort Characters By Frequency LeetCode Solution6926
96Find the Town Judge Leetcode Solution6923
97Word Pattern LeetCode Solution6899
98Rabin Karp Algorithm6898
99Balanced Binary Tree Leetcode Solution6894
100Unique Paths Leetcode Solution6846
101Arranging Coins Leetcode Solution6808
102Find the Winner of the Circular Game LeetCode Solution6786
103String Compression LeetCode Solution6752
104Rearrange Positive and Negative Numbers Alternatively in Array6730
105Repeated Substring Pattern LeetCode Solution6665
106Asteroid Collision LeetCode Solution6635
107Smallest window in a string containing all characters of another string6623
108Group Anagrams LeetCode Solution6603
109Sort Colors LeetCode Solution6584
110Best Time to Buy and Sell Stock  II Leetcode Solution6450
111Sort Array By Parity LeetCode Solution6448
112Page Replacement Algorithms in Operating Systems6424
113Zigzag Conversion LeetCode Solution6400
114Postfix to Infix Conversion6398
115Divide Two Integers Leetcode Solution6342
116Valid Palindrome II Leetcode Solution6334
117Sum of minimum and maximum elements of all subarrays of size k6333
118Matrix Chain Multiplication using Dynamic Programming6320
119Generate Parentheses Leetcode Solution6254
120Product of Array Except Self LeetCode Solution6254
121Kth largest element in an Array Leetcode Solutions6239
122Reverse Integer Leetcode Solution6230
123Assign Cookies Leetcode Solution6221
124Remove Duplicates from Sorted Array II Leetcode Solution6171
125Bus Routes Leetcode Solution6126
126Merge Two Sorted Lists Leetcode Solutions6125
127Pascal Triangle Leetcode6122
128Number of Provinces Leetcode Solution6115
129Length of Last Word Leetcode Solution6096
130H-Index Leetcode Solution6085
131Linked List Cycle II LeetCode Solution6066
132Decode String Leetcode Solution6061
133Convert array into Zig-Zag fashion6014
134Minimum Steps to reach target by a Knight6009
135Defanging an IP Address Leetcode Solution5995
136Optimal Account Balancing LeetCode Solution5972
137Employee Free Time LeetCode Solution5968
138Minimum Cost For Tickets Leetcode Solution5923
139First element occurring k times in an array5888
140Find the Row with Maximum Number of 1’s5858
141Build Array From Permutation Leetcode Solution5842
142Pascal’s Triangle II Leetcode Solution5841
143Prefix to Infix Conversion5822
144Find First and Last Position of Element in Sorted Array Leetcode Solution5774
145Increasing Triplet Subsequence LeetCode Solution5769
146Implementation of Deque using Doubly Linked List5760
147Island Perimeter Leetcode Solution5714
148Robot Room Cleaner Leetcode Solution5709
149Majority Element II Leetcode Solution5673
150Bellman Ford Algorithm5649
151Max Consecutive Ones Leetcode Solution5647
152Find Pair with Given Difference5643
153K-th Smallest Element in a Sorted Matrix5630
154Merge Sorted Array LeetCode Solution5626
155Swap Nodes in Pairs Leetcode Solutions5622
156Check if the Elements of an Array are Consecutive5605
157Fibonacci Number LeetCode Solution5585
158Guess Number Higher or Lower LeetCode Solution5549
159Design Parking System Leetcode Solution5547
160KMP Algorithm5541
161Find the Missing Number5540
162First negative integer in every window of size k5510
163Add Two Numbers II Leetcode Solution5498
164Delete middle element of a stack5489
165OSI Model5486
166Coin Change 2 Leetcode Solution5471
167Lemonade Change Leetcode Solution5467
168Subarray Sum Equals K LeetCode Solution5463
169Length of the largest subarray with contiguous elements5458
170Subarray Product Less Than K LeetCode Solution5444
171First Unique Character in a String LeetCode Solution5439
172String Compression5436
173Trapping Rain Water Leetcode Solution5433
174Capacity To Ship Packages Within D Days Leetcode Solution5404
175Last Stone Weight5403
176Set Matrix Zeroes Leetcode Solution5402
177Word Ladder LeetCode Solution5379
178Subarray with Given Sum5374
179Find All Duplicates in an Array LeetCode Solution5369
180Palindrome Linked List Leetcode Solution5368
181Monotonic Array LeetCode Solution5367
182Find Smallest Missing Number in a Sorted Array5351
183Form Minimum Number from Given Sequence of D’s and I’s5335
184Repeated Substring Pattern5327
185Combinations Leetcode Solution5284
186Remove Duplicates from Sorted List II LeetCode Solution5264
187Reverse Words in a String III LeetCode Solution5239
18801 Matrix LeetCode Solution5234
189Same Tree LeetCode Solution5225
190Iterative Implementation of Quick Sort5212
191Valid Perfect Square Leetcode Solution5211
192Continuous Subarray Sum LeetCode Solution5199
193Single Element in a Sorted Array LeetCode Solution5179
194Break a Palindrome LeetCode Solution5130
195Remove Linked List Elements Leetcode Solution5126
196Prefix to Postfix Conversion5119
197Backspace String Compare5115
198Slowest Key Leetcode Solution5111
199Merge k Sorted Lists Leetcode Solution5091
200Combination Sum5088
201Relative Ranks Leetcode Solution5057
202Leetcode Permutations5053
203The K Weakest Rows in a Matrix Leetcode Solution5014
204Rotate List Leetcode Solution5004
205Find the Duplicate Element5003
206Maximum Product of Three Numbers LeetCode Solution4990
207Find Peak Element LeetCode Solution4958
208Second Most Repeated Word in a Sequence4951
209Insert Delete GetRandom O(1) Leetcode Solution4940
210Top K Frequent Elements LeetCode Solution4933
211Printing brackets in Matrix Chain Multiplication Problem4930
212Longest Common Subsequence LeetCode Solution4928
213Kth Largest Element in a Stream Leetcode Solution4901
214Palindrome Number4882
215Cuckoo sequence program4878
216Make The String Great Leetcode Solution4858
217Remove All Occurrences of a Substring LeetCode Solution4857
218Rearrange given Array in Maximum Minimum Form4854
219Container With Most Water LeetCode Solution4849
220Relative Sort Array Leetcode Solution4839
221Subarray Sum Equals k4837
222Convert a Number to Hexadecimal Leetcode Solution4831
223Max Area of Island4827
224Unique Paths II Leetcode Solution4816
225Delete Node in a Linked List Leetcode Solution4798
226Find Leaders in an Array4796
227Permutation in String Leetcode Solution4791
228Check If Two String Arrays are Equivalent Leetcode Solution4780
229Target Sum4780
230Generate all Binary Strings Without Consecutive 1’s4777
231Contains Duplicate LeetCode Solution4774
232Time Based Key-Value Store LeetCode Solution4749
233N-Queens LeetCode Solution4744
234Moving Average from Data Stream Leetcode Solution4742
235Arithmetic Expression Evaluation4728
236Given two unsorted arrays find all pairs whose sum is x4704
237Count Good Nodes in Binary Tree Leetcode Solution4698
238Find N Unique Integers Sum up to Zero Leetcode Solution4694
239Scramble String4691
240Letter Combinations of a Phone Number4676
241Number of Dice Rolls With Target Sum LeetCode Solution4671
242LRU Cache LeetCode Solution4655
243Next Permutation4653
244Construct Binary Tree from Given Inorder and Preorder Traversals4632
245Find Triplet in Array With a Given Sum4625
246Flipping an Image LeetCode Solution4609
247Stone Game LeetCode4609
248Minimum swaps required to bring all elements less than or equal to k together4590
249Number of Steps to Reduce a Number to Zero Leetcode Solution4586
250Check If N and Its Double Exist Leetcode Solution4581
251Reverse Only Letters LeetCode Solution4578
252Min Cost Climbing Stairs LeetCode Solution4569
253Remove Minimum Characters so that Two Strings Become Anagrams4568
254Prim’s Algorithm4559
255Find The Duplicate Number4540
256Stock Buy Sell to Maximize Profit4539
257Minimum Knight Moves LeetCode Solution4533
258Student Attendance Record I Leetcode Solution4530
259To Lower Case Leetcode Solution4502
260Top K Frequent Elements4487
261Minimum Operations to convert X to Y4476
262The kth Factor of n Leetcode Solution4466
263Smallest Positive Number Missing in an Unsorted Array4456
264License Key Formatting Leetcode Solution4441
265Reverse words in a string4424
266Maximum Subarray Sum using Divide and Conquer4415
267Min Stack4399
268Maximum Sum Increasing Subsequence4388
269Search Suggestions System LeetCode Solution4371
270Maximum Population Year LeetCode Solution4368
271Single Number4350
272Find the Number Occurring Odd Number of Times in an Array4344
273Sum of Subarray Ranges Leetcode Solution4341
274Special Array With X Elements Greater Than or Equal X Leetcode Solution4339
275Find Words That Can Be Formed by Characters Leetcode Solution4327
276Reformat Date LeetCode Solution4308
277Top K Frequent Words LeetCode Solution4304
278Longest Common Subsequence4289
279Remove Nth Node From End of List Leetcode Solution4269
280Minimum Path Sum Leetcode Solution4263
281N-th Tribonacci Number Leetcode Solution4234
282Reverse individual words4228
283Intersection of Two Arrays4228
284Maximum Depth of Binary Tree Leetcode Solution4223
285Reveal Cards In Increasing Order Leetcode Solution4203
286Evaluate Division4201
287Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4199
288BFS for Disconnected Graph4199
289Maximize Distance to Closest Person LeetCode Solution4185
290Last Stone Weight II LeetCode Solution4183
291House Robber4179
292Remove Duplicates from Sorted List LeetCode Solution4176
293Best Time to Buy and Sell Stock III Leetcode Solution4175
294Minimum Characters to be Added at Front to Make String Palindrome4165
295Diagonal Traverse LeetCode Solution4152
296Find any one of the multiple repeating elements in read only array4134
297Count of index pairs with equal elements in an array4126
298Design A Leaderboard Leetcode Solution4124
299Find if Path Exists in Graph Leetcode Solution4123
300Count Number of Occurrences in a Sorted Array4116
301Length of Longest valid Substring4112
302Sort Elements by Frequency of Occurrences4109
303Most Frequent Element in an Array4104
304Binary Tree Inorder Traversal LeetCode Solution4103
305Minimum number of Merge Operations to make an Array Palindrome4065
306Implement a stack using single queue4061
307Range Sum Query 2D – Immutable Leetcode Solution4055
308Find the Closest Palindrome number4029
309Brightest Position on Street LeetCode Solution4027
310Maximum Size Subarray Sum Equals k Leetcode Solution4016
311Find Leaves of Binary Tree LeetCode Solution4004
312Mobile Numeric Keypad Problem3999
313Partition Array Into Three Parts With Equal Sum Leetcode Solution3987
314Invalid Transactions LeetCode Solution3983
315Reverse Nodes in k-Group LeetCode Solution3980
316Reverse Bits3976
317Spiral Matrix II Leetcode Solution3972
318Special Positions in a Binary Matrix Leetcode Solution3966
319Find Index of Closing Bracket for a Given Opening Bracket in an Expression3966
320Remove All Ones With Row and Column Flips Leetcode Solution3964
321Shortest Word Distance Leetcode Solution3958
322Symmetric Tree Leetcode Solution3953
323Sort Array By Parity II Leetcode Solution3953
324Sudoku Solver3944
325Arrange given Numbers to Form the Biggest Number II3931
326Diagonal Traversal LeetCode Solution3922
327Paint House LeetCode Solution3919
328One Edit Distance LeetCode Solution3905
329Binary Tree Zigzag Level Order Traversal LeetCode Solution3887
330Maximum Subarray3887
331Find Duplicates in an Array in Most Efficient Way3873
332Remove Invalid Parentheses Leetcode Solution3870
333Rank Transform of an Array Leetcode Solution3868
334Jump Game3865
335Split Linked List in Parts Leetcode Solution3853
336Partition Labels LeetCode Solution3847
337Unique Paths3846
338Construct BST from its given Level Order Traversal3842
339Minimum Moves to Equal Array Elements Leetcode Solution3841
340Alien Dictionary LeetCode Solution3839
341Hamming Distance Leetcode Solution3826
342Largest Rectangle in Histogram LeetCode Solution3822
343Round Robin Scheduling3810
344Tug of War3799
345Minimum operation to make all elements equal in array3798
346Bitwise AND of Numbers Range LeetCode Solution3797
347Maximal Square3796
348Least Number of Unique Integers after K Removals Leetcode Solution3793
349Minimum Depth of Binary Tree Leetcode Solution3788
350Dijkstra Algorithm3788
351Find Winner on a Tic Tac Toe Game Leetcode Solution3786
352Range Sum of BST LeetCode Solution3784
353Lowest Common Ancestor of a Binary Tree Leetcode Solution3784
354The Celebrity Problem3783
355Next Permutation LeetCode Solution3772
356Pair of Positive Negative Values in an Array3764
357Maximum Circular Subarray Sum3763
358String Matching in an Array Leetcode Solution3762
359Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3759
360Check whether Strings are K Distance Apart or Not3748
361Minimum Time to Collect All Apples in a Tree LeetCode Solution3745
362Smallest Subarray with k Distinct Numbers3742
363Given an Array of Pairs Find all Symmetric Pairs in it3725
364Merge Two Sorted Linked Lists3725
365Minimum Time Visiting All Points Leetcode Solution3719
366Minimum Cost to Hire K Workers3717
367Count of Triplets With Sum Less than Given Value3717
368Clone Graph LeetCode Solution3711
369Longest Common Prefix using Trie3710
370K Empty Slots LeetCode3705
371Transpose Graph3700
372Next Greater Element III LeetCode Solution3695
373Sort a stack using a temporary stack3688
374Check if a given array contains duplicate elements within k distance from each other3681
375Regular Expression Matching Regular Expression Matching LeetCode Solution3679
376Find minimum difference between any two elements3679
377Implementation of Deque using circular array3675
378Minimize Maximum Pair Sum in Array LeetCode Solution3672
379Robot Bounded In Circle LeetCode Solution3665
380Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3663
381Ugly Number II LeetCode Solution3658
382Unique Paths III LeetCode Solution3648
383Postfix to Prefix Conversion3641
384Non-decreasing Array LeetCode Solution3633
385Substring with Concatenation of All Words Leetcode Solution3626
386Validate Stack Sequences LeetCode Solution3624
387Invert Binary Tree LeetCode Solution3624
388Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3618
389Invert Binary Tree LeetCode Solution3616
390Sliding Window Technique3609
391Permutation Sequence LeetCode Solution3606
392Longest Substring with At Most K Distinct Characters LeetCode Solution3603
393Longest subarray not having more than K distinct elements3603
394Graph Valid Tree LeetCode Solution3594
395Find the Smallest Divisor given a Threshold Leetcode Solution3591
396Find duplicates in a given array when elements are not limited to a range3591
397Missing Element in Sorted Array LeetCode Solution3590
398LRU Cache Implementation3589
399Kth Smallest Element in a BST Leetcode Solution3584
400Find the subarray with least average3584
401Stack Permutations (Check if an array is stack permutation of other)3582
402Design Browser History LeetCode Solution3581
403Find the First and Second Smallest Elements3581
404Longest subsequence such that difference between adjacents is one3578
405First Circular Tour to Visit all the Petrol Bunks3578
406Number of Islands II LeetCode Solution3575
407Find Top K (or Most Frequent) Numbers in a Stream3573
408Path With Maximum Minimum Value LeetCode Solution3572
409Find Maximum Level sum in Binary Tree3564
410Kruskal Algorithm3564
411Stone Game II Leetcode3563
412Common elements in all rows of a given matrix3562
413Word Search3559
414Toeplitz Matrix3559
415Queries for counts of array elements with values in given range3558
416K Closest Points to Origin Leetcode Solution3556
417Sequences of given length where every element is more than or equal to twice of previous3553
418Combination Sum IV LeetCode Solution3551
419Snakes and Ladders LeetCode Solution3539
420Convert Sorted Array to Binary Search Tree LeetCode Solutions3538
421Partition List Leetcode Solution3537
422Integer Break LeetCode Solution3534
423Recursion3534
424Number Complement Leetcode Solution3530
425Search a 2D Matrix II Leetcode Solution3528
426Number of Smaller Elements on Right Side3524
427Painting Fence Algorithm3523
428Max stack3519
429Maximum Number of Occurrences of a Substring Leetcode Solution3512
430Find the Peak Element from an Array3497
4313 Sum3492
432Longest Palindrome can be Formed by Removing or Rearranging Characters3491
433Odd Even Linked List Leetcode Solution3489
434Minesweeper LeetCode Solution3484
435Sort elements by frequency3483
436Top View of Binary Tree3478
437Priority Queue using doubly linked list3473
438LRU Cache Leetcode Solution3469
439Maximum Consecutive Numbers Present in an Array3465
440Nth Catalan Number3465
441Consecutive Characters LeetCode Solution3464
442Insert Interval Leetcode Solution3462
443Search in a Binary Search Tree Leetcode Solution3462
444Can Make Arithmetic Progression From Sequence Leetcode Solution3461
445Rearrange array such that even positioned are greater than odd3459
446Check if Two given Strings are Isomorphic to each other3455
447Find Minimum in Rotated Sorted Array II LeetCode Solution3445
448Flood Fill LeetCode3440
449Expression Contains Redundant Bracket or Not3409
450Distance of nearest cell having 1 in a binary matrix3399
451Design a stack that supports getMin() in O(1) time and O(1) extra space3398
452Shortest Palindrome3397
453Number of Closed Islands Leetcode Solution3394
454Kth Non-repeating Character3393
455High Five LeetCode Solution3389
456Replace Elements with Greatest Element on Right Side Leetcode Solution3385
457Move All the Zeros to the End of the Given Array3384
458Decompress Run-Length Encoded List Leetcode Solution3382
459Minimum Absolute Difference in BST Leetcode Solution3382
460Find a Peak Element II LeetCode Solution3378
4614Sum3377
462Sliding Window Maximum LeetCode Solution3369
463Check If Array Pairs Are Divisible by k LeetCode Solution3368
464Gold Mine Problem3361
465Spiral Matrix III LeetCode Solution3360
466Insert into a Binary Search Tree Leetcode Solution3360
467Integer to English words3354
468Tiling Problem3344
469Minimum Path Sum3343
470N queen problem3340
471Restore IP Addresses Leetcode Solution3336
472Queries for GCD of all numbers of an array except elements in a given range3332
473Binary Tree Maximum Path Sum LeetCode Solution3328
474Balanced Expression with Replacement3328
475Sorting array using Stacks3322
476Longest Common Prefix using Sorting3322
477Convert Sorted Array to Binary Search Tree Leetcode Solution3319
478Coin Change Problem3318
479Find All Possible Recipes from Given Supplies LeetCode Solution3314
480Trapping Rain Water LeetCode Solution3309
481Best Time to Buy and Sell Stock3308
482Count items common to both the lists but with different prices3303
483Sort Colors3300
484Majority Element3299
485Priority Queue in C++3295
486Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3294
487Find Pythagorean Triplets from Array3292
488Sliding Window Median Leetcode Solution3288
489Fibonacci Number LeetCode Solution3285
490Evaluate Reverse Polish Notation LeetCode Solution3285
491Cells with Odd Values in a Matrix LeetCode Solution3285
492Palindrome Substring Queries3285
493Number of Days Between Two Dates LeetCode Solution3275
494The Stock Span Problem3270
495Vertical Order Traversal of Binary Tree LeetCode Solution3266
496Minimum Number of Taps to Open to Water a Garden LeetCode Solution3263
497Interval Tree3255
498Sort an array according to the order defined by another array3253
499Reverse a linked list3247
500Is Graph Bipartite? LeetCode Solution3246
501Path Sum II LeetCode Solution3237
502Largest rectangular sub-matrix whose sum is 03235
503Pancake Sorting Problem3231
504Camelcase Matching Leetcode Solution3214
505Find the first Repeating Number in a Given Array3214
506Different Ways to Add Parentheses Leetcode Solution3209
507How to Implement Stack Using Priority Queue or Heap?3209
508Queue using Stacks3208
509Kth ancestor of a node in binary tree3206
510Custom Sort String Leetcode Solution3204
511Intersection of Two Linked Lists LeetCode Solution3203
512Shortest Completing Word Leetcode Solution3201
513Design Hit Counter LeetCode Solution3197
514Sieve of Eratosthenes3191
515Longest Increasing Path in a Matrix LeetCode Solution3190
516Divide Chocolate LeetCode Solution3188
517Find Median from Data Stream LeetCode Solution3181
518Multiplication of Two Matrices3177
519Check if Array Contains Contiguous Integers With Duplicates Allowed3176
520Find a Fixed Point in a Given Array3176
521Scramble String LeetCode Solution3174
522Analyze User Website Visit Pattern LeetCode Solution3170
523Count subarrays having total distinct elements same as original array3169
524Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3168
525Subset sum problem3168
526Detect a loop in the Linked List3161
527Perfect Squares LeetCode Solution3154
528Fibonacci numbers3153
529Count Submatrices With All Ones LeetCode Solution3145
530Queue based approach for first non-repeating character in a stream3138
531Group Anagrams3134
532Implement Trie (Prefix Tree) Leetcode Solution3133
533Number of Distinct Islands Leetcode Solution3131
534Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3126
535Reorder Data in Log Files LeetCode Solution3125
536Path Crossing Leetcode Solution3121
537Monotonic Array Leetcode Solution3117
538Valid Boomerang Leetcode Solution3115
539Generate all Binary Strings from Given Pattern3114
540Find the Lost Element From a Duplicated Array3108
541Champagne Tower LeetCode Solution3105
542Longest Common Prefix using Divide and Conquer3103
543Insert Node in the Sorted Linked List3102
544Maximum Sum of Non Consecutive Elements3095
545Construction of Longest Increasing Subsequence (N log N)3087
546Minimum Height Trees3087
547How to Create Mergable Stack?3085
548Merge Overlapping Intervals3079
549Nearest Exit from Entrance in Maze LeetCode Solution3074
550Sort a stack using recursion3072
551Race Car LeetCode Solution3068
552Decode Ways3067
553Find if an Expression has Duplicate Parenthesis or Not3067
554Shifting Letters LeetCode Solution3066
555Palindrome Permutation LeetCode Solution3065
556Build an Array With Stack Operations Leetcode Solution3061
557Count Possible Triangles3057
558First missing positive3053
559Recover Binary Search Tree3052
560Find a Sorted Subsequence of size 33048
561Find maximum length Snake sequence3047
562Decode String3047
563Binary Tree zigzag level order Traversal3046
564Merge Two Binary Trees LeetCode Solution3043
565Smallest Good Base3043
566Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3040
567Sliding Window Maximum3036
568LCS (Longest Common Subsequence) of three strings3034
569Most Stones Removed with Same Row or Column LeetCode Solution3031
570Minimum Bracket Reversals3028
571Number of Equivalent Domino Pairs Leetcode Solution3026
572Print all Palindromic Partitions of a String3026
573Letter Case Permutation3020
574Morris Traversal3018
575Rectangle Overlap LeetCode Solution3015
576Minimum Height Trees LeetCode Solution3011
577Maximum Element in an Array which is Increasing and then Decreasing3009
578Largest Subarray with Equal Number of 0’s and 1’s3007
579Palindrome Partitioning Leetcode Solution3005
580Recover Binary Search Tree Leetcode Solution3003
581Implement strStr() LeetCode Solution3000
582Distance Between Bus Stops Leetcode Solution3000
583Minimum number of jumps to reach end2996
584Maximum Number of Ways to Partition an Array LeetCode Solution2993
585Longest Substring with At Least K Repeating Characters LeetCode Solution2993
586Guess Number Higher or Lower II2982
587Maximum Length of Chain Pairs2980
588Design a Stack With Increment Operation Leetcode Solution2979
589K-th Distinct Element in an Array2979
590Find the Town Judge LeetCode Solution2978
591Reorder an Array According to the Given Indexes2978
592Longest Repeated Subsequence2977
593Best Time to Buy and Sell Stock IV LeetCode Solution2966
594Contiguous Array LeetCode Solution2964
595Implement Two Stacks in an Array2959
596Maximum Depth of N-ary Tree Leetcode Solution2957
597Mean of Array After Removing Some Elements Leetcode Solution2949
598Design Skiplist LeetCode Solution2942
599Jump Game IV LeetCode Solution2941
600Find the two Numbers with Odd Occurrences in an Unsorted Array2940
601All Possible Full Binary Trees LeetCode Solution2938
602Maximize Elements Using Another Array2938
603Subarrays with K Different Integers Leetcode Solution2937
604The Maze III LeetCode Solution2937
605Check for Balanced Parentheses in an Expression2936
606Valid Parentheses Leetcode Solution2935
607Rearrange Spaces Between Words Leetcode Solution2931
608Sort a String According to Another String2928
609Group Multiple Occurrence of Array Elements Ordered by first Occurrence2925
610Maximum sum rectangle in a 2D matrix2914
611Contains Duplicate2913
612Minimum Jumps to Reach Home LeetCode Solution2899
613Boolean Parenthesization Problem2887
614Word Break2880
615Convert BST to Min Heap2878
616Palindrome Permutations of a String2878
617Count pair with Given Sum2877
618Perform String Shifts Leetcode2875
619Iterative Method to find Height of Binary Tree2872
620Valid Sudoku2864
621Maximum Score After Splitting a String Leetcode Solution2862
622Possible Bipartition LeetCode Solution2857
623Edit Distance LeetCode Solution2855
624Find the Minimum Element in a Sorted and Rotated Array2854
625Find the First Circular Tour that visits all the Petrol Pumps2843
626Maximum Product of Splitted Binary Tree LeetCode Solution2842
627A Space Optimized DP solution for 0-1 Knapsack Problem2840
628Reach a Number LeetCode Solution2833
629Best Meeting Point LeetCode Solution2822
630Number of palindromic paths in a matrix2818
631Merge Two Balanced Binary Search Trees2816
632Find Largest Value in Each Tree Row LeetCode Solution2805
633Find the Subarray of given length with Least Average2804
634Segregate 0s and 1s in an Array2802
635Sorted Linked List to Balanced BST2800
636Merge Overlapping Intervals II2800
637Count Sub Islands LeetCode Solution2793
638Brick Wall LeetCode Solution2792
639Check if the given array can represent Level Order Traversal of Binary Search Tree2791
640My Calendar I LeetCode Solution2790
641Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2785
642Swapping Nodes in a Linked List Leetcode Solution2783
643Caesar Cipher2783
644Heap Sort2781
645Level order Traversal in Spiral Form2775
646Palindromic Substrings Leetcode Solution2767
647Find Median from data Stream2761
648Construct BST from given Preorder Traversal2758
649Merge K Sorted Arrays and Print Sorted Output2753
650Palindrome Permutation2751
651Pair with given product2750
652All Unique Triplets that Sum up to a Given Value2749
653Word Pattern2744
654Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2736
655Maximize Sum of Array after K Negations Leetcode Solution2727
656Find all triplets with zero sum2727
657Find First and Last Position of Element in Sorted Array LeetCode Solution2726
658Print Fibonacci sequence using 2 variables2716
659Find whether a subarray is in form of a mountain or not2715
660Validate Binary Search Tree2715
661Maximum Frequency Stack Leetcode Solution2705
662Find all pairs (a, b) in an array such that a % b = k2704
663Huffman Coding2701
664Count Distinct Elements in Every Window of Size K2699
665Bubble sort using two Stacks2694
666Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2694
667Convert Sorted List to Binary Search Tree2691
668Queries on Probability of Even or Odd Number in given Ranges2687
669Minimum time required to rot all oranges2686
670Add two numbers2685
671Partition Problem2685
672Isomorphic Strings LeetCode Solution2682
673Counting Bits2680
674Longest Subarray Having Count of 1s One More than Count of 0s2679
675Find four elements that sum to a given value (Hashmap)2677
676Length of Longest Fibonacci Subsequence2673
677How to Efficiently Implement k Stacks in a Single Array?2671
678Split Array Into Consecutive Subsequences2670
679Sort 0s 1s and 2s in an Array2670
680Largest Sum Contiguous Subarray2669
681Binary Tree Right Side View LeetCode Solution2666
682Detect Capital Leetcode Solution2662
683Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2656
684Rotate Array2645
685Range Sum Query 2D – Immutable LeetCode Solution2644
686Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2642
687Print all subarrays with 0 sum2637
688Remove brackets from an algebraic string containing + and – operators2637
689Count Good Nodes in Binary Tree LeetCode Solution2636
690Minimum Swaps to Group All 1’s Together Leetcode Solution2636
691Populating Next Right Pointers in Each Node Leetcode Solution2633
692Remove Palindromic Subsequences Leetcode Solution2633
693Partition to K Equal Sum Subsets Leetcode Solution2630
694Count ways to reach the nth stair using step 1, 2 or 32626
695Populating Next Right Pointers in Each Node2623
696Binary Tree to Binary Search Tree Conversion2621
697Merge Two Sorted Lists Leetcode2620
698String comparison containing wildcards2616
699Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2608
700Find pairs with given sum such that elements of pair are in different rows2608
701Arithmetic Slices II – Subsequence LeetCode Solution2605
702Maximum Number of Chocolates to be Distributed Equally Among k Students2587
703Minimum Sum Path in a Triangle2583
704Happy Number2581
705Alien Dictionary2572
706Check if a Linked list of Strings form a Palindrome2570
707Concatenation of Array LeetCode Solution2569
708Queue Reconstruction by Height2569
709Web Crawler LeetCode Solution2567
710Inorder Successor of a node in Binary Tree2563
711Partition Equal Subset Sum2563
712Find Duplicate Subtrees2558
713Topological Sorting2550
714Contiguous Array Leetcode2549
715Difference Array | Range update query in O(1)2547
716Breadth First Search (BFS) for a Graph2545
717Find All Pairs With a Given Difference2542
718Swap Kth Node from beginning with Kth Node from End2541
719Increasing Subsequence of Length three with Maximum Product2540
720Check if String Follows Order of Characters by a Pattern or not2533
721Root to Leaf path with target sum Leetcode Solutions2524
722Remove duplicates from sorted array2517
723Longest Common Prefix Using Binary Search II2517
724Reverse Nodes in K-Group2513
725Elements Appear more than N/K times in Array2509
726Maximum Product Subarray II2507
727Maximum Distance in Array2499
728Container with Most Water2494
729Minimum Number of Arrows to Burst Balloons LeetCode Solution2493
730Minimum Swaps to Make Strings Equal Leetcode Solution2491
731Climbing stairs2488
732Count Minimum Steps to Get the given Array2480
733Sum Root to Leaf Numbers LeetCode Solution2478
734An Interesting Method to generate Binary Numbers from 1 to n2471
735Parallel Courses II LeetCode Solution2470
736Substring With Concatenation Of All Words2468
737Finding K closest element2467
738Check if all levels of two Binary Tree are anagrams or not2464
739Symmetric Tree2463
740Pancake Sorting2461
741Delete Nodes and Return Forest Leetcode Solution2458
742Longest Increasing Subsequence2457
743Deletion in a Binary Tree2454
744Score of Parenthesis LeetCode Solution2451
745Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2450
746Delete Nth node from the end of the given linked list2448
747Minimum Cost to Move Chips to The Same Position LeetCode Solution2443
748Given a binary tree, how do you remove all the half nodes?2443
749Boundary Traversal of binary tree2437
750Iterative Depth First Traversal of Graph2435
751Find the first repeating element in an array of integers2434
752MiniMax Algorithm2433
753Linked List Cycle2426
754Sort Array by Increasing Frequency Leetcode Solution2425
755Merge K Sorted Linked Lists2425
756Union and Intersection of two Linked Lists2422
757Non-overlapping sum of two sets2422
758Find K Closest Elements LeetCode Solution2419
759Kill Process LeetCode Solution2417
760Longest Common Prefix Word by Word Matching2416
761Minimum Size Subarray Sum2414
762Count pairs from two linked lists whose sum is equal to a given value2413
763Iterative Preorder Traversal2408
764Construct Binary Tree from given Parent Array representation2407
765New 21 Game2402
766Rearrange an Array Such that arr[i] is equal to i2400
767Find Maximum of Minimum for Every Window Size in a Given Array2400
768Level of Each node in a Tree from source node2399
769Verify Preorder Serialization of a Binary Tree2398
770Minimum Remove to Make Valid Parentheses LeetCode Solution2393
771Level order traversal using two Queues2388
772Check if a queue can be sorted into another queue using a stack2384
773Nested List Weight Sum II LeetCode Solution2383
774BFS vs DFS for Binary Tree2377
775Reservoir Sampling2373
776Merging Intervals2371
777Find the Difference Leetcode Solution2369
778Valid Anagrams2361
779Maximum Product Subarray2360
780Maximum size subarray sum equals k2359
781Matrix Chain Multiplication2356
782Range LCM Queries2354
783Remove Duplicates from Sorted List II2351
784Reorder Array Using Given Indexes2349
785Flatten Binary Tree to Linked List LeetCode Solution2348
786Palindrome Partitioning2347
787Smallest Range II Leetcode Solution2344
788Print a Binary Tree in Vertical Order2342
789K maximum sums of overlapping contiguous sub-arrays2338
790Sum of f(a[i], a[j]) over all pairs in an array of n integers2336
791Super Ugly Number2333
792Vertical sum in a given binary tree2332
793Defanging an IP Address LeetCode Solution2325
794Friends Of Appropriate Ages LeetCode Solution2319
795Valid Triangle Number LeetCode Solution2308
796Balanced Binary Tree2308
797Check if Two Expressions With Brackets are Same2307
798Maximum difference between two elements such as larger element comes after smaller2304
799Missing Number2298
800Check if any two intervals overlap among a given set of intervals2297
801The Painter’s Partition Problem2297
802Minimum Distance Between BST Nodes Leetcode Solution2294
803Flatten 2D Vector LeetCode Solution2292
804Find subarray with given sum (Handles Negative Numbers)2292
805Create Maximum Number2292
806Number Of Longest Increasing Subsequence2291
807Largest Submatrix With Rearrangements LeetCode Solution2288
808Find Three Element From Different Three Arrays Such That a + b + c = sum2284
809Employee Importance LeetCode Solution2283
810Find Maximum Sum Possible Equal Sum of Three Stacks2281
811Find K Length Subarray of Maximum Average2281
812Check if a given array can represent Preorder Traversal of Binary Search Tree2279
813Lowest Common Ancestor2279
814Count number of triplets with product equal to given number2276
815Unique Binary Search Trees LeetCode Solution2273
816Check if two nodes are on the same path in a Tree2259
817Find Peak Element2259
818Peak Index in a Mountain Array LeetCode Solution2257
819Kth Smallest Element in a Sorted Matrix LeetCode Solution2257
820Closest Leaf in a Binary Tree LeetCode Solution2256
821Minimum insertions to form a palindrome with permutations allowed2251
822Array Nesting Leetcode Solution2250
823Valid Triangle Number LeetCode Solution2245
824Third Maximum Number Leetcode Solution2241
825Maximum subsequence sum such that no three are consecutive2241
826Find distance between two nodes of a Binary Tree2241
827Find Common Characters Leetcode Solution2238
828Find Smallest Range Containing Elements from k Lists2236
829Hamming Distance2236
830Check Completeness of a Binary Tree LeetCode Solution2235
831Largest BST Subtree LeetCode Solution2234
832Iterative Postorder Traversal Using Two Stacks2229
833Distinct Subsequences2226
834Print all triplets in sorted array that form AP2224
835First Bad Version2224
836Find Sum of all unique sub-array sum for a given array2222
837Print All Distinct Elements of a Given Integer Array2219
838Products of ranges in an array2218
839Sorting a K Sorted Array2218
840Newman-Conway Sequence2216
841Arrange given numbers to form the biggest number2214
842Sort Elements by Frequency II2213
843Merging Two Sorted Arrays2213
844Valid Parenthesis String2212
845Maximum number of segments of lengths a, b and c2209
846Largest divisible pairs subset2208
847Find Element Using Binary Search in Sorted Array2207
848Number of siblings of a given Node in n-ary Tree2204
849Tree Traversal (Preorder, Inorder & Postorder)2202
850Bottom View of a Binary Tree2197
851Longest Palindromic Subsequence2196
852Path Sum2190
853Stone Game IV LeetCode Solution2177
854Find the largest multiple of 32177
855Lower Case To Upper Case2176
856Largest subarray with equal number of 0s and 1s2171
857Diagonal Traversal of Binary Tree2168
858Compare Strings by Frequency of the Smallest Character Leetcode Solution2165
859Print Right View of a Binary Tree2164
860Four Elements that Sum to Given2164
861Merge Two Sorted Arrays2161
862Contiguous Array2160
863Binary array after M range toggle operations2157
864Range Sum Query using Sparse Table2156
865Count and Say2156
866Stone Game IV LeetCode Solution2155
867Shuffle an Array2155
868Maximum difference between frequency of two elements such that element having greater frequency is also greater2152
869Segment Tree2151
870Subset Sum Problem in O(sum) space2142
871Median of Two Sorted Arrays2142
872Unique Binary Search Trees2138
873Isomorphic Strings2138
874Permutations of a Given String Using STL2136
875Encoded String With Shortest Length LeetCode Solution2132
876Find Largest d in Array such that a + b + c = d2131
877Longest Bitonic Subsequence2130
878Averages of Levels in Binary Tree2125
879Find Nth Node2119
880Next Greater Element in an Array2117
881Red-Black Tree Introduction2112
882Maximum Sum of 3 Non-Overlapping Subarrays2112
883Valid Number2112
884Infix to Postfix2111
885Closest Binary Search Tree Value Leetcode Solution2104
886Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2104
887Minimum Swaps To Make Sequences Increasing LeetCode Solution2103
888Height of a generic tree from parent array2098
889Maximum Product Subarray2098
890Find unique character in a string2098
891Friends Pairing Problem2095
892Transform a BST to Greater sum Tree2093
893Count Primes in Ranges2088
894Orderly Queue LeetCode Solution2087
895Trapping Rain Water II LeetCode Solution2075
896Maximum Population Year LeetCode Solution2074
897Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2071
898Valid Perfect Square LeetCode Solution2067
899Binary Tree Longest Consecutive Sequence LeetCode Solution2063
900Bold Words in String LeetCode Solution2062
901Write a function to get the intersection point of two Linked Lists2057
902Serialize and Deserialize Binary Tree2052
903Binary Search Tree Delete Operation2050
904Range Minimum Query (Square Root Decomposition and Sparse Table)2049
905Minimum sum of squares of character counts in a given string after removing k characters2049
906Shuffle a given Array2043
907Sentence Screen Fitting LeetCode Solution2040
908Insert Delete GetRandom2034
909The Number of Weak Characters in the Game LeetCode Solution2031
910Kth Smallest Number in Multiplication Table Leetcode Solution2031
911Diameter of N-Ary Tree LeetCode Solution2029
912Swap Nodes In Pairs2025
913Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2024
914Next greater element2019
915Convert BST into a Min-Heap without using array2016
916Lowest Common Ancestor in Binary Search Tree2009
917Reorganize String2009
918K’th Largest Element in BST when modification to BST is not allowed2005
919Integer to Roman1997
920Maximum Product Subarray1991
921Find Minimum In Rotated Sorted Array1990
922Edit Distance1981
923Array Queries for multiply replacements and product1979
924Advantages of BST over Hash Table1978
925Next Greater Element II LeetCode Solution1977
926Total Hamming Distance LeetCode Solution1971
927Queries on XOR of greatest odd divisor of the range1964
928Constant time range add operation on an array1961
929Koko Eating Bananas LeetCode Solution1960
930Check if an Array is Stack Sortable1956
931Serialize and Deserialize Binary Tree LeetCode Solution1950
932Longest Increasing Consecutive Subsequence1950
933Find the smallest binary digit multiple of given number1948
934Best Meeting Point LeetCode Solution1945
935Print n terms of Newman-Conway Sequence1943
936Maximum Sum Increasing Subsequence1943
937Level Order Traversal of Binary Tree1942
938Clone a Binary Tree with Random Pointers1939
939Power of Two1937
940K’th Largest element in BST using constant extra space1933
941Moving Stones Until Consecutive Leetcode Solution1930
942Image Overlap LeetCode Solution1928
943Reverse a Path in BST using Queue1924
944Numbers with prime frequencies greater than or equal to k1923
945Range Queries for Longest Correct Bracket Subsequence1921
946Design Underground System Leetcode Solution1920
947Write Code to Determine if Two Trees are Identical1919
948Number of Orders in the Backlog Leetcode Solution1918
949Count and Toggle Queries on a Binary Array1911
950Greatest Sum Divisible by Three LeetCode Solution1910
951Valid Tic-Tac-Toe State LeetCode Solution1910
952Check if X can give change to every person in the Queue1907
953A program to check if a binary tree is BST or not1905
954Print Next Greater Number of Q queries1901
955Find the node with minimum value in a Binary Search Tree1900
956Design Add and Search Words Data Structure LeetCode Solution1896
957Insert into a Sorted Circular Linked List LeetCode Solution1892
958Find minimum number of merge operations to make an array palindrome1891
959Closest Binary Search Tree Value II LeetCode Solution1888
960Form minimum number from given sequence1888
961Check for Palindrome after every character replacement Query1887
962Factorial Trailing Zeroes LeetCode Solution1885
963Check if each internal node of a BST has exactly one child1885
964Count the Pairs at Same Distance as in English Alphabets1881
965Merge two BSTs with limited extra space1879
966Number of elements less than or equal to a given number in a given subarray1878
967Maximum Array from Two given Arrays Keeping Order Same1876
968Queries for Decimal Values of Subarrays of a Binary Array1874
969Largest Plus Sign Leetcode Solution1870
970Collect maximum points in a grid using two traversals1864
971Merge Sort1864
972Maximum difference between first and last indexes of an element in array1854
973Dividing Array into Pairs With Sum Divisible by K1853
974Group Shifted Strings Leetcode Solution1846
975Priority Queue1835
976Merge Sorted Array1833
977Longest Substring Without Repeating Characters Leetcode Solution1828
978Print modified array after multiple array range increment operations1825
979Count even length binary sequences with same sum of first and second half bits1824
980Graph Cloning1817
981Cutting a Rod1808
982Print Ancestors of a Given Binary Tree Node Without Recursion1800
983Form Minimum Number From Given Sequence1794
984Swim in Rising Water LeetCode Solution1785
985Find maximum average subarray of k length1785
986Kth Smallest Element in a BST1785
987Count Pairs Whose Products Exist in Array1783
988Excel Sheet Column Number LeetCode Solution1779
989Minimum Moves to Equal Array Elements LeetCode Solution1777
990Unique Paths II1767
991Excel Sheet Column Title LeetCode Solution1763
992Binary Search Tree1762
993Guess The Word1761
994Decrease Elements To Make Array Zigzag LeetCode Solution1757
995Palindrome Partitioning1756
996Print all Possible Ways to Break a String in Bracket Form1754
997K Empty Slots1753
998Check given array of size n can represent BST of n levels or not1749
999Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1748
1000Binary Search Tree Search and Insertion1747
1001Longest Common Prefix using Character by Character Matching1745
1002Regular Expression Matching1740
1003Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1736
1004Sorted Array to Balanced BST1731
1005How to print maximum number of A’s using given four keys1727
1006Sum of Left Leaves LeetCode Solution1712
1007Find postorder traversal of BST from preorder traversal1702
1008Maximum weight transformation of a given string1682
1009Construct Complete Binary Tree from its Linked List Representation1682
1010Queries for Number of Distinct Elements in a Subarray1672
1011Find the Town Judge LeetCode Solution1653
1012Iterative method to find ancestors of a given binary tree1649
1013Symmetric Tree LeetCode Solution Leetcode Solution1648
1014Maximum Depth Of Binary Tree1648
1015Binary Tree to Binary Search Tree Conversion using STL set1640
1016Shortest Unsorted Continuous Subarray LeetCode Solution1639
1017Random Pick Index LeetCode Solution1626
1018Data Structure Designing1623
1019Search in Sorted Rotated Array1614
1020Find Maximum Depth of Nested Parenthesis in a String1595
1021Search an Element in Sorted Rotated Array1577
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1554
1023Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1547
1024Kth Smallest Product of Two Sorted Arrays LeetCode Solution1542
1025Next Greater Element I Leetcode Solution1500
1026Maximum Binary Tree1486
1027Print Maximum Length Chain of Pairs1476
1028Flatten Binary Tree to Linked List LeetCode Solution1462
1029Find k-th smallest element in BST (Order Statistics in BST)1447
1030Peeking Iterator LeetCode Solution1423
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1410
Translate »