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 Solution43267
2Maximum occurring character in a string19608
3Plus One Leetcode Solution19021
4Valid Parentheses LeetCode Solution18963
53Sum Leetcode Solution16889
6Merge Sorted Arrays Leetcode Solution15034
7First Repeating Element15004
8Single Number Leetcode Solution14682
9Count Primes Leetcode Solutions14463
10Pow(x, n) Leetcode Solution14081
11Sqrt(x) Leetcode Solution13909
12Meeting Rooms II LeetCode Solution13029
13Concatenation of Array LeetCode Solution12611
14Roman to Integer Leetcode Solution11786
15Valid Palindrome Leetcode Solution11671
16Search Insert Position Leetcode Solution11607
17Contains Duplicate II Leetcode Solution11603
18Palindrome Number LeetCode Solution11425
19Remove Duplicates from Sorted Array Leetcode Solution11211
20Jump Game Leetcode Solution11040
21Reverse Vowels of a String Leetcode Solution11012
22Intersection of Two Arrays II Leetcode Solution10908
23Longest Substring Without Repeating Characters LeetCode Solution10815
24Number of Good Pairs Leetcode Solution10765
25Spiral Matrix LeetCode Solution10688
26Kids With the Greatest Number of Candies Leetcode Solution10639
27House Robber Leetcode Solution10545
28Add Binary Leetcode Solution10468
29Maximum Subarray Leetcode Solution10097
30Number Of 1 bits9906
31Find the Maximum Repeating Number in Array9844
32Text Justification LeetCode Solution9688
33Jewels and Stones Leetcode Solution9606
34Move Zeroes LeetCode Solution9582
35Min Stack Leetcode Solution9457
36Power of Two Leetcode Solution9430
37Longest Palindromic Substring LeetCode Solution9386
38Permutations Leetcode Solution9244
39Shuffle String Leetcode Solution9244
40Third Maximum Number Leetcode Solution9134
41Word Search Leetcode Solution9095
42Find All Numbers Disappeared in an Array Leetcode Solution9081
43Daily Temperatures Leetcode Solution9049
44Next Permutation Leetcode Solution9031
45Evaluation of Postfix Expression9016
46Median of Two Sorted Arrays LeetCode Solution9001
47Search in Rotated Sorted Array Leetcode Solution8970
48Number of Islands LeetCode Solution8897
49Kth Missing Positive Number Leetcode Solution8838
50Maximum Profit in Job Scheduling Leetcode Solution8815
51Longest Common Prefix Leetcode Solution8810
52Next Greater Element I Leetcode Solution8735
53Frog Jump Leetcode Solution8620
54Find Minimum Distance Between Two Numbers in an Array8479
55Valid Anagram Leetcode Solution8449
56Rotate Image LeetCode Solution8390
57Running Sum of 1d Array Leetcode Solution8388
58Multiply Strings Leetcode Solution8339
59Shuffle the Array Leetcode Solution8328
60Can Place Flowers LeetCode Solution8284
61Combination Sum Leetcode Solution8274
62Count and Say Leetcode Solution8246
63House Robber II Leetcode Solution8229
643Sum Closest LeetCode Solution8201
65Bulb Switcher LeetCode Solution8173
66Excel Sheet Column Title Leetcode Solution7982
67Best Time to Buy and Sell Stock LeetCode Solution7950
68Koko Eating Bananas Leetcode Solution7950
69Isomorphic Strings Leetcode Solution7915
70Happy Number Leetcode Solution7906
71Subarray and Subsequence7897
72Majority Element Leetcode Solution7821
73Count Pairs With Given Sum7798
74Integer to Roman Leetcode Solution7784
75Missing Number Leetcode Solution7769
76Product of array except self7736
77Strobogrammatic Number LeetCode Solution7690
78Rotate String LeetCode Solution7689
79Candy LeetCode Solution7681
80Reverse String Without Temporary Variable7598
81Is Subsequence Leetcode Solution7551
82A Product Array Puzzle7524
83Find the Difference Leetcode Solution7518
84Find the Duplicate Number LeetCode Solution7467
85Largest Number Leetcode Solution7451
86Find Common Characters Leetcode Solution7431
87Expression Evaluation7431
88Binary Search LeetCode Solution7430
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7367
90String to Integer (atoi) LeetCode Solution7295
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7286
92Subset Leetcode7224
93Set Matrix Zeroes7182
94Summary Ranges Leetcode Solution7173
95Sort Characters By Frequency LeetCode Solution7123
96Rabin Karp Algorithm7106
97Word Pattern LeetCode Solution7091
98Balanced Binary Tree Leetcode Solution7089
99Find the Town Judge Leetcode Solution7068
100Unique Paths Leetcode Solution7006
101Arranging Coins Leetcode Solution6996
102Find the Winner of the Circular Game LeetCode Solution6981
103String Compression LeetCode Solution6894
104Rearrange Positive and Negative Numbers Alternatively in Array6884
105Asteroid Collision LeetCode Solution6852
106Repeated Substring Pattern LeetCode Solution6801
107Group Anagrams LeetCode Solution6791
108Smallest window in a string containing all characters of another string6743
109Postfix to Infix Conversion6738
110Page Replacement Algorithms in Operating Systems6724
111Sort Colors LeetCode Solution6718
112Matrix Chain Multiplication using Dynamic Programming6662
113Best Time to Buy and Sell Stock  II Leetcode Solution6646
114Sort Array By Parity LeetCode Solution6582
115Zigzag Conversion LeetCode Solution6549
116Divide Two Integers Leetcode Solution6508
117Valid Palindrome II Leetcode Solution6483
118Generate Parentheses Leetcode Solution6468
119Kth largest element in an Array Leetcode Solutions6464
120Sum of minimum and maximum elements of all subarrays of size k6458
121Reverse Integer Leetcode Solution6392
122Remove Duplicates from Sorted Array II Leetcode Solution6374
123Assign Cookies Leetcode Solution6373
124Product of Array Except Self LeetCode Solution6352
125Length of Last Word Leetcode Solution6315
126Bus Routes Leetcode Solution6287
127Decode String Leetcode Solution6273
128Merge Two Sorted Lists Leetcode Solutions6257
129Number of Provinces Leetcode Solution6245
130Pascal Triangle Leetcode6242
131H-Index Leetcode Solution6238
132Find the Row with Maximum Number of 1’s6219
133Linked List Cycle II LeetCode Solution6180
134Convert array into Zig-Zag fashion6154
135Minimum Cost For Tickets Leetcode Solution6147
136Minimum Steps to reach target by a Knight6143
137Defanging an IP Address Leetcode Solution6114
138Optimal Account Balancing LeetCode Solution6112
139Prefix to Infix Conversion6102
140Employee Free Time LeetCode Solution6099
141Pascal’s Triangle II Leetcode Solution6004
142Find First and Last Position of Element in Sorted Array Leetcode Solution5974
143First element occurring k times in an array5974
144Increasing Triplet Subsequence LeetCode Solution5957
145Build Array From Permutation Leetcode Solution5935
146Implementation of Deque using Doubly Linked List5911
147Merge Sorted Array LeetCode Solution5907
148Majority Element II Leetcode Solution5892
149Island Perimeter Leetcode Solution5870
150Robot Room Cleaner Leetcode Solution5869
151Bellman Ford Algorithm5836
152Max Consecutive Ones Leetcode Solution5801
153Find Pair with Given Difference5783
154Swap Nodes in Pairs Leetcode Solutions5782
155Check if the Elements of an Array are Consecutive5763
156OSI Model5747
157Guess Number Higher or Lower LeetCode Solution5738
158K-th Smallest Element in a Sorted Matrix5738
159Add Two Numbers II Leetcode Solution5704
160Set Matrix Zeroes Leetcode Solution5703
161Fibonacci Number LeetCode Solution5698
162KMP Algorithm5689
163First negative integer in every window of size k5674
164Find the Missing Number5663
165Subarray Sum Equals K LeetCode Solution5662
166Design Parking System Leetcode Solution5661
167Lemonade Change Leetcode Solution5645
168Trapping Rain Water Leetcode Solution5644
169Delete middle element of a stack5621
170First Unique Character in a String LeetCode Solution5600
171Word Ladder LeetCode Solution5587
172Coin Change 2 Leetcode Solution5580
173Subarray Product Less Than K LeetCode Solution5576
174Find All Duplicates in an Array LeetCode Solution5569
175String Compression5559
176Length of the largest subarray with contiguous elements5555
177Monotonic Array LeetCode Solution5543
178Capacity To Ship Packages Within D Days Leetcode Solution5538
179Last Stone Weight5535
180Subarray with Given Sum5529
181Palindrome Linked List Leetcode Solution5525
182Find Smallest Missing Number in a Sorted Array5460
183Repeated Substring Pattern5453
184Form Minimum Number from Given Sequence of D’s and I’s5444
185Combinations Leetcode Solution5424
186Remove Duplicates from Sorted List II LeetCode Solution5412
18701 Matrix LeetCode Solution5412
188Single Element in a Sorted Array LeetCode Solution5385
189Prefix to Postfix Conversion5360
190Reverse Words in a String III LeetCode Solution5345
191Valid Perfect Square Leetcode Solution5340
192Continuous Subarray Sum LeetCode Solution5339
193Same Tree LeetCode Solution5314
194Iterative Implementation of Quick Sort5312
195Break a Palindrome LeetCode Solution5280
196Combination Sum5280
197Remove Linked List Elements Leetcode Solution5250
198Merge k Sorted Lists Leetcode Solution5248
199Leetcode Permutations5227
200Slowest Key Leetcode Solution5224
201Relative Ranks Leetcode Solution5203
202Backspace String Compare5194
203Top K Frequent Elements LeetCode Solution5173
204Rotate List Leetcode Solution5156
205Maximum Product of Three Numbers LeetCode Solution5148
206Insert Delete GetRandom O(1) Leetcode Solution5145
207Find Peak Element LeetCode Solution5124
208Find the Duplicate Element5117
209Container With Most Water LeetCode Solution5110
210The K Weakest Rows in a Matrix Leetcode Solution5104
211Printing brackets in Matrix Chain Multiplication Problem5060
212Contains Duplicate LeetCode Solution5050
213Longest Common Subsequence LeetCode Solution5041
214Cuckoo sequence program5039
215Second Most Repeated Word in a Sequence5020
216Kth Largest Element in a Stream Leetcode Solution5018
217Palindrome Number5006
218Remove All Occurrences of a Substring LeetCode Solution4984
219Make The String Great Leetcode Solution4974
220Relative Sort Array Leetcode Solution4968
221Subarray Sum Equals k4965
222Permutation in String Leetcode Solution4964
223Rearrange given Array in Maximum Minimum Form4954
224Max Area of Island4948
225Unique Paths II Leetcode Solution4942
226Convert a Number to Hexadecimal Leetcode Solution4918
227Generate all Binary Strings Without Consecutive 1’s4914
228Delete Node in a Linked List Leetcode Solution4907
229Arithmetic Expression Evaluation4903
230Find Leaders in an Array4903
231Target Sum4887
232Construct Binary Tree from Given Inorder and Preorder Traversals4877
233Check If Two String Arrays are Equivalent Leetcode Solution4872
234N-Queens LeetCode Solution4858
235Time Based Key-Value Store LeetCode Solution4858
236Moving Average from Data Stream Leetcode Solution4846
237Scramble String4840
238Number of Dice Rolls With Target Sum LeetCode Solution4819
239Count Good Nodes in Binary Tree Leetcode Solution4819
240LRU Cache LeetCode Solution4811
241Next Permutation4808
242Letter Combinations of a Phone Number4806
243Given two unsorted arrays find all pairs whose sum is x4789
244Find N Unique Integers Sum up to Zero Leetcode Solution4786
245Check If N and Its Double Exist Leetcode Solution4780
246Stone Game LeetCode4751
247Find Triplet in Array With a Given Sum4751
248Number of Steps to Reduce a Number to Zero Leetcode Solution4723
249Flipping an Image LeetCode Solution4717
250Minimum swaps required to bring all elements less than or equal to k together4712
251Prim’s Algorithm4704
252Reverse Only Letters LeetCode Solution4698
253Stock Buy Sell to Maximize Profit4669
254Remove Minimum Characters so that Two Strings Become Anagrams4665
255Min Cost Climbing Stairs LeetCode Solution4661
256Find The Duplicate Number4650
257Top K Frequent Elements4649
258Minimum Knight Moves LeetCode Solution4638
259Student Attendance Record I Leetcode Solution4638
260Min Stack4609
261To Lower Case Leetcode Solution4582
262Smallest Positive Number Missing in an Unsorted Array4571
263The kth Factor of n Leetcode Solution4568
264Minimum Operations to convert X to Y4565
265License Key Formatting Leetcode Solution4543
266Reverse words in a string4541
267Maximum Sum Increasing Subsequence4539
268Maximum Subarray Sum using Divide and Conquer4532
269Single Number4523
270Maximum Population Year LeetCode Solution4503
271Search Suggestions System LeetCode Solution4471
272Remove Nth Node From End of List Leetcode Solution4455
273Top K Frequent Words LeetCode Solution4451
274Longest Common Subsequence4442
275Special Array With X Elements Greater Than or Equal X Leetcode Solution4440
276Reformat Date LeetCode Solution4438
277Find Words That Can Be Formed by Characters Leetcode Solution4428
278Find the Number Occurring Odd Number of Times in an Array4426
279Sum of Subarray Ranges Leetcode Solution4423
280Boolean Parenthesization Problem4407
281Minimum Path Sum Leetcode Solution4380
282Maximum Depth of Binary Tree Leetcode Solution4362
283Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4360
284BFS for Disconnected Graph4355
285Reveal Cards In Increasing Order Leetcode Solution4349
286N-th Tribonacci Number Leetcode Solution4342
287Intersection of Two Arrays4313
288Reverse individual words4311
289House Robber4296
290Diagonal Traverse LeetCode Solution4289
291Minimum Characters to be Added at Front to Make String Palindrome4289
292Last Stone Weight II LeetCode Solution4280
293Evaluate Division4277
294Remove Duplicates from Sorted List LeetCode Solution4275
295Maximize Distance to Closest Person LeetCode Solution4270
296Best Time to Buy and Sell Stock III Leetcode Solution4266
297Find any one of the multiple repeating elements in read only array4256
298Binary Tree Inorder Traversal LeetCode Solution4250
299Design A Leaderboard Leetcode Solution4246
300Find if Path Exists in Graph Leetcode Solution4244
301Count Number of Occurrences in a Sorted Array4237
302Count of index pairs with equal elements in an array4231
303Sort Elements by Frequency of Occurrences4229
304Length of Longest valid Substring4219
305Maximum Size Subarray Sum Equals k Leetcode Solution4214
306Most Frequent Element in an Array4187
307Range Sum Query 2D – Immutable Leetcode Solution4178
308Minimum number of Merge Operations to make an Array Palindrome4177
309Reverse Nodes in k-Group LeetCode Solution4164
310Implement a stack using single queue4163
311Brightest Position on Street LeetCode Solution4141
312Mobile Numeric Keypad Problem4137
313Find the Closest Palindrome number4130
314Sudoku Solver4127
315Find Leaves of Binary Tree LeetCode Solution4123
316Remove All Ones With Row and Column Flips Leetcode Solution4118
317Reverse Bits4101
318Find Index of Closing Bracket for a Given Opening Bracket in an Expression4099
319Spiral Matrix II Leetcode Solution4090
320Invalid Transactions LeetCode Solution4086
321Partition Array Into Three Parts With Equal Sum Leetcode Solution4082
322Special Positions in a Binary Matrix Leetcode Solution4077
323Symmetric Tree Leetcode Solution4058
324Shortest Word Distance Leetcode Solution4056
325Split Linked List in Parts Leetcode Solution4043
326Sort Array By Parity II Leetcode Solution4043
327Paint House LeetCode Solution4042
328Maximum Subarray4041
329Diagonal Traversal LeetCode Solution4021
330Arrange given Numbers to Form the Biggest Number II4018
331One Edit Distance LeetCode Solution4010
332Find Duplicates in an Array in Most Efficient Way3993
333Remove Invalid Parentheses Leetcode Solution3984
334Largest Rectangle in Histogram LeetCode Solution3982
335Jump Game3972
336Rank Transform of an Array Leetcode Solution3969
337Binary Tree Zigzag Level Order Traversal LeetCode Solution3965
338Round Robin Scheduling3963
339Dijkstra Algorithm3961
340Unique Paths3958
341Hamming Distance Leetcode Solution3951
342Partition Labels LeetCode Solution3950
343Minimum Moves to Equal Array Elements Leetcode Solution3936
344Alien Dictionary LeetCode Solution3935
345Maximal Square3918
346Lowest Common Ancestor of a Binary Tree Leetcode Solution3904
347Construct BST from its given Level Order Traversal3904
348String Matching in an Array Leetcode Solution3902
349Range Sum of BST LeetCode Solution3901
350Find Winner on a Tic Tac Toe Game Leetcode Solution3900
351Tug of War3894
352Bitwise AND of Numbers Range LeetCode Solution3893
353Minimum operation to make all elements equal in array3891
354Next Permutation LeetCode Solution3886
355The Celebrity Problem3880
356Minimum Depth of Binary Tree Leetcode Solution3878
357Minimum Time to Collect All Apples in a Tree LeetCode Solution3877
358Least Number of Unique Integers after K Removals Leetcode Solution3874
359Pair of Positive Negative Values in an Array3856
360Longest Common Prefix using Trie3853
361Merge Two Sorted Linked Lists3849
362Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3836
363Maximum Circular Subarray Sum3834
364Smallest Subarray with k Distinct Numbers3829
365Given an Array of Pairs Find all Symmetric Pairs in it3827
366Minimum Time Visiting All Points Leetcode Solution3825
367Postfix to Prefix Conversion3824
368Unique Paths III LeetCode Solution3820
369Check whether Strings are K Distance Apart or Not3820
370Transpose Graph3816
371Minimum Cost to Hire K Workers3815
372K Empty Slots LeetCode3813
373Validate Stack Sequences LeetCode Solution3804
374Clone Graph LeetCode Solution3802
375Robot Bounded In Circle LeetCode Solution3798
376Count of Triplets With Sum Less than Given Value3797
377Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3794
378Find minimum difference between any two elements3785
379Next Greater Element III LeetCode Solution3783
380Check if a given array contains duplicate elements within k distance from each other3781
381Substring with Concatenation of All Words Leetcode Solution3780
382Ugly Number II LeetCode Solution3771
383Invert Binary Tree LeetCode Solution3769
384Regular Expression Matching Regular Expression Matching LeetCode Solution3764
385Sort a stack using a temporary stack3763
386Implementation of Deque using circular array3759
387Longest Substring with At Most K Distinct Characters LeetCode Solution3757
388Minimize Maximum Pair Sum in Array LeetCode Solution3756
389Kruskal Algorithm3750
390Recursion3742
391Invert Binary Tree LeetCode Solution3740
392Permutation Sequence LeetCode Solution3732
393Non-decreasing Array LeetCode Solution3727
394Graph Valid Tree LeetCode Solution3720
395Design Browser History LeetCode Solution3708
396Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3706
397Sliding Window Technique3703
398LRU Cache Implementation3701
399Find the subarray with least average3699
400Word Search3699
401Missing Element in Sorted Array LeetCode Solution3695
402Kth Smallest Element in a BST Leetcode Solution3694
403Toeplitz Matrix3686
404Longest subsequence such that difference between adjacents is one3685
405Convert Sorted Array to Binary Search Tree LeetCode Solutions3684
406Stack Permutations (Check if an array is stack permutation of other)3684
407Find the Smallest Divisor given a Threshold Leetcode Solution3679
408Longest subarray not having more than K distinct elements3679
409Find duplicates in a given array when elements are not limited to a range3676
410Partition List Leetcode Solution3670
411Find the First and Second Smallest Elements3670
412Path With Maximum Minimum Value LeetCode Solution3669
4133 Sum3664
414Number of Islands II LeetCode Solution3654
415Common elements in all rows of a given matrix3653
416Stone Game II Leetcode3653
417Find Top K (or Most Frequent) Numbers in a Stream3652
418K Closest Points to Origin Leetcode Solution3645
419Max stack3641
420Find Maximum Level sum in Binary Tree3638
421First Circular Tour to Visit all the Petrol Bunks3636
422Queries for counts of array elements with values in given range3634
423Number Complement Leetcode Solution3631
424Sequences of given length where every element is more than or equal to twice of previous3626
425Combination Sum IV LeetCode Solution3624
426Number of Smaller Elements on Right Side3622
427Maximum Number of Occurrences of a Substring Leetcode Solution3619
428Integer Break LeetCode Solution3618
429Search a 2D Matrix II Leetcode Solution3617
430Snakes and Ladders LeetCode Solution3615
431Minesweeper LeetCode Solution3614
432Top View of Binary Tree3614
433Priority Queue using doubly linked list3610
434Nth Catalan Number3591
435LRU Cache Leetcode Solution3590
436Painting Fence Algorithm3588
437Find the Peak Element from an Array3588
438Can Make Arithmetic Progression From Sequence Leetcode Solution3580
439Odd Even Linked List Leetcode Solution3579
440Sort elements by frequency3571
441Longest Palindrome can be Formed by Removing or Rearranging Characters3571
442Find Minimum in Rotated Sorted Array II LeetCode Solution3564
443Insert Interval Leetcode Solution3564
444High Five LeetCode Solution3562
445Check if Two given Strings are Isomorphic to each other3557
446Rearrange array such that even positioned are greater than odd3549
447Flood Fill LeetCode3543
448Maximum Consecutive Numbers Present in an Array3540
449Search in a Binary Search Tree Leetcode Solution3535
450Consecutive Characters LeetCode Solution3532
451Shortest Palindrome3524
452Sliding Window Maximum LeetCode Solution3518
453Distance of nearest cell having 1 in a binary matrix3518
454Design a stack that supports getMin() in O(1) time and O(1) extra space3504
4554Sum3504
456Fibonacci Number LeetCode Solution3499
457Tiling Problem3495
458Expression Contains Redundant Bracket or Not3491
459Move All the Zeros to the End of the Given Array3489
460Count items common to both the lists but with different prices3485
461Spiral Matrix III LeetCode Solution3478
462Minimum Absolute Difference in BST Leetcode Solution3477
463Replace Elements with Greatest Element on Right Side Leetcode Solution3474
464Number of Closed Islands Leetcode Solution3473
465Gold Mine Problem3470
466Find a Peak Element II LeetCode Solution3463
467Kth Non-repeating Character3463
468Check If Array Pairs Are Divisible by k LeetCode Solution3462
469Insert into a Binary Search Tree Leetcode Solution3459
470Decompress Run-Length Encoded List Leetcode Solution3457
471Integer to English words3453
472Queries for GCD of all numbers of an array except elements in a given range3446
473Restore IP Addresses Leetcode Solution3438
474Minimum Path Sum3438
475N queen problem3438
476Evaluate Reverse Polish Notation LeetCode Solution3437
477Trapping Rain Water LeetCode Solution3435
478Longest Common Prefix using Sorting3432
479Coin Change Problem3432
480Balanced Expression with Replacement3427
481Interval Tree3420
482Convert Sorted Array to Binary Search Tree Leetcode Solution3414
483Find All Possible Recipes from Given Supplies LeetCode Solution3413
484Sliding Window Median Leetcode Solution3412
485Sorting array using Stacks3409
486Binary Tree Maximum Path Sum LeetCode Solution3406
487Sort an array according to the order defined by another array3401
488Sort Colors3391
489Cells with Odd Values in a Matrix LeetCode Solution3390
490Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3381
491Majority Element3380
492Best Time to Buy and Sell Stock3376
493Find Pythagorean Triplets from Array3373
494Vertical Order Traversal of Binary Tree LeetCode Solution3370
495Palindrome Substring Queries3370
496Number of Days Between Two Dates LeetCode Solution3367
497Reverse a linked list3365
498Priority Queue in C++3362
499Path Sum II LeetCode Solution3347
500The Stock Span Problem3345
501Subset sum problem3345
502Minimum Number of Taps to Open to Water a Garden LeetCode Solution3344
503Find Median from Data Stream LeetCode Solution3338
504Queue using Stacks3325
505Is Graph Bipartite? LeetCode Solution3322
506Camelcase Matching Leetcode Solution3318
507Largest rectangular sub-matrix whose sum is 03315
508Intersection of Two Linked Lists LeetCode Solution3311
509Sieve of Eratosthenes3306
510Design Hit Counter LeetCode Solution3304
511How to Implement Stack Using Priority Queue or Heap?3304
512Kth ancestor of a node in binary tree3302
513Find the first Repeating Number in a Given Array3302
514Custom Sort String Leetcode Solution3299
515Fibonacci numbers3299
516Pancake Sorting Problem3295
517Different Ways to Add Parentheses Leetcode Solution3293
518Multiplication of Two Matrices3284
519Analyze User Website Visit Pattern LeetCode Solution3282
520Divide Chocolate LeetCode Solution3280
521Longest Increasing Path in a Matrix LeetCode Solution3277
522Shortest Completing Word Leetcode Solution3276
523Path Crossing Leetcode Solution3267
524Scramble String LeetCode Solution3264
525Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3263
526Count Submatrices With All Ones LeetCode Solution3256
527Perfect Squares LeetCode Solution3255
528Count subarrays having total distinct elements same as original array3250
529Find a Fixed Point in a Given Array3250
530Group Anagrams3249
531Monotonic Array Leetcode Solution3247
532Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3247
533Check if Array Contains Contiguous Integers With Duplicates Allowed3246
534Implement Trie (Prefix Tree) Leetcode Solution3234
535Queue based approach for first non-repeating character in a stream3229
536Detect a loop in the Linked List3228
537Shifting Letters LeetCode Solution3217
538Number of Distinct Islands Leetcode Solution3206
539Merge Overlapping Intervals3206
540Minimum Height Trees3206
541Reorder Data in Log Files LeetCode Solution3205
542Construction of Longest Increasing Subsequence (N log N)3200
543How to Create Mergable Stack?3199
544Generate all Binary Strings from Given Pattern3195
545Nearest Exit from Entrance in Maze LeetCode Solution3194
546Champagne Tower LeetCode Solution3190
547Valid Boomerang Leetcode Solution3190
548Race Car LeetCode Solution3184
549Longest Common Prefix using Divide and Conquer3184
550Decode Ways3173
551Implement strStr() LeetCode Solution3171
552Insert Node in the Sorted Linked List3171
553Sort a stack using recursion3170
554Find the Lost Element From a Duplicated Array3170
555Maximum Sum of Non Consecutive Elements3169
556Binary Tree zigzag level order Traversal3164
557Sliding Window Maximum3163
558Maximum Element in an Array which is Increasing and then Decreasing3156
559Find if an Expression has Duplicate Parenthesis or Not3150
560Morris Traversal3148
561First missing positive3148
562Most Stones Removed with Same Row or Column LeetCode Solution3146
563Number of Equivalent Domino Pairs Leetcode Solution3140
564Recover Binary Search Tree3140
565Palindrome Permutation LeetCode Solution3136
566Build an Array With Stack Operations Leetcode Solution3136
567Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3134
568Count Possible Triangles3133
569LCS (Longest Common Subsequence) of three strings3128
570Find a Sorted Subsequence of size 33128
571Smallest Good Base3123
572Best Time to Buy and Sell Stock IV LeetCode Solution3122
573Find maximum length Snake sequence3122
574Merge Two Binary Trees LeetCode Solution3121
575Rectangle Overlap LeetCode Solution3117
576Decode String3116
577Design Skiplist LeetCode Solution3114
578Letter Case Permutation3110
579Minimum Bracket Reversals3107
580Contiguous Array LeetCode Solution3101
581Longest Substring with At Least K Repeating Characters LeetCode Solution3100
582Palindrome Partitioning Leetcode Solution3094
583Minimum Height Trees LeetCode Solution3093
584Recover Binary Search Tree Leetcode Solution3092
585Distance Between Bus Stops Leetcode Solution3090
586Guess Number Higher or Lower II3090
587Print all Palindromic Partitions of a String3087
588All Possible Full Binary Trees LeetCode Solution3077
589Largest Subarray with Equal Number of 0’s and 1’s3077
590Minimum number of jumps to reach end3074
591Maximum Number of Ways to Partition an Array LeetCode Solution3073
592Longest Repeated Subsequence3072
593Maximum Depth of N-ary Tree Leetcode Solution3069
594Find the Town Judge LeetCode Solution3068
595Design a Stack With Increment Operation Leetcode Solution3064
596K-th Distinct Element in an Array3060
597Maximum Length of Chain Pairs3055
598Group Multiple Occurrence of Array Elements Ordered by first Occurrence3053
599Find the two Numbers with Odd Occurrences in an Unsorted Array3049
600Reorder an Array According to the Given Indexes3049
601Check for Balanced Parentheses in an Expression3035
602Implement Two Stacks in an Array3034
603The Maze III LeetCode Solution3032
604Subarrays with K Different Integers Leetcode Solution3021
605Rearrange Spaces Between Words Leetcode Solution3020
606Sort a String According to Another String3020
607Mean of Array After Removing Some Elements Leetcode Solution3018
608Valid Parentheses Leetcode Solution3015
609Maximize Elements Using Another Array3015
610Maximum Score After Splitting a String Leetcode Solution3014
611Jump Game IV LeetCode Solution3010
612Maximum sum rectangle in a 2D matrix3002
613Count pair with Given Sum2992
614Contains Duplicate2985
615Minimum Jumps to Reach Home LeetCode Solution2968
616Perform String Shifts Leetcode2964
617Convert BST to Min Heap2963
618Word Break2963
619Valid Sudoku2961
620Possible Bipartition LeetCode Solution2954
621Edit Distance LeetCode Solution2949
622Find the First Circular Tour that visits all the Petrol Pumps2948
623Palindrome Permutations of a String2947
624Iterative Method to find Height of Binary Tree2943
625Find the Minimum Element in a Sorted and Rotated Array2941
626A Space Optimized DP solution for 0-1 Knapsack Problem2938
627Heap Sort2933
628Reach a Number LeetCode Solution2926
629Maximum Product of Splitted Binary Tree LeetCode Solution2916
630Best Meeting Point LeetCode Solution2913
631Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2911
632Find Largest Value in Each Tree Row LeetCode Solution2910
633Merge Two Balanced Binary Search Trees2908
634Count Sub Islands LeetCode Solution2897
635Palindromic Substrings Leetcode Solution2897
636Number of palindromic paths in a matrix2889
637Merge Overlapping Intervals II2886
638Sorted Linked List to Balanced BST2885
639Brick Wall LeetCode Solution2877
640My Calendar I LeetCode Solution2877
641Palindrome Permutation2876
642Find the Subarray of given length with Least Average2876
643Find First and Last Position of Element in Sorted Array LeetCode Solution2875
644Segregate 0s and 1s in an Array2874
645All Unique Triplets that Sum up to a Given Value2871
646Caesar Cipher2868
647Swapping Nodes in a Linked List Leetcode Solution2862
648Check if the given array can represent Level Order Traversal of Binary Search Tree2859
649Construct BST from given Preorder Traversal2857
650Huffman Coding2851
651Level order Traversal in Spiral Form2849
652Find Median from data Stream2849
653Pair with given product2839
654Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2833
655Partition Problem2831
656Word Pattern2826
657Maximize Sum of Array after K Negations Leetcode Solution2822
658Merge K Sorted Arrays and Print Sorted Output2819
659Find all triplets with zero sum2810
660Validate Binary Search Tree2806
661Count Distinct Elements in Every Window of Size K2785
662Isomorphic Strings LeetCode Solution2784
663Print Fibonacci sequence using 2 variables2784
664Find whether a subarray is in form of a mountain or not2784
665Maximum Frequency Stack Leetcode Solution2781
666Count Good Nodes in Binary Tree LeetCode Solution2778
667Bubble sort using two Stacks2777
668Detect Capital Leetcode Solution2774
669Minimum time required to rot all oranges2773
670Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2772
671Find all pairs (a, b) in an array such that a % b = k2772
672Queries on Probability of Even or Odd Number in given Ranges2771
673Add two numbers2771
674Counting Bits2765
675Longest Subarray Having Count of 1s One More than Count of 0s2762
676Range Sum Query 2D – Immutable LeetCode Solution2760
677Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2760
678Convert Sorted List to Binary Search Tree2758
679Alien Dictionary2758
680How to Efficiently Implement k Stacks in a Single Array?2753
681Binary Tree Right Side View LeetCode Solution2749
682Split Array Into Consecutive Subsequences2748
683Largest Sum Contiguous Subarray2746
684Find four elements that sum to a given value (Hashmap)2745
685Sort 0s 1s and 2s in an Array2742
686Length of Longest Fibonacci Subsequence2740
687Binary Tree to Binary Search Tree Conversion2738
688Breadth First Search (BFS) for a Graph2735
689Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2734
690Rotate Array2731
691Remove brackets from an algebraic string containing + and – operators2730
692Minimum Swaps to Group All 1’s Together Leetcode Solution2724
693Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2723
694Partition to K Equal Sum Subsets Leetcode Solution2721
695Print all subarrays with 0 sum2715
696Count ways to reach the nth stair using step 1, 2 or 32712
697Maximum Number of Chocolates to be Distributed Equally Among k Students2711
698Merge Two Sorted Lists Leetcode2700
699Populating Next Right Pointers in Each Node Leetcode Solution2695
700Remove Palindromic Subsequences Leetcode Solution2692
701Populating Next Right Pointers in Each Node2692
702String comparison containing wildcards2682
703Find pairs with given sum such that elements of pair are in different rows2681
704Partition Equal Subset Sum2680
705Arithmetic Slices II – Subsequence LeetCode Solution2677
706Difference Array | Range update query in O(1)2669
707Happy Number2669
708Topological Sorting2664
709Web Crawler LeetCode Solution2663
710Remove duplicates from sorted array2662
711Concatenation of Array LeetCode Solution2656
712Minimum Sum Path in a Triangle2655
713Queue Reconstruction by Height2652
714Inorder Successor of a node in Binary Tree2649
715Elements Appear more than N/K times in Array2647
716Check if a Linked list of Strings form a Palindrome2639
717Contiguous Array Leetcode2636
718Find All Pairs With a Given Difference2635
719Reverse Nodes in K-Group2631
720Find Duplicate Subtrees2626
721Root to Leaf path with target sum Leetcode Solutions2625
722Increasing Subsequence of Length three with Maximum Product2612
723Check if String Follows Order of Characters by a Pattern or not2611
724Minimum Number of Arrows to Burst Balloons LeetCode Solution2598
725Swap Kth Node from beginning with Kth Node from End2594
726Longest Common Prefix Using Binary Search II2590
727Container with Most Water2581
728Climbing stairs2579
729Maximum Product Subarray II2577
730Score of Parenthesis LeetCode Solution2576
731Minimum Swaps to Make Strings Equal Leetcode Solution2575
732Count Minimum Steps to Get the given Array2572
733Finding K closest element2570
734Maximum Distance in Array2569
735Symmetric Tree2567
736Given a binary tree, how do you remove all the half nodes?2565
737Pancake Sorting2564
738Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2557
739Sum Root to Leaf Numbers LeetCode Solution2551
740Parallel Courses II LeetCode Solution2550
741Minimum Cost to Move Chips to The Same Position LeetCode Solution2550
742An Interesting Method to generate Binary Numbers from 1 to n2548
743Deletion in a Binary Tree2545
744Check if all levels of two Binary Tree are anagrams or not2543
745Delete Nodes and Return Forest Leetcode Solution2540
746Construct Binary Tree from given Parent Array representation2539
747Longest Increasing Subsequence2536
748Find the first repeating element in an array of integers2532
749Substring With Concatenation Of All Words2527
750Delete Nth node from the end of the given linked list2523
751Count pairs from two linked lists whose sum is equal to a given value2523
752Boundary Traversal of binary tree2521
753Union and Intersection of two Linked Lists2519
754Kill Process LeetCode Solution2516
755MiniMax Algorithm2516
756Sort Array by Increasing Frequency Leetcode Solution2509
757Iterative Depth First Traversal of Graph2508
758Level order traversal using two Queues2507
759BFS vs DFS for Binary Tree2506
760Linked List Cycle2505
761Level of Each node in a Tree from source node2505
762Find K Closest Elements LeetCode Solution2502
763Minimum Size Subarray Sum2499
764Merge K Sorted Linked Lists2497
765Iterative Preorder Traversal2488
766Non-overlapping sum of two sets2488
767Valid Anagrams2487
768Minimum Remove to Make Valid Parentheses LeetCode Solution2483
769Find Maximum of Minimum for Every Window Size in a Given Array2483
770Rearrange an Array Such that arr[i] is equal to i2482
771Longest Common Prefix Word by Word Matching2482
772Nested List Weight Sum II LeetCode Solution2469
773Find the Difference Leetcode Solution2465
774Remove Duplicates from Sorted List II2462
775New 21 Game2461
776Matrix Chain Multiplication2460
777Merging Intervals2460
778Verify Preorder Serialization of a Binary Tree2455
779Check if a queue can be sorted into another queue using a stack2451
780Super Ugly Number2450
781Friends Of Appropriate Ages LeetCode Solution2446
782Maximum size subarray sum equals k2444
783Reservoir Sampling2442
784Flatten Binary Tree to Linked List LeetCode Solution2438
785Maximum Product Subarray2435
786Range LCM Queries2432
787Smallest Range II Leetcode Solution2427
788Print a Binary Tree in Vertical Order2426
789Palindrome Partitioning2423
790Reorder Array Using Given Indexes2421
791Balanced Binary Tree2420
792K maximum sums of overlapping contiguous sub-arrays2415
793Sum of f(a[i], a[j]) over all pairs in an array of n integers2408
794Missing Number2407
795Valid Triangle Number LeetCode Solution2398
796Vertical sum in a given binary tree2397
797Check if Two Expressions With Brackets are Same2397
798Defanging an IP Address LeetCode Solution2391
799Peak Index in a Mountain Array LeetCode Solution2390
800Check if any two intervals overlap among a given set of intervals2389
801Maximum difference between two elements such as larger element comes after smaller2387
802Create Maximum Number2386
803Minimum insertions to form a palindrome with permutations allowed2380
804Find Maximum Sum Possible Equal Sum of Three Stacks2379
805Minimum Distance Between BST Nodes Leetcode Solution2372
806Lowest Common Ancestor2368
807The Painter’s Partition Problem2367
808Find subarray with given sum (Handles Negative Numbers)2364
809Sorting a K Sorted Array2361
810Unique Binary Search Trees LeetCode Solution2360
811Check if a given array can represent Preorder Traversal of Binary Search Tree2358
812Find Three Element From Different Three Arrays Such That a + b + c = sum2358
813Number Of Longest Increasing Subsequence2355
814Valid Triangle Number LeetCode Solution2354
815Employee Importance LeetCode Solution2351
816Count number of triplets with product equal to given number2351
817Largest Submatrix With Rearrangements LeetCode Solution2346
818Flatten 2D Vector LeetCode Solution2345
819Find K Length Subarray of Maximum Average2340
820Hamming Distance2339
821Check Completeness of a Binary Tree LeetCode Solution2335
822Kth Smallest Element in a Sorted Matrix LeetCode Solution2331
823Array Nesting Leetcode Solution2331
824Iterative Postorder Traversal Using Two Stacks2330
825Closest Leaf in a Binary Tree LeetCode Solution2329
826Check if two nodes are on the same path in a Tree2328
827Merging Two Sorted Arrays2327
828Find Peak Element2323
829Third Maximum Number Leetcode Solution2322
830Find Common Characters Leetcode Solution2321
831First Bad Version2318
832Find distance between two nodes of a Binary Tree2317
833Tree Traversal (Preorder, Inorder & Postorder)2315
834Print All Distinct Elements of a Given Integer Array2311
835Valid Parenthesis String2307
836Find Element Using Binary Search in Sorted Array2304
837Products of ranges in an array2300
838Maximum difference between frequency of two elements such that element having greater frequency is also greater2299
839Maximum subsequence sum such that no three are consecutive2299
840Find Smallest Range Containing Elements from k Lists2298
841Newman-Conway Sequence2298
842Diagonal Traversal of Binary Tree2297
843Largest BST Subtree LeetCode Solution2294
844Print all triplets in sorted array that form AP2293
845Sort Elements by Frequency II2293
846Distinct Subsequences2289
847Find Sum of all unique sub-array sum for a given array2288
848Arrange given numbers to form the biggest number2286
849Bottom View of a Binary Tree2280
850Lower Case To Upper Case2280
851Maximum number of segments of lengths a, b and c2279
852Longest Palindromic Subsequence2275
853Largest divisible pairs subset2272
854Range Sum Query using Sparse Table2265
855Stone Game IV LeetCode Solution2264
856Path Sum2260
857Largest subarray with equal number of 0s and 1s2259
858Compare Strings by Frequency of the Smallest Character Leetcode Solution2258
859Stone Game IV LeetCode Solution2257
860Find Nth Node2257
861Print Right View of a Binary Tree2256
862Number of siblings of a given Node in n-ary Tree2256
863Segment Tree2251
864Contiguous Array2240
865Trapping Rain Water II LeetCode Solution2238
866Find the largest multiple of 32238
867Longest Bitonic Subsequence2235
868Four Elements that Sum to Given2234
869Binary array after M range toggle operations2232
870Shuffle an Array2232
871Median of Two Sorted Arrays2231
872Merge Two Sorted Arrays2230
873Isomorphic Strings2228
874Count and Say2221
875Unique Binary Search Trees2219
876Subset Sum Problem in O(sum) space2211
877Permutations of a Given String Using STL2205
878Minimum Swaps To Make Sequences Increasing LeetCode Solution2194
879Find Largest d in Array such that a + b + c = d2194
880Red-Black Tree Introduction2191
881Maximum Product Subarray2190
882Infix to Postfix2189
883Encoded String With Shortest Length LeetCode Solution2187
884Valid Number2185
885Maximum Sum of 3 Non-Overlapping Subarrays2184
886Find unique character in a string2183
887Averages of Levels in Binary Tree2182
888Next Greater Element in an Array2181
889Maximum Population Year LeetCode Solution2180
890Friends Pairing Problem2179
891Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2172
892Transform a BST to Greater sum Tree2172
893Closest Binary Search Tree Value Leetcode Solution2164
894Valid Perfect Square LeetCode Solution2164
895Height of a generic tree from parent array2164
896Insert Delete GetRandom2163
897Count Primes in Ranges2162
898Orderly Queue LeetCode Solution2158
899Write a function to get the intersection point of two Linked Lists2158
900Binary Search Tree Delete Operation2142
901Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2141
902The Number of Weak Characters in the Game LeetCode Solution2139
903Range Minimum Query (Square Root Decomposition and Sparse Table)2137
904Bold Words in String LeetCode Solution2131
905Shuffle a given Array2131
906Binary Tree Longest Consecutive Sequence LeetCode Solution2123
907Serialize and Deserialize Binary Tree2121
908Sentence Screen Fitting LeetCode Solution2119
909Edit Distance2116
910Minimum sum of squares of character counts in a given string after removing k characters2111
911Kth Smallest Number in Multiplication Table Leetcode Solution2105
912Diameter of N-Ary Tree LeetCode Solution2099
913Reorganize String2098
914Swap Nodes In Pairs2096
915Find Minimum In Rotated Sorted Array2093
916Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2092
917Convert BST into a Min-Heap without using array2090
918Lowest Common Ancestor in Binary Search Tree2086
919Next greater element2085
920Integer to Roman2084
921Maximum Product Subarray2080
922Next Greater Element II LeetCode Solution2069
923K’th Largest Element in BST when modification to BST is not allowed2065
924Find the smallest binary digit multiple of given number2055
925Total Hamming Distance LeetCode Solution2054
926Advantages of BST over Hash Table2052
927K’th Largest element in BST using constant extra space2050
928Array Queries for multiply replacements and product2048
929Koko Eating Bananas LeetCode Solution2038
930Queries on XOR of greatest odd divisor of the range2035
931Best Meeting Point LeetCode Solution2033
932Write Code to Determine if Two Trees are Identical2033
933Serialize and Deserialize Binary Tree LeetCode Solution2029
934Check if an Array is Stack Sortable2026
935Constant time range add operation on an array2024
936Print n terms of Newman-Conway Sequence2023
937Longest Increasing Consecutive Subsequence2022
938Level Order Traversal of Binary Tree2019
939Number of Orders in the Backlog Leetcode Solution2016
940Image Overlap LeetCode Solution2008
941Maximum Sum Increasing Subsequence2006
942Reverse a Path in BST using Queue2005
943Range Queries for Longest Correct Bracket Subsequence2003
944Clone a Binary Tree with Random Pointers2002
945Power of Two2002
946Moving Stones Until Consecutive Leetcode Solution1998
947Greatest Sum Divisible by Three LeetCode Solution1995
948Check if X can give change to every person in the Queue1991
949Design Underground System Leetcode Solution1990
950Find minimum number of merge operations to make an array palindrome1984
951A program to check if a binary tree is BST or not1982
952Numbers with prime frequencies greater than or equal to k1981
953Find the node with minimum value in a Binary Search Tree1981
954Valid Tic-Tac-Toe State LeetCode Solution1980
955Insert into a Sorted Circular Linked List LeetCode Solution1979
956Count and Toggle Queries on a Binary Array1975
957Design Add and Search Words Data Structure LeetCode Solution1970
958Form minimum number from given sequence1968
959Check if each internal node of a BST has exactly one child1965
960Print Next Greater Number of Q queries1965
961Maximum Array from Two given Arrays Keeping Order Same1961
962Closest Binary Search Tree Value II LeetCode Solution1959
963Factorial Trailing Zeroes LeetCode Solution1949
964Check for Palindrome after every character replacement Query1948
965Count the Pairs at Same Distance as in English Alphabets1946
966Number of elements less than or equal to a given number in a given subarray1944
967Merge two BSTs with limited extra space1939
968Queries for Decimal Values of Subarrays of a Binary Array1938
969Collect maximum points in a grid using two traversals1937
970Largest Plus Sign Leetcode Solution1933
971Graph Cloning1926
972Merge Sort1925
973Maximum difference between first and last indexes of an element in array1924
974Group Shifted Strings Leetcode Solution1920
975Merge Sorted Array1919
976Dividing Array into Pairs With Sum Divisible by K1908
977Priority Queue1899
978Longest Substring Without Repeating Characters Leetcode Solution1894
979Count even length binary sequences with same sum of first and second half bits1889
980Print modified array after multiple array range increment operations1883
981Print Ancestors of a Given Binary Tree Node Without Recursion1880
982Cutting a Rod1871
983Kth Smallest Element in a BST1870
984Form Minimum Number From Given Sequence1859
985Swim in Rising Water LeetCode Solution1858
986Excel Sheet Column Number LeetCode Solution1858
987Find maximum average subarray of k length1853
988Count Pairs Whose Products Exist in Array1853
989Guess The Word1848
990Unique Paths II1842
991Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1841
992Minimum Moves to Equal Array Elements LeetCode Solution1841
993Excel Sheet Column Title LeetCode Solution1839
994Binary Search Tree1836
995Print all Possible Ways to Break a String in Bracket Form1831
996How to print maximum number of A’s using given four keys1823
997Palindrome Partitioning1822
998Decrease Elements To Make Array Zigzag LeetCode Solution1818
999Check given array of size n can represent BST of n levels or not1816
1000Binary Search Tree Search and Insertion1812
1001K Empty Slots1812
1002Longest Common Prefix using Character by Character Matching1806
1003Sorted Array to Balanced BST1794
1004Regular Expression Matching1794
1005Sum of Left Leaves LeetCode Solution1792
1006Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1781
1007Find postorder traversal of BST from preorder traversal1778
1008Construct Complete Binary Tree from its Linked List Representation1755
1009Queries for Number of Distinct Elements in a Subarray1737
1010Maximum Depth Of Binary Tree1737
1011Maximum weight transformation of a given string1733
1012Find the Town Judge LeetCode Solution1729
1013Binary Tree to Binary Search Tree Conversion using STL set1722
1014Iterative method to find ancestors of a given binary tree1718
1015Symmetric Tree LeetCode Solution Leetcode Solution1708
1016Data Structure Designing1700
1017Shortest Unsorted Continuous Subarray LeetCode Solution1699
1018Random Pick Index LeetCode Solution1690
1019Search in Sorted Rotated Array1680
1020Find Maximum Depth of Nested Parenthesis in a String1672
1021Search an Element in Sorted Rotated Array1653
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1622
1023Kth Smallest Product of Two Sorted Arrays LeetCode Solution1621
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1611
1025Next Greater Element I Leetcode Solution1570
1026Print Maximum Length Chain of Pairs1566
1027Maximum Binary Tree1548
1028Find k-th smallest element in BST (Order Statistics in BST)1535
1029Flatten Binary Tree to Linked List LeetCode Solution1534
1030Peeking Iterator LeetCode Solution1499
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1475
Translate »