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 Solution41558
2Maximum occurring character in a string19178
3Plus One Leetcode Solution18436
4Valid Parentheses LeetCode Solution18251
53Sum Leetcode Solution16180
6First Repeating Element14634
7Single Number Leetcode Solution14298
8Merge Sorted Arrays Leetcode Solution14016
9Count Primes Leetcode Solutions13836
10Pow(x, n) Leetcode Solution13516
11Sqrt(x) Leetcode Solution13317
12Meeting Rooms II LeetCode Solution12463
13Concatenation of Array LeetCode Solution12208
14Roman to Integer Leetcode Solution11429
15Search Insert Position Leetcode Solution11226
16Contains Duplicate II Leetcode Solution11216
17Valid Palindrome Leetcode Solution11146
18Palindrome Number LeetCode Solution11086
19Reverse Vowels of a String Leetcode Solution10662
20Jump Game Leetcode Solution10544
21Intersection of Two Arrays II Leetcode Solution10521
22Number of Good Pairs Leetcode Solution10445
23Spiral Matrix LeetCode Solution10300
24Kids With the Greatest Number of Candies Leetcode Solution10256
25Longest Substring Without Repeating Characters LeetCode Solution10236
26House Robber Leetcode Solution10206
27Remove Duplicates from Sorted Array Leetcode Solution10157
28Add Binary Leetcode Solution10060
29Maximum Subarray Leetcode Solution9711
30Find the Maximum Repeating Number in Array9642
31Text Justification LeetCode Solution9463
32Number Of 1 bits9371
33Jewels and Stones Leetcode Solution9257
34Longest Palindromic Substring LeetCode Solution9160
35Power of Two Leetcode Solution9109
36Min Stack Leetcode Solution9063
37Move Zeroes LeetCode Solution9057
38Permutations Leetcode Solution8982
39Shuffle String Leetcode Solution8855
40Find All Numbers Disappeared in an Array Leetcode Solution8776
41Third Maximum Number Leetcode Solution8705
42Word Search Leetcode Solution8694
43Next Permutation Leetcode Solution8692
44Daily Temperatures Leetcode Solution8686
45Number of Islands LeetCode Solution8602
46Median of Two Sorted Arrays LeetCode Solution8598
47Maximum Profit in Job Scheduling Leetcode Solution8530
48Kth Missing Positive Number Leetcode Solution8511
49Longest Common Prefix Leetcode Solution8498
50Search in Rotated Sorted Array Leetcode Solution8492
51Next Greater Element I Leetcode Solution8421
52Frog Jump Leetcode Solution8358
53Find Minimum Distance Between Two Numbers in an Array8215
54Evaluation of Postfix Expression8167
55Running Sum of 1d Array Leetcode Solution8148
56Rotate Image LeetCode Solution8072
57Multiply Strings Leetcode Solution8068
58Can Place Flowers LeetCode Solution7994
59Shuffle the Array Leetcode Solution7988
60Valid Anagram Leetcode Solution7986
61Combination Sum Leetcode Solution7972
62Bulb Switcher LeetCode Solution7968
633Sum Closest LeetCode Solution7949
64House Robber II Leetcode Solution7925
65Count and Say Leetcode Solution7877
66Subarray and Subsequence7651
67Koko Eating Bananas Leetcode Solution7628
68Excel Sheet Column Title Leetcode Solution7614
69Isomorphic Strings Leetcode Solution7578
70Missing Number Leetcode Solution7553
71Happy Number Leetcode Solution7536
72Count Pairs With Given Sum7522
73Product of array except self7519
74Integer to Roman Leetcode Solution7515
75Strobogrammatic Number LeetCode Solution7470
76Majority Element Leetcode Solution7455
77Reverse String Without Temporary Variable7445
78Rotate String LeetCode Solution7353
79Best Time to Buy and Sell Stock LeetCode Solution7347
80Candy LeetCode Solution7304
81Find the Difference Leetcode Solution7249
82Is Subsequence Leetcode Solution7229
83Largest Number Leetcode Solution7168
84Subtract the Product and Sum of Digits of an Integer Leetcode Solution7125
85Find Common Characters Leetcode Solution7110
86String to Integer (atoi) LeetCode Solution7081
87How Many Numbers Are Smaller Than the Current Number Leetcode Solution7066
88Set Matrix Zeroes6999
89Find the Duplicate Number LeetCode Solution6982
90Binary Search LeetCode Solution6951
91Summary Ranges Leetcode Solution6918
92A Product Array Puzzle6918
93Subset Leetcode6885
94Expression Evaluation6877
95Sort Characters By Frequency LeetCode Solution6836
96Word Pattern LeetCode Solution6800
97Balanced Binary Tree Leetcode Solution6799
98Find the Town Judge Leetcode Solution6789
99Rabin Karp Algorithm6764
100Unique Paths Leetcode Solution6755
101Arranging Coins Leetcode Solution6727
102Find the Winner of the Circular Game LeetCode Solution6658
103Rearrange Positive and Negative Numbers Alternatively in Array6642
104String Compression LeetCode Solution6620
105Repeated Substring Pattern LeetCode Solution6600
106Smallest window in a string containing all characters of another string6581
107Asteroid Collision LeetCode Solution6573
108Sort Colors LeetCode Solution6506
109Group Anagrams LeetCode Solution6464
110Best Time to Buy and Sell Stock  II Leetcode Solution6358
111Sort Array By Parity LeetCode Solution6336
112Zigzag Conversion LeetCode Solution6326
113Page Replacement Algorithms in Operating Systems6308
114Sum of minimum and maximum elements of all subarrays of size k6277
115Postfix to Infix Conversion6259
116Valid Palindrome II Leetcode Solution6241
117Divide Two Integers Leetcode Solution6235
118Reverse Integer Leetcode Solution6172
119Product of Array Except Self LeetCode Solution6161
120Generate Parentheses Leetcode Solution6155
121Kth largest element in an Array Leetcode Solutions6144
122Assign Cookies Leetcode Solution6112
123Matrix Chain Multiplication using Dynamic Programming6079
124Merge Two Sorted Lists Leetcode Solutions6049
125Bus Routes Leetcode Solution6044
126Pascal Triangle Leetcode6044
127Number of Provinces Leetcode Solution6028
128Remove Duplicates from Sorted Array II Leetcode Solution6026
129Linked List Cycle II LeetCode Solution6008
130Length of Last Word Leetcode Solution5991
131H-Index Leetcode Solution5976
132Decode String Leetcode Solution5960
133Minimum Steps to reach target by a Knight5928
134Convert array into Zig-Zag fashion5918
135Defanging an IP Address Leetcode Solution5904
136Optimal Account Balancing LeetCode Solution5903
137Employee Free Time LeetCode Solution5900
138First element occurring k times in an array5834
139Minimum Cost For Tickets Leetcode Solution5832
140Build Array From Permutation Leetcode Solution5788
141Pascal’s Triangle II Leetcode Solution5734
142Prefix to Infix Conversion5703
143Increasing Triplet Subsequence LeetCode Solution5699
144Implementation of Deque using Doubly Linked List5658
145Find First and Last Position of Element in Sorted Array Leetcode Solution5651
146Find the Row with Maximum Number of 1’s5627
147Robot Room Cleaner Leetcode Solution5620
148Island Perimeter Leetcode Solution5616
149Max Consecutive Ones Leetcode Solution5556
150Find Pair with Given Difference5548
151Bellman Ford Algorithm5546
152Swap Nodes in Pairs Leetcode Solutions5544
153K-th Smallest Element in a Sorted Matrix5541
154Majority Element II Leetcode Solution5531
155Fibonacci Number LeetCode Solution5529
156Check if the Elements of an Array are Consecutive5502
157Design Parking System Leetcode Solution5461
158Guess Number Higher or Lower LeetCode Solution5460
159KMP Algorithm5457
160Find the Missing Number5456
161Merge Sorted Array LeetCode Solution5435
162Lemonade Change Leetcode Solution5411
163First negative integer in every window of size k5408
164Length of the largest subarray with contiguous elements5404
165Add Two Numbers II Leetcode Solution5397
166Delete middle element of a stack5395
167Coin Change 2 Leetcode Solution5385
168First Unique Character in a String LeetCode Solution5381
169Subarray Product Less Than K LeetCode Solution5373
170OSI Model5363
171Last Stone Weight5341
172String Compression5333
173Subarray Sum Equals K LeetCode Solution5324
174Capacity To Ship Packages Within D Days Leetcode Solution5323
175Subarray with Given Sum5305
176Word Ladder LeetCode Solution5301
177Find Smallest Missing Number in a Sorted Array5278
178Find All Duplicates in an Array LeetCode Solution5274
179Palindrome Linked List Leetcode Solution5270
180Form Minimum Number from Given Sequence of D’s and I’s5269
181Set Matrix Zeroes Leetcode Solution5263
182Monotonic Array LeetCode Solution5246
183Trapping Rain Water Leetcode Solution5244
184Repeated Substring Pattern5221
185Combinations Leetcode Solution5201
186Reverse Words in a String III LeetCode Solution5181
187Remove Duplicates from Sorted List II LeetCode Solution5175
188Same Tree LeetCode Solution5166
189Iterative Implementation of Quick Sort5150
190Valid Perfect Square Leetcode Solution5133
191Continuous Subarray Sum LeetCode Solution5121
19201 Matrix LeetCode Solution5114
193Single Element in a Sorted Array LeetCode Solution5082
194Remove Linked List Elements Leetcode Solution5073
195Backspace String Compare5065
196Break a Palindrome LeetCode Solution5061
197Merge k Sorted Lists Leetcode Solution5028
198Slowest Key Leetcode Solution5023
199Prefix to Postfix Conversion5009
200Combination Sum4997
201Relative Ranks Leetcode Solution4986
202The K Weakest Rows in a Matrix Leetcode Solution4958
203Leetcode Permutations4955
204Find the Duplicate Element4929
205Rotate List Leetcode Solution4903
206Second Most Repeated Word in a Sequence4886
207Printing brackets in Matrix Chain Multiplication Problem4879
208Maximum Product of Three Numbers LeetCode Solution4869
209Find Peak Element LeetCode Solution4864
210Insert Delete GetRandom O(1) Leetcode Solution4859
211Kth Largest Element in a Stream Leetcode Solution4837
212Longest Common Subsequence LeetCode Solution4832
213Top K Frequent Elements LeetCode Solution4814
214Palindrome Number4811
215Remove All Occurrences of a Substring LeetCode Solution4800
216Convert a Number to Hexadecimal Leetcode Solution4791
217Rearrange given Array in Maximum Minimum Form4790
218Make The String Great Leetcode Solution4782
219Cuckoo sequence program4770
220Relative Sort Array Leetcode Solution4759
221Subarray Sum Equals k4756
222Delete Node in a Linked List Leetcode Solution4745
223Unique Paths II Leetcode Solution4739
224Max Area of Island4738
225Find Leaders in an Array4729
226Target Sum4715
227Generate all Binary Strings Without Consecutive 1’s4704
228Time Based Key-Value Store LeetCode Solution4700
229Permutation in String Leetcode Solution4700
230Check If Two String Arrays are Equivalent Leetcode Solution4692
231Container With Most Water LeetCode Solution4690
232Moving Average from Data Stream Leetcode Solution4678
233N-Queens LeetCode Solution4664
234Find N Unique Integers Sum up to Zero Leetcode Solution4660
235Given two unsorted arrays find all pairs whose sum is x4644
236Count Good Nodes in Binary Tree Leetcode Solution4635
237Scramble String4626
238Arithmetic Expression Evaluation4610
239Contains Duplicate LeetCode Solution4601
240Number of Dice Rolls With Target Sum LeetCode Solution4595
241LRU Cache LeetCode Solution4577
242Letter Combinations of a Phone Number4571
243Find Triplet in Array With a Given Sum4562
244Construct Binary Tree from Given Inorder and Preorder Traversals4542
245Minimum swaps required to bring all elements less than or equal to k together4539
246Flipping an Image LeetCode Solution4535
247Stone Game LeetCode4533
248Remove Minimum Characters so that Two Strings Become Anagrams4520
249Reverse Only Letters LeetCode Solution4519
250Next Permutation4519
251Check If N and Its Double Exist Leetcode Solution4516
252Number of Steps to Reduce a Number to Zero Leetcode Solution4503
253Min Cost Climbing Stairs LeetCode Solution4501
254Stock Buy Sell to Maximize Profit4494
255Minimum Knight Moves LeetCode Solution4481
256Prim’s Algorithm4473
257Find The Duplicate Number4462
258To Lower Case Leetcode Solution4447
259Student Attendance Record I Leetcode Solution4443
260Top K Frequent Elements4413
261The kth Factor of n Leetcode Solution4396
262Minimum Operations to convert X to Y4396
263Smallest Positive Number Missing in an Unsorted Array4372
264Reverse words in a string4366
265Maximum Subarray Sum using Divide and Conquer4366
266License Key Formatting Leetcode Solution4361
267Maximum Sum Increasing Subsequence4338
268Min Stack4323
269Search Suggestions System LeetCode Solution4318
270Maximum Population Year LeetCode Solution4316
271Find the Number Occurring Odd Number of Times in an Array4309
272Sum of Subarray Ranges Leetcode Solution4297
273Special Array With X Elements Greater Than or Equal X Leetcode Solution4278
274Single Number4263
275Find Words That Can Be Formed by Characters Leetcode Solution4255
276Reformat Date LeetCode Solution4242
277Top K Frequent Words LeetCode Solution4234
278Longest Common Subsequence4191
279Minimum Path Sum Leetcode Solution4188
280Remove Nth Node From End of List Leetcode Solution4180
281Reverse individual words4177
282N-th Tribonacci Number Leetcode Solution4172
283Intersection of Two Arrays4160
284Maximize Distance to Closest Person LeetCode Solution4143
285Last Stone Weight II LeetCode Solution4142
286Maximum Depth of Binary Tree Leetcode Solution4137
287Reveal Cards In Increasing Order Leetcode Solution4135
288Evaluate Division4132
289Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4126
290Remove Duplicates from Sorted List LeetCode Solution4126
291BFS for Disconnected Graph4118
292Best Time to Buy and Sell Stock III Leetcode Solution4106
293Minimum Characters to be Added at Front to Make String Palindrome4105
294Diagonal Traverse LeetCode Solution4098
295House Robber4096
296Count of index pairs with equal elements in an array4079
297Find any one of the multiple repeating elements in read only array4073
298Most Frequent Element in an Array4066
299Find if Path Exists in Graph Leetcode Solution4065
300Count Number of Occurrences in a Sorted Array4053
301Design A Leaderboard Leetcode Solution4050
302Sort Elements by Frequency of Occurrences4038
303Binary Tree Inorder Traversal LeetCode Solution4034
304Length of Longest valid Substring4034
305Minimum number of Merge Operations to make an Array Palindrome4026
306Implement a stack using single queue4011
307Find the Closest Palindrome number3989
308Range Sum Query 2D – Immutable Leetcode Solution3966
309Find Leaves of Binary Tree LeetCode Solution3962
310Brightest Position on Street LeetCode Solution3954
311Maximum Size Subarray Sum Equals k Leetcode Solution3935
312Partition Array Into Three Parts With Equal Sum Leetcode Solution3932
313Invalid Transactions LeetCode Solution3929
314Spiral Matrix II Leetcode Solution3922
315Shortest Word Distance Leetcode Solution3917
316Sort Array By Parity II Leetcode Solution3906
317Mobile Numeric Keypad Problem3906
318Reverse Bits3896
319Special Positions in a Binary Matrix Leetcode Solution3895
320Remove All Ones With Row and Column Flips Leetcode Solution3888
321Symmetric Tree Leetcode Solution3888
322Sudoku Solver3886
323Arrange given Numbers to Form the Biggest Number II3886
324Find Index of Closing Bracket for a Given Opening Bracket in an Expression3884
325Reverse Nodes in k-Group LeetCode Solution3877
326Diagonal Traversal LeetCode Solution3856
327Paint House LeetCode Solution3844
328Binary Tree Zigzag Level Order Traversal LeetCode Solution3838
329One Edit Distance LeetCode Solution3835
330Jump Game3828
331Remove Invalid Parentheses Leetcode Solution3824
332Find Duplicates in an Array in Most Efficient Way3814
333Construct BST from its given Level Order Traversal3803
334Rank Transform of an Array Leetcode Solution3800
335Alien Dictionary LeetCode Solution3794
336Unique Paths3786
337Maximum Subarray3769
338Partition Labels LeetCode Solution3765
339Minimum Moves to Equal Array Elements Leetcode Solution3763
340Hamming Distance Leetcode Solution3744
341Minimum operation to make all elements equal in array3744
342Largest Rectangle in Histogram LeetCode Solution3740
343Least Number of Unique Integers after K Removals Leetcode Solution3739
344Split Linked List in Parts Leetcode Solution3735
345Lowest Common Ancestor of a Binary Tree Leetcode Solution3735
346Bitwise AND of Numbers Range LeetCode Solution3735
347Minimum Depth of Binary Tree Leetcode Solution3730
348Round Robin Scheduling3730
349Maximal Square3730
350The Celebrity Problem3727
351Tug of War3726
352Range Sum of BST LeetCode Solution3724
353Pair of Positive Negative Values in an Array3721
354Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3714
355String Matching in an Array Leetcode Solution3709
356Check whether Strings are K Distance Apart or Not3708
357Smallest Subarray with k Distinct Numbers3707
358Next Permutation LeetCode Solution3701
359Find Winner on a Tic Tac Toe Game Leetcode Solution3698
360Maximum Circular Subarray Sum3698
361Dijkstra Algorithm3695
362Minimum Time to Collect All Apples in a Tree LeetCode Solution3673
363Minimum Time Visiting All Points Leetcode Solution3668
364Count of Triplets With Sum Less than Given Value3666
365Longest Common Prefix using Trie3664
366Clone Graph LeetCode Solution3663
367Minimum Cost to Hire K Workers3658
368Given an Array of Pairs Find all Symmetric Pairs in it3657
369Merge Two Sorted Linked Lists3654
370Next Greater Element III LeetCode Solution3652
371Regular Expression Matching Regular Expression Matching LeetCode Solution3643
372Find minimum difference between any two elements3638
373K Empty Slots LeetCode3638
374Minimize Maximum Pair Sum in Array LeetCode Solution3632
375Check if a given array contains duplicate elements within k distance from each other3626
376Sort a stack using a temporary stack3625
377Ugly Number II LeetCode Solution3623
378Transpose Graph3608
379Implementation of Deque using circular array3608
380Robot Bounded In Circle LeetCode Solution3599
381Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3596
382Non-decreasing Array LeetCode Solution3588
383Invert Binary Tree LeetCode Solution3578
384Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3574
385Unique Paths III LeetCode Solution3570
386Permutation Sequence LeetCode Solution3569
387Longest subarray not having more than K distinct elements3562
388Substring with Concatenation of All Words Leetcode Solution3555
389Missing Element in Sorted Array LeetCode Solution3554
390Find duplicates in a given array when elements are not limited to a range3553
391Longest Substring with At Most K Distinct Characters LeetCode Solution3544
392Find the Smallest Divisor given a Threshold Leetcode Solution3542
393Sliding Window Technique3541
394Find the First and Second Smallest Elements3541
395Validate Stack Sequences LeetCode Solution3539
396Postfix to Prefix Conversion3534
397Invert Binary Tree LeetCode Solution3533
398Stack Permutations (Check if an array is stack permutation of other)3533
399Find Top K (or Most Frequent) Numbers in a Stream3532
400First Circular Tour to Visit all the Petrol Bunks3532
401Number of Islands II LeetCode Solution3526
402Design Browser History LeetCode Solution3525
403Longest subsequence such that difference between adjacents is one3524
404LRU Cache Implementation3524
405Path With Maximum Minimum Value LeetCode Solution3523
406Find the subarray with least average3523
407Common elements in all rows of a given matrix3521
408Kth Smallest Element in a BST Leetcode Solution3519
409Graph Valid Tree LeetCode Solution3518
410Queries for counts of array elements with values in given range3515
411Find Maximum Level sum in Binary Tree3512
412Word Search3509
413Stone Game II Leetcode3504
414Kruskal Algorithm3503
415Combination Sum IV LeetCode Solution3499
416K Closest Points to Origin Leetcode Solution3496
417Toeplitz Matrix3495
418Partition List Leetcode Solution3494
419Sequences of given length where every element is more than or equal to twice of previous3489
420Snakes and Ladders LeetCode Solution3488
421Integer Break LeetCode Solution3487
422Number Complement Leetcode Solution3478
423Maximum Number of Occurrences of a Substring Leetcode Solution3474
424Number of Smaller Elements on Right Side3474
425Convert Sorted Array to Binary Search Tree LeetCode Solutions3471
426Search a 2D Matrix II Leetcode Solution3467
427Painting Fence Algorithm3467
428Longest Palindrome can be Formed by Removing or Rearranging Characters3455
429Find the Peak Element from an Array3447
430Max stack3444
431Sort elements by frequency3443
432Odd Even Linked List Leetcode Solution3438
433Recursion3430
434Minesweeper LeetCode Solution3418
435Priority Queue using doubly linked list3416
436Consecutive Characters LeetCode Solution3404
437Can Make Arithmetic Progression From Sequence Leetcode Solution3403
438Insert Interval Leetcode Solution3399
439LRU Cache Leetcode Solution3398
440Check if Two given Strings are Isomorphic to each other3398
441Search in a Binary Search Tree Leetcode Solution3396
442Top View of Binary Tree3394
443Nth Catalan Number3391
4443 Sum3389
445Find Minimum in Rotated Sorted Array II LeetCode Solution3383
446Maximum Consecutive Numbers Present in an Array3382
447Rearrange array such that even positioned are greater than odd3381
448Flood Fill LeetCode3370
449Expression Contains Redundant Bracket or Not3353
450Design a stack that supports getMin() in O(1) time and O(1) extra space3351
451Number of Closed Islands Leetcode Solution3348
452Minimum Absolute Difference in BST Leetcode Solution3343
453Kth Non-repeating Character3339
454Distance of nearest cell having 1 in a binary matrix3336
455Decompress Run-Length Encoded List Leetcode Solution3335
456Find a Peak Element II LeetCode Solution3334
457Replace Elements with Greatest Element on Right Side Leetcode Solution3328
458Move All the Zeros to the End of the Given Array3325
459Shortest Palindrome3320
460Check If Array Pairs Are Divisible by k LeetCode Solution3317
461Spiral Matrix III LeetCode Solution3311
462Insert into a Binary Search Tree Leetcode Solution3308
463High Five LeetCode Solution3304
464Integer to English words3304
465Gold Mine Problem3299
466Restore IP Addresses Leetcode Solution3296
467Sliding Window Maximum LeetCode Solution3295
4684Sum3285
469Balanced Expression with Replacement3283
470Sorting array using Stacks3276
471Queries for GCD of all numbers of an array except elements in a given range3275
472Best Time to Buy and Sell Stock3274
473Binary Tree Maximum Path Sum LeetCode Solution3273
474Convert Sorted Array to Binary Search Tree Leetcode Solution3273
475Minimum Path Sum3272
476N queen problem3262
477Find All Possible Recipes from Given Supplies LeetCode Solution3260
478Cells with Odd Values in a Matrix LeetCode Solution3255
479Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3255
480Trapping Rain Water LeetCode Solution3253
481Tiling Problem3249
482Priority Queue in C++3248
483Majority Element3248
484Find Pythagorean Triplets from Array3244
485Palindrome Substring Queries3238
486Sort Colors3238
487The Stock Span Problem3235
488Longest Common Prefix using Sorting3228
489Vertical Order Traversal of Binary Tree LeetCode Solution3218
490Minimum Number of Taps to Open to Water a Garden LeetCode Solution3214
491Number of Days Between Two Dates LeetCode Solution3213
492Sliding Window Median Leetcode Solution3212
493Is Graph Bipartite? LeetCode Solution3210
494Evaluate Reverse Polish Notation LeetCode Solution3210
495Sort an array according to the order defined by another array3204
496Coin Change Problem3203
497Count items common to both the lists but with different prices3198
498Path Sum II LeetCode Solution3194
499Fibonacci Number LeetCode Solution3193
500Reverse a linked list3183
501Find the first Repeating Number in a Given Array3178
502Pancake Sorting Problem3177
503Different Ways to Add Parentheses Leetcode Solution3174
504Camelcase Matching Leetcode Solution3162
505Largest rectangular sub-matrix whose sum is 03162
506How to Implement Stack Using Priority Queue or Heap?3161
507Kth ancestor of a node in binary tree3156
508Custom Sort String Leetcode Solution3152
509Shortest Completing Word Leetcode Solution3150
510Interval Tree3148
511Intersection of Two Linked Lists LeetCode Solution3144
512Design Hit Counter LeetCode Solution3144
513Check if Array Contains Contiguous Integers With Duplicates Allowed3143
514Longest Increasing Path in a Matrix LeetCode Solution3136
515Queue using Stacks3135
516Multiplication of Two Matrices3135
517Find a Fixed Point in a Given Array3134
518Analyze User Website Visit Pattern LeetCode Solution3130
519Count subarrays having total distinct elements same as original array3127
520Scramble String LeetCode Solution3125
521Divide Chocolate LeetCode Solution3121
522Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3121
523Sieve of Eratosthenes3120
524Detect a loop in the Linked List3114
525Find Median from Data Stream LeetCode Solution3111
526Implement Trie (Prefix Tree) Leetcode Solution3090
527Group Anagrams3089
528Perfect Squares LeetCode Solution3083
529Subset sum problem3083
530Generate all Binary Strings from Given Pattern3079
531Count Submatrices With All Ones LeetCode Solution3077
532Fibonacci numbers3075
533Reorder Data in Log Files LeetCode Solution3072
534Queue based approach for first non-repeating character in a stream3067
535Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3066
536Insert Node in the Sorted Linked List3066
537Number of Distinct Islands Leetcode Solution3065
538Path Crossing Leetcode Solution3065
539Longest Common Prefix using Divide and Conquer3064
540Maximum Sum of Non Consecutive Elements3062
541Find the Lost Element From a Duplicated Array3054
542Valid Boomerang Leetcode Solution3050
543Minimum Height Trees3040
544How to Create Mergable Stack?3034
545Champagne Tower LeetCode Solution3033
546Monotonic Array Leetcode Solution3024
547Palindrome Permutation LeetCode Solution3023
548Merge Overlapping Intervals3023
549Construction of Longest Increasing Subsequence (N log N)3021
550Shifting Letters LeetCode Solution3017
551Count Possible Triangles3016
552Race Car LeetCode Solution3014
553Decode Ways3014
554Decode String3010
555Build an Array With Stack Operations Leetcode Solution3008
556Sort a stack using recursion3007
557Find if an Expression has Duplicate Parenthesis or Not3007
558Find a Sorted Subsequence of size 33006
559Merge Two Binary Trees LeetCode Solution3001
560Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3001
561Find maximum length Snake sequence3000
562LCS (Longest Common Subsequence) of three strings2996
563Nearest Exit from Entrance in Maze LeetCode Solution2990
564Smallest Good Base2988
565Minimum Bracket Reversals2987
566Print all Palindromic Partitions of a String2985
567Most Stones Removed with Same Row or Column LeetCode Solution2982
568Sliding Window Maximum2980
569First missing positive2979
570Recover Binary Search Tree2979
571Number of Equivalent Domino Pairs Leetcode Solution2975
572Largest Subarray with Equal Number of 0’s and 1’s2970
573Minimum Height Trees LeetCode Solution2967
574Recover Binary Search Tree Leetcode Solution2964
575Palindrome Partitioning Leetcode Solution2960
576Rectangle Overlap LeetCode Solution2958
577Distance Between Bus Stops Leetcode Solution2958
578Morris Traversal2956
579Letter Case Permutation2955
580Maximum Element in an Array which is Increasing and then Decreasing2951
581Maximum Number of Ways to Partition an Array LeetCode Solution2946
582Longest Substring with At Least K Repeating Characters LeetCode Solution2944
583Minimum number of jumps to reach end2937
584Reorder an Array According to the Given Indexes2937
585Guess Number Higher or Lower II2931
586Design a Stack With Increment Operation Leetcode Solution2930
587K-th Distinct Element in an Array2926
588Maximum Length of Chain Pairs2925
589Find the Town Judge LeetCode Solution2924
590Binary Tree zigzag level order Traversal2924
591Implement Two Stacks in an Array2923
592Implement strStr() LeetCode Solution2918
593Longest Repeated Subsequence2914
594Jump Game IV LeetCode Solution2909
595Maximum Depth of N-ary Tree Leetcode Solution2905
596Subarrays with K Different Integers Leetcode Solution2901
597Contiguous Array LeetCode Solution2894
598Mean of Array After Removing Some Elements Leetcode Solution2894
599Rearrange Spaces Between Words Leetcode Solution2888
600Find the two Numbers with Odd Occurrences in an Unsorted Array2888
601The Maze III LeetCode Solution2886
602Valid Parentheses Leetcode Solution2881
603All Possible Full Binary Trees LeetCode Solution2880
604Best Time to Buy and Sell Stock IV LeetCode Solution2873
605Sort a String According to Another String2871
606Contains Duplicate2864
607Check for Balanced Parentheses in an Expression2861
608Maximize Elements Using Another Array2860
609Design Skiplist LeetCode Solution2857
610Minimum Jumps to Reach Home LeetCode Solution2857
611Maximum sum rectangle in a 2D matrix2841
612Convert BST to Min Heap2832
613Palindrome Permutations of a String2830
614Iterative Method to find Height of Binary Tree2820
615Perform String Shifts Leetcode2819
616Maximum Score After Splitting a String Leetcode Solution2818
617Find the Minimum Element in a Sorted and Rotated Array2816
618Valid Sudoku2813
619Word Break2812
620Edit Distance LeetCode Solution2809
621Group Multiple Occurrence of Array Elements Ordered by first Occurrence2801
622Find the First Circular Tour that visits all the Petrol Pumps2801
623A Space Optimized DP solution for 0-1 Knapsack Problem2797
624Reach a Number LeetCode Solution2796
625Possible Bipartition LeetCode Solution2794
626Maximum Product of Splitted Binary Tree LeetCode Solution2789
627Best Meeting Point LeetCode Solution2785
628Count pair with Given Sum2771
629Find Largest Value in Each Tree Row LeetCode Solution2765
630Merge Two Balanced Binary Search Trees2762
631Number of palindromic paths in a matrix2761
632Check if the given array can represent Level Order Traversal of Binary Search Tree2754
633Sorted Linked List to Balanced BST2754
634Find the Subarray of given length with Least Average2749
635Count Sub Islands LeetCode Solution2747
636Swapping Nodes in a Linked List Leetcode Solution2746
637Merge Overlapping Intervals II2745
638My Calendar I LeetCode Solution2744
639Brick Wall LeetCode Solution2742
640Caesar Cipher2733
641Palindromic Substrings Leetcode Solution2725
642Level order Traversal in Spiral Form2724
643Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2720
644Merge K Sorted Arrays and Print Sorted Output2713
645Segregate 0s and 1s in an Array2709
646Find Median from data Stream2704
647Pair with given product2702
648Word Pattern2697
649Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2691
650Construct BST from given Preorder Traversal2686
651Palindrome Permutation2682
652Print Fibonacci sequence using 2 variables2679
653Maximize Sum of Array after K Negations Leetcode Solution2678
654Heap Sort2676
655Find all triplets with zero sum2675
656All Unique Triplets that Sum up to a Given Value2672
657Find whether a subarray is in form of a mountain or not2670
658Maximum Frequency Stack Leetcode Solution2665
659Find all pairs (a, b) in an array such that a % b = k2665
660Validate Binary Search Tree2660
661Add two numbers2650
662Find First and Last Position of Element in Sorted Array LeetCode Solution2645
663Convert Sorted List to Binary Search Tree2644
664Longest Subarray Having Count of 1s One More than Count of 0s2643
665Bubble sort using two Stacks2642
666Count Distinct Elements in Every Window of Size K2640
667Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2640
668Length of Longest Fibonacci Subsequence2636
669Minimum time required to rot all oranges2631
670How to Efficiently Implement k Stacks in a Single Array?2628
671Sort 0s 1s and 2s in an Array2627
672Isomorphic Strings LeetCode Solution2626
673Counting Bits2624
674Split Array Into Consecutive Subsequences2623
675Queries on Probability of Even or Odd Number in given Ranges2622
676Largest Sum Contiguous Subarray2621
677Find four elements that sum to a given value (Hashmap)2617
678Huffman Coding2617
679Detect Capital Leetcode Solution2615
680Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2607
681Binary Tree Right Side View LeetCode Solution2606
682Partition Problem2604
683Minimum Swaps to Group All 1’s Together Leetcode Solution2597
684Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2595
685Populating Next Right Pointers in Each Node Leetcode Solution2592
686Print all subarrays with 0 sum2590
687Remove Palindromic Subsequences Leetcode Solution2588
688Range Sum Query 2D – Immutable LeetCode Solution2587
689Remove brackets from an algebraic string containing + and – operators2587
690Count ways to reach the nth stair using step 1, 2 or 32581
691Populating Next Right Pointers in Each Node2576
692String comparison containing wildcards2575
693Rotate Array2574
694Arithmetic Slices II – Subsequence LeetCode Solution2570
695Count Good Nodes in Binary Tree LeetCode Solution2569
696Partition to K Equal Sum Subsets Leetcode Solution2562
697Binary Tree to Binary Search Tree Conversion2551
698Find pairs with given sum such that elements of pair are in different rows2549
699Merge Two Sorted Lists Leetcode2543
700Maximum Number of Chocolates to be Distributed Equally Among k Students2540
701Concatenation of Array LeetCode Solution2535
702Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2535
703Check if a Linked list of Strings form a Palindrome2535
704Minimum Sum Path in a Triangle2529
705Web Crawler LeetCode Solution2526
706Happy Number2517
707Swap Kth Node from beginning with Kth Node from End2512
708Find Duplicate Subtrees2502
709Check if String Follows Order of Characters by a Pattern or not2501
710Difference Array | Range update query in O(1)2497
711Inorder Successor of a node in Binary Tree2496
712Queue Reconstruction by Height2496
713Contiguous Array Leetcode2495
714Increasing Subsequence of Length three with Maximum Product2495
715Topological Sorting2493
716Find All Pairs With a Given Difference2488
717Breadth First Search (BFS) for a Graph2485
718Alien Dictionary2480
719Remove duplicates from sorted array2467
720Maximum Distance in Array2466
721Longest Common Prefix Using Binary Search II2464
722Root to Leaf path with target sum Leetcode Solutions2462
723Partition Equal Subset Sum2458
724Maximum Product Subarray II2458
725Container with Most Water2456
726Elements Appear more than N/K times in Array2452
727Count Minimum Steps to Get the given Array2441
728Sum Root to Leaf Numbers LeetCode Solution2438
729Minimum Swaps to Make Strings Equal Leetcode Solution2437
730Substring With Concatenation Of All Words2436
731Climbing stairs2430
732Finding K closest element2421
733Delete Nodes and Return Forest Leetcode Solution2416
734Deletion in a Binary Tree2415
735Reverse Nodes in K-Group2414
736An Interesting Method to generate Binary Numbers from 1 to n2413
737Longest Increasing Subsequence2406
738Score of Parenthesis LeetCode Solution2405
739Parallel Courses II LeetCode Solution2402
740Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2401
741Minimum Number of Arrows to Burst Balloons LeetCode Solution2400
742Delete Nth node from the end of the given linked list2400
743Minimum Cost to Move Chips to The Same Position LeetCode Solution2399
744Symmetric Tree2398
745Iterative Depth First Traversal of Graph2394
746Find the first repeating element in an array of integers2393
747Merge K Sorted Linked Lists2385
748Longest Common Prefix Word by Word Matching2385
749Check if all levels of two Binary Tree are anagrams or not2384
750Linked List Cycle2383
751Kill Process LeetCode Solution2377
752Union and Intersection of two Linked Lists2373
753Boundary Traversal of binary tree2372
754Sort Array by Increasing Frequency Leetcode Solution2371
755Minimum Size Subarray Sum2371
756Find K Closest Elements LeetCode Solution2367
757MiniMax Algorithm2362
758Pancake Sorting2362
759Verify Preorder Serialization of a Binary Tree2361
760Non-overlapping sum of two sets2360
761Rearrange an Array Such that arr[i] is equal to i2359
762Find Maximum of Minimum for Every Window Size in a Given Array2358
763Iterative Preorder Traversal2356
764Level of Each node in a Tree from source node2355
765Minimum Remove to Make Valid Parentheses LeetCode Solution2349
766Nested List Weight Sum II LeetCode Solution2348
767New 21 Game2348
768Construct Binary Tree from given Parent Array representation2347
769Reservoir Sampling2340
770Level order traversal using two Queues2336
771Check if a queue can be sorted into another queue using a stack2334
772Given a binary tree, how do you remove all the half nodes?2330
773BFS vs DFS for Binary Tree2329
774Find the Difference Leetcode Solution2327
775Count pairs from two linked lists whose sum is equal to a given value2327
776Valid Anagrams2325
777Merging Intervals2317
778Reorder Array Using Given Indexes2315
779Range LCM Queries2313
780Matrix Chain Multiplication2311
781Maximum size subarray sum equals k2309
782Palindrome Partitioning2307
783Smallest Range II Leetcode Solution2302
784Flatten Binary Tree to Linked List LeetCode Solution2298
785K maximum sums of overlapping contiguous sub-arrays2298
786Vertical sum in a given binary tree2297
787Maximum Product Subarray2295
788Remove Duplicates from Sorted List II2293
789Defanging an IP Address LeetCode Solution2290
790Sum of f(a[i], a[j]) over all pairs in an array of n integers2288
791Print a Binary Tree in Vertical Order2280
792Friends Of Appropriate Ages LeetCode Solution2278
793Check if Two Expressions With Brackets are Same2270
794Valid Triangle Number LeetCode Solution2264
795Maximum difference between two elements such as larger element comes after smaller2262
796Super Ugly Number2259
797Flatten 2D Vector LeetCode Solution2257
798Largest Submatrix With Rearrangements LeetCode Solution2257
799Find subarray with given sum (Handles Negative Numbers)2253
800Find Three Element From Different Three Arrays Such That a + b + c = sum2251
801Balanced Binary Tree2251
802Number Of Longest Increasing Subsequence2250
803Check if any two intervals overlap among a given set of intervals2248
804The Painter’s Partition Problem2244
805Find Maximum Sum Possible Equal Sum of Three Stacks2244
806Find K Length Subarray of Maximum Average2242
807Employee Importance LeetCode Solution2240
808Minimum Distance Between BST Nodes Leetcode Solution2238
809Check if a given array can represent Preorder Traversal of Binary Search Tree2234
810Lowest Common Ancestor2233
811Boolean Parenthesization Problem2226
812Unique Binary Search Trees LeetCode Solution2225
813Count number of triplets with product equal to given number2219
814Find Peak Element2218
815Missing Number2218
816Closest Leaf in a Binary Tree LeetCode Solution2214
817Check if two nodes are on the same path in a Tree2214
818Maximum subsequence sum such that no three are consecutive2213
819Minimum insertions to form a palindrome with permutations allowed2209
820Create Maximum Number2209
821Third Maximum Number Leetcode Solution2207
822Array Nesting Leetcode Solution2207
823Find Smallest Range Containing Elements from k Lists2204
824Largest BST Subtree LeetCode Solution2202
825Kth Smallest Element in a Sorted Matrix LeetCode Solution2199
826Peak Index in a Mountain Array LeetCode Solution2196
827Check Completeness of a Binary Tree LeetCode Solution2188
828Find distance between two nodes of a Binary Tree2187
829Distinct Subsequences2185
830Valid Triangle Number LeetCode Solution2184
831Newman-Conway Sequence2178
832Hamming Distance2175
833Find Sum of all unique sub-array sum for a given array2174
834Print All Distinct Elements of a Given Integer Array2173
835Find Common Characters Leetcode Solution2168
836Maximum number of segments of lengths a, b and c2168
837Largest divisible pairs subset2168
838Find Element Using Binary Search in Sorted Array2167
839Arrange given numbers to form the biggest number2165
840Valid Parenthesis String2164
841First Bad Version2160
842Sorting a K Sorted Array2157
843Number of siblings of a given Node in n-ary Tree2156
844Print all triplets in sorted array that form AP2153
845Merging Two Sorted Arrays2152
846Products of ranges in an array2148
847Bottom View of a Binary Tree2144
848Longest Palindromic Subsequence2144
849Sort Elements by Frequency II2141
850Path Sum2139
851Iterative Postorder Traversal Using Two Stacks2135
852Tree Traversal (Preorder, Inorder & Postorder)2135
853Lower Case To Upper Case2132
854Stone Game IV LeetCode Solution2128
855Find the largest multiple of 32118
856Four Elements that Sum to Given2118
857Shuffle an Array2115
858Largest subarray with equal number of 0s and 1s2114
859Diagonal Traversal of Binary Tree2109
860Count and Say2104
861Print Right View of a Binary Tree2103
862Range Sum Query using Sparse Table2102
863Stone Game IV LeetCode Solution2101
864Merge Two Sorted Arrays2100
865Encoded String With Shortest Length LeetCode Solution2097
866Median of Two Sorted Arrays2096
867Compare Strings by Frequency of the Smallest Character Leetcode Solution2094
868Subset Sum Problem in O(sum) space2092
869Segment Tree2091
870Averages of Levels in Binary Tree2085
871Permutations of a Given String Using STL2084
872Isomorphic Strings2083
873Contiguous Array2082
874Binary array after M range toggle operations2077
875Longest Bitonic Subsequence2076
876Next Greater Element in an Array2075
877Closest Binary Search Tree Value Leetcode Solution2072
878Find Nth Node2070
879Unique Binary Search Trees2069
880Maximum Sum of 3 Non-Overlapping Subarrays2067
881Minimum Swaps To Make Sequences Increasing LeetCode Solution2066
882Valid Number2064
883Infix to Postfix2064
884Find Largest d in Array such that a + b + c = d2063
885Find unique character in a string2063
886Red-Black Tree Introduction2056
887Maximum difference between frequency of two elements such that element having greater frequency is also greater2053
888Orderly Queue LeetCode Solution2052
889Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2051
890Count Primes in Ranges2045
891Height of a generic tree from parent array2044
892Maximum Population Year LeetCode Solution2043
893Transform a BST to Greater sum Tree2039
894Binary Tree Longest Consecutive Sequence LeetCode Solution2033
895Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2031
896Bold Words in String LeetCode Solution2031
897Maximum Product Subarray2026
898Friends Pairing Problem2023
899Minimum sum of squares of character counts in a given string after removing k characters2013
900Valid Perfect Square LeetCode Solution2008
901Range Minimum Query (Square Root Decomposition and Sparse Table)2003
902Insert Delete GetRandom2003
903Trapping Rain Water II LeetCode Solution1998
904Serialize and Deserialize Binary Tree1997
905Sentence Screen Fitting LeetCode Solution1996
906Kth Smallest Number in Multiplication Table Leetcode Solution1996
907Swap Nodes In Pairs1992
908Binary Search Tree Delete Operation1988
909Shuffle a given Array1987
910Diameter of N-Ary Tree LeetCode Solution1983
911Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution1977
912Write a function to get the intersection point of two Linked Lists1977
913The Number of Weak Characters in the Game LeetCode Solution1975
914Next greater element1975
915Integer to Roman1963
916Reorganize String1955
917Convert BST into a Min-Heap without using array1954
918Array Queries for multiply replacements and product1945
919Maximum Product Subarray1942
920Find Minimum In Rotated Sorted Array1934
921K’th Largest Element in BST when modification to BST is not allowed1928
922Total Hamming Distance LeetCode Solution1927
923Next Greater Element II LeetCode Solution1925
924Koko Eating Bananas LeetCode Solution1924
925Advantages of BST over Hash Table1924
926Maximum Sum Increasing Subsequence1910
927Edit Distance1910
928Constant time range add operation on an array1908
929Best Meeting Point LeetCode Solution1906
930Longest Increasing Consecutive Subsequence1905
931Lowest Common Ancestor in Binary Search Tree1904
932Level Order Traversal of Binary Tree1904
933Check if an Array is Stack Sortable1900
934Serialize and Deserialize Binary Tree LeetCode Solution1899
935Clone a Binary Tree with Random Pointers1896
936Find the smallest binary digit multiple of given number1895
937Image Overlap LeetCode Solution1891
938Moving Stones Until Consecutive Leetcode Solution1887
939Power of Two1886
940Print n terms of Newman-Conway Sequence1883
941Range Queries for Longest Correct Bracket Subsequence1878
942K’th Largest element in BST using constant extra space1878
943Reverse a Path in BST using Queue1878
944Numbers with prime frequencies greater than or equal to k1876
945Write Code to Determine if Two Trees are Identical1875
946Greatest Sum Divisible by Three LeetCode Solution1874
947Valid Tic-Tac-Toe State LeetCode Solution1873
948Queries on XOR of greatest odd divisor of the range1867
949Design Underground System Leetcode Solution1866
950A program to check if a binary tree is BST or not1866
951Check for Palindrome after every character replacement Query1856
952Count and Toggle Queries on a Binary Array1855
953Print Next Greater Number of Q queries1855
954Insert into a Sorted Circular Linked List LeetCode Solution1854
955Design Add and Search Words Data Structure LeetCode Solution1854
956Closest Binary Search Tree Value II LeetCode Solution1851
957Find the node with minimum value in a Binary Search Tree1851
958Factorial Trailing Zeroes LeetCode Solution1848
959Largest Plus Sign Leetcode Solution1841
960Number of Orders in the Backlog Leetcode Solution1839
961Count the Pairs at Same Distance as in English Alphabets1838
962Check if X can give change to every person in the Queue1837
963Queries for Decimal Values of Subarrays of a Binary Array1836
964Check if each internal node of a BST has exactly one child1836
965Maximum Array from Two given Arrays Keeping Order Same1831
966Collect maximum points in a grid using two traversals1827
967Merge two BSTs with limited extra space1826
968Find minimum number of merge operations to make an array palindrome1822
969Merge Sort1821
970Dividing Array into Pairs With Sum Divisible by K1819
971Form minimum number from given sequence1817
972Group Shifted Strings Leetcode Solution1806
973Number of elements less than or equal to a given number in a given subarray1802
974Merge Sorted Array1801
975Longest Substring Without Repeating Characters Leetcode Solution1795
976Maximum difference between first and last indexes of an element in array1792
977Priority Queue1787
978Print modified array after multiple array range increment operations1784
979Count even length binary sequences with same sum of first and second half bits1780
980Cutting a Rod1771
981Form Minimum Number From Given Sequence1766
982Graph Cloning1763
983Find maximum average subarray of k length1755
984Swim in Rising Water LeetCode Solution1747
985Count Pairs Whose Products Exist in Array1744
986Minimum Moves to Equal Array Elements LeetCode Solution1737
987Excel Sheet Column Number LeetCode Solution1735
988Print Ancestors of a Given Binary Tree Node Without Recursion1732
989Unique Paths II1730
990Excel Sheet Column Title LeetCode Solution1719
991Binary Search Tree1719
992Guess The Word1719
993Longest Common Prefix using Character by Character Matching1719
994Kth Smallest Element in a BST1718
995Print all Possible Ways to Break a String in Bracket Form1718
996K Empty Slots1716
997Decrease Elements To Make Array Zigzag LeetCode Solution1715
998Palindrome Partitioning1712
999Regular Expression Matching1710
1000Check given array of size n can represent BST of n levels or not1708
1001Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1705
1002Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1705
1003Binary Search Tree Search and Insertion1694
1004How to print maximum number of A’s using given four keys1693
1005Sum of Left Leaves LeetCode Solution1676
1006Find postorder traversal of BST from preorder traversal1662
1007Sorted Array to Balanced BST1660
1008Maximum weight transformation of a given string1652
1009Queries for Number of Distinct Elements in a Subarray1634
1010Construct Complete Binary Tree from its Linked List Representation1628
1011Find the Town Judge LeetCode Solution1619
1012Maximum Depth Of Binary Tree1613
1013Symmetric Tree LeetCode Solution Leetcode Solution1606
1014Binary Tree to Binary Search Tree Conversion using STL set1604
1015Iterative method to find ancestors of a given binary tree1604
1016Shortest Unsorted Continuous Subarray LeetCode Solution1603
1017Random Pick Index LeetCode Solution1585
1018Search in Sorted Rotated Array1584
1019Data Structure Designing1582
1020Search an Element in Sorted Rotated Array1542
1021Find Maximum Depth of Nested Parenthesis in a String1542
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1526
1023Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1524
1024Kth Smallest Product of Two Sorted Arrays LeetCode Solution1505
1025Next Greater Element I Leetcode Solution1459
1026Maximum Binary Tree1455
1027Print Maximum Length Chain of Pairs1442
1028Flatten Binary Tree to Linked List LeetCode Solution1425
1029Find k-th smallest element in BST (Order Statistics in BST)1395
1030Peeking Iterator LeetCode Solution1389
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1379
Translate »