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 Solution42751
2Maximum occurring character in a string19471
3Plus One Leetcode Solution18812
4Valid Parentheses LeetCode Solution18737
53Sum Leetcode Solution16699
6First Repeating Element14861
7Merge Sorted Arrays Leetcode Solution14679
8Single Number Leetcode Solution14582
9Count Primes Leetcode Solutions14263
10Pow(x, n) Leetcode Solution13887
11Sqrt(x) Leetcode Solution13675
12Meeting Rooms II LeetCode Solution12864
13Concatenation of Array LeetCode Solution12453
14Roman to Integer Leetcode Solution11662
15Valid Palindrome Leetcode Solution11491
16Search Insert Position Leetcode Solution11489
17Contains Duplicate II Leetcode Solution11445
18Palindrome Number LeetCode Solution11301
19Jump Game Leetcode Solution10919
20Reverse Vowels of a String Leetcode Solution10905
21Remove Duplicates from Sorted Array Leetcode Solution10778
22Intersection of Two Arrays II Leetcode Solution10767
23Number of Good Pairs Leetcode Solution10662
24Longest Substring Without Repeating Characters LeetCode Solution10615
25Spiral Matrix LeetCode Solution10565
26Kids With the Greatest Number of Candies Leetcode Solution10520
27House Robber Leetcode Solution10414
28Add Binary Leetcode Solution10354
29Maximum Subarray Leetcode Solution10000
30Find the Maximum Repeating Number in Array9764
31Number Of 1 bits9742
32Text Justification LeetCode Solution9594
33Jewels and Stones Leetcode Solution9484
34Move Zeroes LeetCode Solution9396
35Power of Two Leetcode Solution9341
36Longest Palindromic Substring LeetCode Solution9324
37Min Stack Leetcode Solution9305
38Permutations Leetcode Solution9164
39Shuffle String Leetcode Solution9092
40Third Maximum Number Leetcode Solution9004
41Word Search Leetcode Solution8995
42Find All Numbers Disappeared in an Array Leetcode Solution8963
43Next Permutation Leetcode Solution8953
44Daily Temperatures Leetcode Solution8936
45Median of Two Sorted Arrays LeetCode Solution8895
46Search in Rotated Sorted Array Leetcode Solution8830
47Number of Islands LeetCode Solution8805
48Kth Missing Positive Number Leetcode Solution8736
49Maximum Profit in Job Scheduling Leetcode Solution8716
50Longest Common Prefix Leetcode Solution8697
51Evaluation of Postfix Expression8689
52Next Greater Element I Leetcode Solution8634
53Frog Jump Leetcode Solution8551
54Find Minimum Distance Between Two Numbers in an Array8399
55Running Sum of 1d Array Leetcode Solution8309
56Valid Anagram Leetcode Solution8283
57Rotate Image LeetCode Solution8270
58Multiply Strings Leetcode Solution8242
59Shuffle the Array Leetcode Solution8221
60Combination Sum Leetcode Solution8195
61Can Place Flowers LeetCode Solution8184
623Sum Closest LeetCode Solution8118
63House Robber II Leetcode Solution8112
64Bulb Switcher LeetCode Solution8110
65Count and Say Leetcode Solution8099
66Excel Sheet Column Title Leetcode Solution7881
67Koko Eating Bananas Leetcode Solution7846
68Isomorphic Strings Leetcode Solution7834
69Happy Number Leetcode Solution7811
70Subarray and Subsequence7800
71Best Time to Buy and Sell Stock LeetCode Solution7724
72Count Pairs With Given Sum7721
73Integer to Roman Leetcode Solution7701
74Missing Number Leetcode Solution7699
75Majority Element Leetcode Solution7691
76Product of array except self7680
77Strobogrammatic Number LeetCode Solution7634
78Rotate String LeetCode Solution7586
79Reverse String Without Temporary Variable7544
80Candy LeetCode Solution7536
81Is Subsequence Leetcode Solution7455
82Find the Difference Leetcode Solution7437
83Largest Number Leetcode Solution7350
84A Product Array Puzzle7334
85Find the Duplicate Number LeetCode Solution7317
86Find Common Characters Leetcode Solution7316
87Subtract the Product and Sum of Digits of an Integer Leetcode Solution7304
88Expression Evaluation7285
89Binary Search LeetCode Solution7257
90String to Integer (atoi) LeetCode Solution7231
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7214
92Subset Leetcode7133
93Set Matrix Zeroes7131
94Summary Ranges Leetcode Solution7094
95Rabin Karp Algorithm7010
96Sort Characters By Frequency LeetCode Solution7008
97Word Pattern LeetCode Solution6990
98Find the Town Judge Leetcode Solution6987
99Balanced Binary Tree Leetcode Solution6967
100Unique Paths Leetcode Solution6923
101Find the Winner of the Circular Game LeetCode Solution6893
102Arranging Coins Leetcode Solution6893
103String Compression LeetCode Solution6821
104Rearrange Positive and Negative Numbers Alternatively in Array6817
105Repeated Substring Pattern LeetCode Solution6726
106Asteroid Collision LeetCode Solution6716
107Group Anagrams LeetCode Solution6703
108Smallest window in a string containing all characters of another string6683
109Sort Colors LeetCode Solution6645
110Page Replacement Algorithms in Operating Systems6585
111Postfix to Infix Conversion6538
112Best Time to Buy and Sell Stock  II Leetcode Solution6533
113Matrix Chain Multiplication using Dynamic Programming6521
114Sort Array By Parity LeetCode Solution6518
115Zigzag Conversion LeetCode Solution6467
116Divide Two Integers Leetcode Solution6445
117Valid Palindrome II Leetcode Solution6434
118Sum of minimum and maximum elements of all subarrays of size k6399
119Kth largest element in an Array Leetcode Solutions6358
120Generate Parentheses Leetcode Solution6350
121Product of Array Except Self LeetCode Solution6302
122Reverse Integer Leetcode Solution6294
123Assign Cookies Leetcode Solution6287
124Remove Duplicates from Sorted Array II Leetcode Solution6264
125Length of Last Word Leetcode Solution6208
126Bus Routes Leetcode Solution6203
127Merge Two Sorted Lists Leetcode Solutions6202
128Decode String Leetcode Solution6180
129Pascal Triangle Leetcode6175
130H-Index Leetcode Solution6174
131Number of Provinces Leetcode Solution6172
132Linked List Cycle II LeetCode Solution6112
133Convert array into Zig-Zag fashion6080
134Minimum Steps to reach target by a Knight6065
135Defanging an IP Address Leetcode Solution6052
136Optimal Account Balancing LeetCode Solution6034
137Employee Free Time LeetCode Solution6027
138Minimum Cost For Tickets Leetcode Solution6001
139Find the Row with Maximum Number of 1’s5992
140Prefix to Infix Conversion5939
141First element occurring k times in an array5930
142Pascal’s Triangle II Leetcode Solution5915
143Build Array From Permutation Leetcode Solution5900
144Find First and Last Position of Element in Sorted Array Leetcode Solution5878
145Increasing Triplet Subsequence LeetCode Solution5864
146Implementation of Deque using Doubly Linked List5823
147Majority Element II Leetcode Solution5797
148Island Perimeter Leetcode Solution5786
149Robot Room Cleaner Leetcode Solution5775
150Bellman Ford Algorithm5766
151Merge Sorted Array LeetCode Solution5746
152Max Consecutive Ones Leetcode Solution5727
153Find Pair with Given Difference5707
154Check if the Elements of an Array are Consecutive5694
155Swap Nodes in Pairs Leetcode Solutions5692
156K-th Smallest Element in a Sorted Matrix5684
157Guess Number Higher or Lower LeetCode Solution5659
158Fibonacci Number LeetCode Solution5642
159OSI Model5631
160First negative integer in every window of size k5611
161KMP Algorithm5609
162Design Parking System Leetcode Solution5602
163Find the Missing Number5601
164Add Two Numbers II Leetcode Solution5580
165Subarray Sum Equals K LeetCode Solution5574
166Lemonade Change Leetcode Solution5554
167Delete middle element of a stack5553
168Set Matrix Zeroes Leetcode Solution5537
169Trapping Rain Water Leetcode Solution5527
170Coin Change 2 Leetcode Solution5525
171String Compression5515
172First Unique Character in a String LeetCode Solution5509
173Subarray Product Less Than K LeetCode Solution5503
174Length of the largest subarray with contiguous elements5499
175Find All Duplicates in an Array LeetCode Solution5478
176Last Stone Weight5476
177Word Ladder LeetCode Solution5474
178Capacity To Ship Packages Within D Days Leetcode Solution5468
179Palindrome Linked List Leetcode Solution5461
180Monotonic Array LeetCode Solution5460
181Subarray with Given Sum5425
182Find Smallest Missing Number in a Sorted Array5411
183Repeated Substring Pattern5399
184Form Minimum Number from Given Sequence of D’s and I’s5387
185Combinations Leetcode Solution5355
186Remove Duplicates from Sorted List II LeetCode Solution5340
18701 Matrix LeetCode Solution5311
188Reverse Words in a String III LeetCode Solution5298
189Single Element in a Sorted Array LeetCode Solution5281
190Continuous Subarray Sum LeetCode Solution5278
191Valid Perfect Square Leetcode Solution5275
192Same Tree LeetCode Solution5271
193Iterative Implementation of Quick Sort5259
194Prefix to Postfix Conversion5216
195Break a Palindrome LeetCode Solution5192
196Remove Linked List Elements Leetcode Solution5177
197Merge k Sorted Lists Leetcode Solution5165
198Slowest Key Leetcode Solution5161
199Backspace String Compare5151
200Combination Sum5146
201Leetcode Permutations5137
202Relative Ranks Leetcode Solution5117
203Rotate List Leetcode Solution5074
204Maximum Product of Three Numbers LeetCode Solution5061
205Find the Duplicate Element5059
206The K Weakest Rows in a Matrix Leetcode Solution5057
207Top K Frequent Elements LeetCode Solution5048
208Find Peak Element LeetCode Solution5034
209Insert Delete GetRandom O(1) Leetcode Solution5018
210Container With Most Water LeetCode Solution5000
211Second Most Repeated Word in a Sequence4987
212Longest Common Subsequence LeetCode Solution4985
213Printing brackets in Matrix Chain Multiplication Problem4976
214Kth Largest Element in a Stream Leetcode Solution4960
215Cuckoo sequence program4944
216Palindrome Number4943
217Remove All Occurrences of a Substring LeetCode Solution4942
218Make The String Great Leetcode Solution4923
219Rearrange given Array in Maximum Minimum Form4910
220Relative Sort Array Leetcode Solution4899
221Subarray Sum Equals k4899
222Contains Duplicate LeetCode Solution4898
223Max Area of Island4890
224Permutation in String Leetcode Solution4889
225Unique Paths II Leetcode Solution4877
226Convert a Number to Hexadecimal Leetcode Solution4875
227Delete Node in a Linked List Leetcode Solution4850
228Generate all Binary Strings Without Consecutive 1’s4837
229Arithmetic Expression Evaluation4836
230Find Leaders in an Array4835
231Target Sum4831
232Check If Two String Arrays are Equivalent Leetcode Solution4824
233Time Based Key-Value Store LeetCode Solution4798
234N-Queens LeetCode Solution4795
235Moving Average from Data Stream Leetcode Solution4790
236Scramble String4768
237Count Good Nodes in Binary Tree Leetcode Solution4765
238Construct Binary Tree from Given Inorder and Preorder Traversals4756
239Given two unsorted arrays find all pairs whose sum is x4749
240Number of Dice Rolls With Target Sum LeetCode Solution4748
241Find N Unique Integers Sum up to Zero Leetcode Solution4748
242Letter Combinations of a Phone Number4738
243Next Permutation4731
244LRU Cache LeetCode Solution4713
245Check If N and Its Double Exist Leetcode Solution4710
246Find Triplet in Array With a Given Sum4698
247Stone Game LeetCode4682
248Flipping an Image LeetCode Solution4658
249Minimum swaps required to bring all elements less than or equal to k together4643
250Number of Steps to Reduce a Number to Zero Leetcode Solution4640
251Prim’s Algorithm4639
252Reverse Only Letters LeetCode Solution4636
253Remove Minimum Characters so that Two Strings Become Anagrams4620
254Min Cost Climbing Stairs LeetCode Solution4608
255Find The Duplicate Number4600
256Stock Buy Sell to Maximize Profit4600
257Student Attendance Record I Leetcode Solution4584
258Minimum Knight Moves LeetCode Solution4578
259Top K Frequent Elements4569
260To Lower Case Leetcode Solution4543
261Minimum Operations to convert X to Y4521
262The kth Factor of n Leetcode Solution4510
263Smallest Positive Number Missing in an Unsorted Array4508
264Min Stack4507
265License Key Formatting Leetcode Solution4503
266Reverse words in a string4491
267Maximum Subarray Sum using Divide and Conquer4472
268Maximum Sum Increasing Subsequence4440
269Single Number4429
270Maximum Population Year LeetCode Solution4421
271Search Suggestions System LeetCode Solution4412
272Special Array With X Elements Greater Than or Equal X Leetcode Solution4397
273Find the Number Occurring Odd Number of Times in an Array4389
274Sum of Subarray Ranges Leetcode Solution4378
275Reformat Date LeetCode Solution4377
276Find Words That Can Be Formed by Characters Leetcode Solution4375
277Top K Frequent Words LeetCode Solution4373
278Longest Common Subsequence4368
279Remove Nth Node From End of List Leetcode Solution4351
280Minimum Path Sum Leetcode Solution4326
281Maximum Depth of Binary Tree Leetcode Solution4297
282N-th Tribonacci Number Leetcode Solution4295
283Reveal Cards In Increasing Order Leetcode Solution4279
284Reverse individual words4278
285Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4269
286Intersection of Two Arrays4267
287BFS for Disconnected Graph4265
288Evaluate Division4240
289Last Stone Weight II LeetCode Solution4236
290Maximize Distance to Closest Person LeetCode Solution4231
291House Robber4230
292Minimum Characters to be Added at Front to Make String Palindrome4224
293Best Time to Buy and Sell Stock III Leetcode Solution4218
294Diagonal Traverse LeetCode Solution4214
295Remove Duplicates from Sorted List LeetCode Solution4213
296Find any one of the multiple repeating elements in read only array4209
297Count Number of Occurrences in a Sorted Array4183
298Count of index pairs with equal elements in an array4181
299Length of Longest valid Substring4180
300Design A Leaderboard Leetcode Solution4175
301Binary Tree Inorder Traversal LeetCode Solution4174
302Find if Path Exists in Graph Leetcode Solution4168
303Sort Elements by Frequency of Occurrences4159
304Most Frequent Element in an Array4149
305Minimum number of Merge Operations to make an Array Palindrome4131
306Implement a stack using single queue4115
307Maximum Size Subarray Sum Equals k Leetcode Solution4110
308Range Sum Query 2D – Immutable Leetcode Solution4104
309Find the Closest Palindrome number4083
310Reverse Nodes in k-Group LeetCode Solution4079
311Brightest Position on Street LeetCode Solution4076
312Find Leaves of Binary Tree LeetCode Solution4069
313Mobile Numeric Keypad Problem4066
314Reverse Bits4044
315Partition Array Into Three Parts With Equal Sum Leetcode Solution4043
316Remove All Ones With Row and Column Flips Leetcode Solution4036
317Spiral Matrix II Leetcode Solution4031
318Find Index of Closing Bracket for a Given Opening Bracket in an Expression4030
319Sudoku Solver4029
320Special Positions in a Binary Matrix Leetcode Solution4026
321Invalid Transactions LeetCode Solution4023
322Sort Array By Parity II Leetcode Solution4007
323Symmetric Tree Leetcode Solution4000
324Shortest Word Distance Leetcode Solution3999
325Paint House LeetCode Solution3983
326Arrange given Numbers to Form the Biggest Number II3972
327Diagonal Traversal LeetCode Solution3971
328One Edit Distance LeetCode Solution3967
329Maximum Subarray3951
330Find Duplicates in an Array in Most Efficient Way3946
331Split Linked List in Parts Leetcode Solution3943
332Binary Tree Zigzag Level Order Traversal LeetCode Solution3930
333Remove Invalid Parentheses Leetcode Solution3924
334Rank Transform of an Array Leetcode Solution3920
335Jump Game3915
336Largest Rectangle in Histogram LeetCode Solution3914
337Partition Labels LeetCode Solution3901
338Unique Paths3901
339Round Robin Scheduling3897
340Minimum Moves to Equal Array Elements Leetcode Solution3894
341Dijkstra Algorithm3888
342Alien Dictionary LeetCode Solution3881
343Hamming Distance Leetcode Solution3879
344Construct BST from its given Level Order Traversal3876
345Range Sum of BST LeetCode Solution3852
346Bitwise AND of Numbers Range LeetCode Solution3848
347Find Winner on a Tic Tac Toe Game Leetcode Solution3847
348Maximal Square3846
349The Celebrity Problem3842
350Minimum operation to make all elements equal in array3841
351Least Number of Unique Integers after K Removals Leetcode Solution3835
352Lowest Common Ancestor of a Binary Tree Leetcode Solution3834
353Tug of War3834
354Minimum Depth of Binary Tree Leetcode Solution3829
355Next Permutation LeetCode Solution3824
356Minimum Time to Collect All Apples in a Tree LeetCode Solution3814
357String Matching in an Array Leetcode Solution3812
358Pair of Positive Negative Values in an Array3804
359Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3798
360Maximum Circular Subarray Sum3796
361Merge Two Sorted Linked Lists3787
362Longest Common Prefix using Trie3787
363Check whether Strings are K Distance Apart or Not3786
364Smallest Subarray with k Distinct Numbers3778
365Given an Array of Pairs Find all Symmetric Pairs in it3775
366Transpose Graph3770
367Minimum Time Visiting All Points Leetcode Solution3768
368Minimum Cost to Hire K Workers3765
369K Empty Slots LeetCode3758
370Count of Triplets With Sum Less than Given Value3758
371Clone Graph LeetCode Solution3754
372Next Greater Element III LeetCode Solution3752
373Find minimum difference between any two elements3733
374Unique Paths III LeetCode Solution3730
375Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3727
376Sort a stack using a temporary stack3727
377Implementation of Deque using circular array3724
378Validate Stack Sequences LeetCode Solution3722
379Regular Expression Matching Regular Expression Matching LeetCode Solution3722
380Check if a given array contains duplicate elements within k distance from each other3721
381Robot Bounded In Circle LeetCode Solution3719
382Ugly Number II LeetCode Solution3715
383Minimize Maximum Pair Sum in Array LeetCode Solution3710
384Postfix to Prefix Conversion3709
385Substring with Concatenation of All Words Leetcode Solution3706
386Invert Binary Tree LeetCode Solution3686
387Invert Binary Tree LeetCode Solution3684
388Longest Substring with At Most K Distinct Characters LeetCode Solution3680
389Non-decreasing Array LeetCode Solution3674
390Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3668
391Permutation Sequence LeetCode Solution3666
392Kruskal Algorithm3662
393Sliding Window Technique3660
394Recursion3659
395Design Browser History LeetCode Solution3650
396Graph Valid Tree LeetCode Solution3648
397Missing Element in Sorted Array LeetCode Solution3644
398Longest subarray not having more than K distinct elements3641
399LRU Cache Implementation3641
400Kth Smallest Element in a BST Leetcode Solution3637
401Find the Smallest Divisor given a Threshold Leetcode Solution3635
402Find the subarray with least average3634
403Find duplicates in a given array when elements are not limited to a range3633
404Word Search3630
405Find the First and Second Smallest Elements3628
406Stack Permutations (Check if an array is stack permutation of other)3622
407Toeplitz Matrix3622
408Number of Islands II LeetCode Solution3621
409Path With Maximum Minimum Value LeetCode Solution3617
410Longest subsequence such that difference between adjacents is one3614
411Common elements in all rows of a given matrix3608
412Boolean Parenthesization Problem3607
413First Circular Tour to Visit all the Petrol Bunks3606
414Find Top K (or Most Frequent) Numbers in a Stream3603
415Stone Game II Leetcode3603
416Partition List Leetcode Solution3600
417K Closest Points to Origin Leetcode Solution3599
418Convert Sorted Array to Binary Search Tree LeetCode Solutions3597
419Sequences of given length where every element is more than or equal to twice of previous3596
420Queries for counts of array elements with values in given range3595
421Find Maximum Level sum in Binary Tree3591
422Combination Sum IV LeetCode Solution3590
423Max stack3588
424Integer Break LeetCode Solution3581
425Number Complement Leetcode Solution3581
426Snakes and Ladders LeetCode Solution3577
427Number of Smaller Elements on Right Side3574
4283 Sum3571
429Search a 2D Matrix II Leetcode Solution3564
430Maximum Number of Occurrences of a Substring Leetcode Solution3553
431Painting Fence Algorithm3553
432Top View of Binary Tree3549
433Minesweeper LeetCode Solution3544
434Find the Peak Element from an Array3541
435Odd Even Linked List Leetcode Solution3539
436Nth Catalan Number3533
437Can Make Arithmetic Progression From Sequence Leetcode Solution3531
438Longest Palindrome can be Formed by Removing or Rearranging Characters3527
439LRU Cache Leetcode Solution3525
440Insert Interval Leetcode Solution3523
441Sort elements by frequency3523
442Priority Queue using doubly linked list3521
443Find Minimum in Rotated Sorted Array II LeetCode Solution3512
444Maximum Consecutive Numbers Present in an Array3510
445Rearrange array such that even positioned are greater than odd3509
446Check if Two given Strings are Isomorphic to each other3501
447Consecutive Characters LeetCode Solution3500
448Search in a Binary Search Tree Leetcode Solution3496
449Flood Fill LeetCode3487
450High Five LeetCode Solution3478
451Distance of nearest cell having 1 in a binary matrix3471
452Shortest Palindrome3463
453Sliding Window Maximum LeetCode Solution3452
454Expression Contains Redundant Bracket or Not3452
455Design a stack that supports getMin() in O(1) time and O(1) extra space3450
456Move All the Zeros to the End of the Given Array3442
4574Sum3440
458Replace Elements with Greatest Element on Right Side Leetcode Solution3436
459Kth Non-repeating Character3433
460Minimum Absolute Difference in BST Leetcode Solution3432
461Number of Closed Islands Leetcode Solution3429
462Gold Mine Problem3426
463Insert into a Binary Search Tree Leetcode Solution3425
464Decompress Run-Length Encoded List Leetcode Solution3421
465Find a Peak Element II LeetCode Solution3418
466Tiling Problem3416
467Spiral Matrix III LeetCode Solution3412
468Fibonacci Number LeetCode Solution3409
469Integer to English words3407
470Check If Array Pairs Are Divisible by k LeetCode Solution3405
471Queries for GCD of all numbers of an array except elements in a given range3404
472Count items common to both the lists but with different prices3399
473N queen problem3397
474Minimum Path Sum3394
475Restore IP Addresses Leetcode Solution3388
476Balanced Expression with Replacement3387
477Coin Change Problem3380
478Trapping Rain Water LeetCode Solution3378
479Evaluate Reverse Polish Notation LeetCode Solution3371
480Find All Possible Recipes from Given Supplies LeetCode Solution3371
481Sorting array using Stacks3370
482Longest Common Prefix using Sorting3368
483Binary Tree Maximum Path Sum LeetCode Solution3363
484Convert Sorted Array to Binary Search Tree Leetcode Solution3359
485Sliding Window Median Leetcode Solution3353
486Sort an array according to the order defined by another array3343
487Majority Element3342
488Sort Colors3340
489Best Time to Buy and Sell Stock3337
490Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3331
491Palindrome Substring Queries3329
492Vertical Order Traversal of Binary Tree LeetCode Solution3328
493Cells with Odd Values in a Matrix LeetCode Solution3328
494Find Pythagorean Triplets from Array3328
495Priority Queue in C++3326
496Interval Tree3318
497Number of Days Between Two Dates LeetCode Solution3317
498The Stock Span Problem3308
499Reverse a linked list3308
500Minimum Number of Taps to Open to Water a Garden LeetCode Solution3300
501Path Sum II LeetCode Solution3293
502Is Graph Bipartite? LeetCode Solution3281
503Largest rectangular sub-matrix whose sum is 03273
504Camelcase Matching Leetcode Solution3272
505Pancake Sorting Problem3265
506Find Median from Data Stream LeetCode Solution3259
507Intersection of Two Linked Lists LeetCode Solution3259
508Subset sum problem3258
509Custom Sort String Leetcode Solution3256
510Different Ways to Add Parentheses Leetcode Solution3253
511Find the first Repeating Number in a Given Array3253
512Kth ancestor of a node in binary tree3252
513Queue using Stacks3251
514Sieve of Eratosthenes3251
515How to Implement Stack Using Priority Queue or Heap?3249
516Design Hit Counter LeetCode Solution3241
517Divide Chocolate LeetCode Solution3237
518Shortest Completing Word Leetcode Solution3235
519Multiplication of Two Matrices3232
520Analyze User Website Visit Pattern LeetCode Solution3229
521Longest Increasing Path in a Matrix LeetCode Solution3229
522Scramble String LeetCode Solution3218
523Fibonacci numbers3218
524Find a Fixed Point in a Given Array3212
525Check if Array Contains Contiguous Integers With Duplicates Allowed3208
526Count subarrays having total distinct elements same as original array3208
527Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3206
528Count Submatrices With All Ones LeetCode Solution3204
529Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3202
530Perfect Squares LeetCode Solution3193
531Detect a loop in the Linked List3192
532Group Anagrams3191
533Queue based approach for first non-repeating character in a stream3188
534Implement Trie (Prefix Tree) Leetcode Solution3176
535Path Crossing Leetcode Solution3174
536Monotonic Array Leetcode Solution3173
537Number of Distinct Islands Leetcode Solution3172
538Reorder Data in Log Files LeetCode Solution3167
539Minimum Height Trees3161
540Merge Overlapping Intervals3155
541Generate all Binary Strings from Given Pattern3155
542Valid Boomerang Leetcode Solution3152
543Champagne Tower LeetCode Solution3145
544Longest Common Prefix using Divide and Conquer3145
545Find the Lost Element From a Duplicated Array3143
546Construction of Longest Increasing Subsequence (N log N)3142
547How to Create Mergable Stack?3140
548Nearest Exit from Entrance in Maze LeetCode Solution3138
549Insert Node in the Sorted Linked List3135
550Maximum Sum of Non Consecutive Elements3130
551Decode Ways3127
552Sort a stack using recursion3121
553Shifting Letters LeetCode Solution3119
554Race Car LeetCode Solution3110
555First missing positive3107
556Find if an Expression has Duplicate Parenthesis or Not3104
557Palindrome Permutation LeetCode Solution3103
558Build an Array With Stack Operations Leetcode Solution3102
559Most Stones Removed with Same Row or Column LeetCode Solution3097
560Sliding Window Maximum3096
561Recover Binary Search Tree3095
562Count Possible Triangles3095
563Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3094
564Binary Tree zigzag level order Traversal3091
565LCS (Longest Common Subsequence) of three strings3089
566Smallest Good Base3088
567Find maximum length Snake sequence3087
568Merge Two Binary Trees LeetCode Solution3086
569Maximum Element in an Array which is Increasing and then Decreasing3086
570Find a Sorted Subsequence of size 33085
571Implement strStr() LeetCode Solution3081
572Decode String3080
573Morris Traversal3079
574Rectangle Overlap LeetCode Solution3077
575Number of Equivalent Domino Pairs Leetcode Solution3070
576Palindrome Partitioning Leetcode Solution3061
577Minimum Bracket Reversals3060
578Letter Case Permutation3060
579Print all Palindromic Partitions of a String3059
580Longest Substring with At Least K Repeating Characters LeetCode Solution3058
581Minimum Height Trees LeetCode Solution3057
582Recover Binary Search Tree Leetcode Solution3053
583Guess Number Higher or Lower II3046
584Largest Subarray with Equal Number of 0’s and 1’s3046
585Contiguous Array LeetCode Solution3045
586Distance Between Bus Stops Leetcode Solution3044
587Minimum number of jumps to reach end3043
588Best Time to Buy and Sell Stock IV LeetCode Solution3037
589Longest Repeated Subsequence3030
590Maximum Number of Ways to Partition an Array LeetCode Solution3027
591K-th Distinct Element in an Array3023
592All Possible Full Binary Trees LeetCode Solution3022
593Design a Stack With Increment Operation Leetcode Solution3021
594Maximum Length of Chain Pairs3020
595Find the Town Judge LeetCode Solution3017
596Maximum Depth of N-ary Tree Leetcode Solution3014
597Reorder an Array According to the Given Indexes3013
598Find the two Numbers with Odd Occurrences in an Unsorted Array2997
599Design Skiplist LeetCode Solution2996
600Group Multiple Occurrence of Array Elements Ordered by first Occurrence2996
601Mean of Array After Removing Some Elements Leetcode Solution2991
602Implement Two Stacks in an Array2990
603Subarrays with K Different Integers Leetcode Solution2985
604The Maze III LeetCode Solution2983
605Check for Balanced Parentheses in an Expression2981
606Jump Game IV LeetCode Solution2979
607Valid Parentheses Leetcode Solution2979
608Sort a String According to Another String2974
609Rearrange Spaces Between Words Leetcode Solution2971
610Maximize Elements Using Another Array2971
611Maximum sum rectangle in a 2D matrix2961
612Contains Duplicate2949
613Minimum Jumps to Reach Home LeetCode Solution2938
614Convert BST to Min Heap2928
615Count pair with Given Sum2926
616Word Break2920
617Palindrome Permutations of a String2915
618Perform String Shifts Leetcode2913
619Maximum Score After Splitting a String Leetcode Solution2904
620Iterative Method to find Height of Binary Tree2904
621Valid Sudoku2904
622Edit Distance LeetCode Solution2902
623Possible Bipartition LeetCode Solution2899
624Find the First Circular Tour that visits all the Petrol Pumps2899
625Find the Minimum Element in a Sorted and Rotated Array2891
626Maximum Product of Splitted Binary Tree LeetCode Solution2880
627A Space Optimized DP solution for 0-1 Knapsack Problem2880
628Reach a Number LeetCode Solution2879
629Best Meeting Point LeetCode Solution2870
630Heap Sort2867
631Merge Two Balanced Binary Search Trees2861
632Number of palindromic paths in a matrix2856
633Lowest Common Ancestor of a Binary Search Tree Leetcode Solution2850
634Count Sub Islands LeetCode Solution2848
635Merge Overlapping Intervals II2847
636Sorted Linked List to Balanced BST2844
637Find Largest Value in Each Tree Row LeetCode Solution2842
638Segregate 0s and 1s in an Array2839
639Find the Subarray of given length with Least Average2839
640Brick Wall LeetCode Solution2830
641My Calendar I LeetCode Solution2830
642Caesar Cipher2829
643Swapping Nodes in a Linked List Leetcode Solution2826
644Palindromic Substrings Leetcode Solution2825
645All Unique Triplets that Sum up to a Given Value2822
646Check if the given array can represent Level Order Traversal of Binary Search Tree2821
647Construct BST from given Preorder Traversal2811
648Level order Traversal in Spiral Form2811
649Find First and Last Position of Element in Sorted Array LeetCode Solution2810
650Find Median from data Stream2805
651Palindrome Permutation2797
652Pair with given product2794
653Huffman Coding2787
654Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2786
655Merge K Sorted Arrays and Print Sorted Output2785
656Word Pattern2780
657Maximize Sum of Array after K Negations Leetcode Solution2769
658Partition Problem2768
659Find all triplets with zero sum2766
660Validate Binary Search Tree2755
661Print Fibonacci sequence using 2 variables2752
662Find whether a subarray is in form of a mountain or not2746
663Bubble sort using two Stacks2741
664Maximum Frequency Stack Leetcode Solution2738
665Find all pairs (a, b) in an array such that a % b = k2737
666Count Distinct Elements in Every Window of Size K2735
667Minimum time required to rot all oranges2731
668Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2729
669Isomorphic Strings LeetCode Solution2727
670Queries on Probability of Even or Odd Number in given Ranges2724
671Add two numbers2723
672Counting Bits2722
673Convert Sorted List to Binary Search Tree2721
674Longest Subarray Having Count of 1s One More than Count of 0s2719
675Detect Capital Leetcode Solution2718
676How to Efficiently Implement k Stacks in a Single Array?2716
677Find four elements that sum to a given value (Hashmap)2713
678Largest Sum Contiguous Subarray2712
679Count Good Nodes in Binary Tree LeetCode Solution2711
680Length of Longest Fibonacci Subsequence2708
681Sort 0s 1s and 2s in an Array2708
682Split Array Into Consecutive Subsequences2706
683Range Sum Query 2D – Immutable LeetCode Solution2704
684Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2702
685Binary Tree Right Side View LeetCode Solution2701
686Binary Tree to Binary Search Tree Conversion2696
687Minimum Swaps to Group All 1’s Together Leetcode Solution2685
688Alien Dictionary2685
689Rotate Array2683
690Remove brackets from an algebraic string containing + and – operators2682
691Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2672
692Count ways to reach the nth stair using step 1, 2 or 32671
693Print all subarrays with 0 sum2671
694Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2670
695Partition to K Equal Sum Subsets Leetcode Solution2667
696Remove Palindromic Subsequences Leetcode Solution2667
697Merge Two Sorted Lists Leetcode2666
698Populating Next Right Pointers in Each Node Leetcode Solution2663
699Populating Next Right Pointers in Each Node2660
700Maximum Number of Chocolates to be Distributed Equally Among k Students2653
701String comparison containing wildcards2650
702Find pairs with given sum such that elements of pair are in different rows2646
703Arithmetic Slices II – Subsequence LeetCode Solution2637
704Partition Equal Subset Sum2634
705Happy Number2628
706Breadth First Search (BFS) for a Graph2623
707Web Crawler LeetCode Solution2617
708Minimum Sum Path in a Triangle2615
709Concatenation of Array LeetCode Solution2614
710Check if a Linked list of Strings form a Palindrome2606
711Topological Sorting2605
712Inorder Successor of a node in Binary Tree2603
713Queue Reconstruction by Height2602
714Difference Array | Range update query in O(1)2595
715Remove duplicates from sorted array2595
716Contiguous Array Leetcode2592
717Find Duplicate Subtrees2592
718Reverse Nodes in K-Group2591
719Elements Appear more than N/K times in Array2588
720Root to Leaf path with target sum Leetcode Solutions2584
721Find All Pairs With a Given Difference2584
722Increasing Subsequence of Length three with Maximum Product2572
723Check if String Follows Order of Characters by a Pattern or not2565
724Swap Kth Node from beginning with Kth Node from End2564
725Longest Common Prefix Using Binary Search II2551
726Minimum Number of Arrows to Burst Balloons LeetCode Solution2547
727Maximum Product Subarray II2537
728Container with Most Water2536
729Maximum Distance in Array2533
730Climbing stairs2533
731Count Minimum Steps to Get the given Array2528
732Finding K closest element2527
733Minimum Swaps to Make Strings Equal Leetcode Solution2526
734Sum Root to Leaf Numbers LeetCode Solution2520
735Score of Parenthesis LeetCode Solution2518
736Symmetric Tree2515
737Parallel Courses II LeetCode Solution2514
738An Interesting Method to generate Binary Numbers from 1 to n2510
739Pancake Sorting2509
740Check if all levels of two Binary Tree are anagrams or not2505
741Deletion in a Binary Tree2505
742Delete Nodes and Return Forest Leetcode Solution2504
743Minimum Cost to Move Chips to The Same Position LeetCode Solution2499
744Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2498
745Given a binary tree, how do you remove all the half nodes?2498
746Substring With Concatenation Of All Words2497
747Longest Increasing Subsequence2496
748Find the first repeating element in an array of integers2487
749Delete Nth node from the end of the given linked list2482
750Count pairs from two linked lists whose sum is equal to a given value2479
751Boundary Traversal of binary tree2478
752Union and Intersection of two Linked Lists2474
753Iterative Depth First Traversal of Graph2474
754MiniMax Algorithm2470
755Linked List Cycle2466
756Sort Array by Increasing Frequency Leetcode Solution2465
757Kill Process LeetCode Solution2463
758Find K Closest Elements LeetCode Solution2462
759Minimum Size Subarray Sum2459
760Non-overlapping sum of two sets2457
761Level of Each node in a Tree from source node2455
762Merge K Sorted Linked Lists2453
763Iterative Preorder Traversal2452
764Level order traversal using two Queues2450
765Longest Common Prefix Word by Word Matching2449
766BFS vs DFS for Binary Tree2448
767Construct Binary Tree from given Parent Array representation2447
768Rearrange an Array Such that arr[i] is equal to i2444
769Find Maximum of Minimum for Every Window Size in a Given Array2439
770Valid Anagrams2438
771Minimum Remove to Make Valid Parentheses LeetCode Solution2434
772Nested List Weight Sum II LeetCode Solution2431
773New 21 Game2429
774Check if a queue can be sorted into another queue using a stack2425
775Verify Preorder Serialization of a Binary Tree2423
776Find the Difference Leetcode Solution2422
777Merging Intervals2422
778Matrix Chain Multiplication2418
779Super Ugly Number2407
780Reservoir Sampling2404
781Maximum size subarray sum equals k2402
782Remove Duplicates from Sorted List II2398
783Range LCM Queries2392
784Palindrome Partitioning2392
785Maximum Product Subarray2392
786Flatten Binary Tree to Linked List LeetCode Solution2388
787Smallest Range II Leetcode Solution2388
788Reorder Array Using Given Indexes2388
789K maximum sums of overlapping contiguous sub-arrays2378
790Print a Binary Tree in Vertical Order2377
791Friends Of Appropriate Ages LeetCode Solution2374
792Sum of f(a[i], a[j]) over all pairs in an array of n integers2370
793Vertical sum in a given binary tree2364
794Balanced Binary Tree2364
795Valid Triangle Number LeetCode Solution2359
796Defanging an IP Address LeetCode Solution2359
797Create Maximum Number2353
798Missing Number2352
799Maximum difference between two elements such as larger element comes after smaller2351
800Check if Two Expressions With Brackets are Same2350
801Check if any two intervals overlap among a given set of intervals2338
802Minimum Distance Between BST Nodes Leetcode Solution2334
803The Painter’s Partition Problem2331
804Unique Binary Search Trees LeetCode Solution2327
805Find Maximum Sum Possible Equal Sum of Three Stacks2326
806Find subarray with given sum (Handles Negative Numbers)2325
807Largest Submatrix With Rearrangements LeetCode Solution2322
808Flatten 2D Vector LeetCode Solution2320
809Number Of Longest Increasing Subsequence2320
810Employee Importance LeetCode Solution2317
811Check if a given array can represent Preorder Traversal of Binary Search Tree2316
812Count number of triplets with product equal to given number2314
813Valid Triangle Number LeetCode Solution2313
814Lowest Common Ancestor2313
815Find Three Element From Different Three Arrays Such That a + b + c = sum2312
816Peak Index in a Mountain Array LeetCode Solution2310
817Minimum insertions to form a palindrome with permutations allowed2310
818Find K Length Subarray of Maximum Average2307
819Kth Smallest Element in a Sorted Matrix LeetCode Solution2295
820Check if two nodes are on the same path in a Tree2294
821Array Nesting Leetcode Solution2292
822Closest Leaf in a Binary Tree LeetCode Solution2290
823Third Maximum Number Leetcode Solution2289
824Hamming Distance2287
825Sorting a K Sorted Array2287
826Find Peak Element2285
827Iterative Postorder Traversal Using Two Stacks2281
828Find distance between two nodes of a Binary Tree2280
829First Bad Version2280
830Check Completeness of a Binary Tree LeetCode Solution2279
831Maximum subsequence sum such that no three are consecutive2279
832Find Common Characters Leetcode Solution2277
833Find Smallest Range Containing Elements from k Lists2272
834Print All Distinct Elements of a Given Integer Array2272
835Merging Two Sorted Arrays2271
836Largest BST Subtree LeetCode Solution2263
837Newman-Conway Sequence2261
838Tree Traversal (Preorder, Inorder & Postorder)2261
839Valid Parenthesis String2260
840Products of ranges in an array2256
841Find Element Using Binary Search in Sorted Array2256
842Print all triplets in sorted array that form AP2255
843Distinct Subsequences2255
844Find Sum of all unique sub-array sum for a given array2253
845Arrange given numbers to form the biggest number2248
846Maximum number of segments of lengths a, b and c2247
847Maximum difference between frequency of two elements such that element having greater frequency is also greater2245
848Largest divisible pairs subset2245
849Sort Elements by Frequency II2244
850Longest Palindromic Subsequence2243
851Lower Case To Upper Case2235
852Bottom View of a Binary Tree2233
853Diagonal Traversal of Binary Tree2231
854Number of siblings of a given Node in n-ary Tree2227
855Stone Game IV LeetCode Solution2222
856Range Sum Query using Sparse Table2220
857Path Sum2219
858Compare Strings by Frequency of the Smallest Character Leetcode Solution2218
859Largest subarray with equal number of 0s and 1s2216
860Stone Game IV LeetCode Solution2210
861Find the largest multiple of 32210
862Print Right View of a Binary Tree2204
863Segment Tree2204
864Contiguous Array2200
865Four Elements that Sum to Given2198
866Merge Two Sorted Arrays2198
867Binary array after M range toggle operations2195
868Median of Two Sorted Arrays2195
869Shuffle an Array2187
870Count and Say2187
871Isomorphic Strings2187
872Longest Bitonic Subsequence2180
873Unique Binary Search Trees2178
874Find Nth Node2177
875Permutations of a Given String Using STL2173
876Subset Sum Problem in O(sum) space2171
877Find Largest d in Array such that a + b + c = d2163
878Encoded String With Shortest Length LeetCode Solution2162
879Minimum Swaps To Make Sequences Increasing LeetCode Solution2156
880Maximum Sum of 3 Non-Overlapping Subarrays2156
881Valid Number2154
882Infix to Postfix2153
883Maximum Product Subarray2149
884Red-Black Tree Introduction2148
885Averages of Levels in Binary Tree2148
886Next Greater Element in an Array2142
887Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2141
888Find unique character in a string2140
889Trapping Rain Water II LeetCode Solution2139
890Closest Binary Search Tree Value Leetcode Solution2131
891Transform a BST to Greater sum Tree2130
892Height of a generic tree from parent array2129
893Friends Pairing Problem2128
894Count Primes in Ranges2126
895Orderly Queue LeetCode Solution2124
896Valid Perfect Square LeetCode Solution2123
897Maximum Population Year LeetCode Solution2117
898Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2114
899Write a function to get the intersection point of two Linked Lists2112
900Binary Search Tree Delete Operation2103
901Bold Words in String LeetCode Solution2098
902Binary Tree Longest Consecutive Sequence LeetCode Solution2097
903The Number of Weak Characters in the Game LeetCode Solution2094
904Range Minimum Query (Square Root Decomposition and Sparse Table)2089
905Sentence Screen Fitting LeetCode Solution2087
906Serialize and Deserialize Binary Tree2085
907Shuffle a given Array2085
908Minimum sum of squares of character counts in a given string after removing k characters2083
909Insert Delete GetRandom2073
910Kth Smallest Number in Multiplication Table Leetcode Solution2069
911Diameter of N-Ary Tree LeetCode Solution2066
912Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2065
913Convert BST into a Min-Heap without using array2057
914Swap Nodes In Pairs2055
915Reorganize String2049
916Next greater element2049
917Edit Distance2047
918Lowest Common Ancestor in Binary Search Tree2047
919Find Minimum In Rotated Sorted Array2040
920Maximum Product Subarray2037
921K’th Largest Element in BST when modification to BST is not allowed2035
922Integer to Roman2033
923Next Greater Element II LeetCode Solution2028
924Total Hamming Distance LeetCode Solution2021
925Array Queries for multiply replacements and product2012
926Find the smallest binary digit multiple of given number2012
927Advantages of BST over Hash Table2012
928Queries on XOR of greatest odd divisor of the range2005
929Koko Eating Bananas LeetCode Solution1997
930Constant time range add operation on an array1996
931K’th Largest element in BST using constant extra space1996
932Best Meeting Point LeetCode Solution1992
933Longest Increasing Consecutive Subsequence1990
934Check if an Array is Stack Sortable1988
935Write Code to Determine if Two Trees are Identical1986
936Serialize and Deserialize Binary Tree LeetCode Solution1985
937Print n terms of Newman-Conway Sequence1979
938Number of Orders in the Backlog Leetcode Solution1978
939Level Order Traversal of Binary Tree1973
940Clone a Binary Tree with Random Pointers1971
941Reverse a Path in BST using Queue1969
942Maximum Sum Increasing Subsequence1968
943Power of Two1968
944Moving Stones Until Consecutive Leetcode Solution1966
945Greatest Sum Divisible by Three LeetCode Solution1965
946Image Overlap LeetCode Solution1956
947Numbers with prime frequencies greater than or equal to k1955
948Design Underground System Leetcode Solution1954
949Range Queries for Longest Correct Bracket Subsequence1954
950Find minimum number of merge operations to make an array palindrome1946
951Valid Tic-Tac-Toe State LeetCode Solution1944
952Count and Toggle Queries on a Binary Array1944
953Check if X can give change to every person in the Queue1944
954Insert into a Sorted Circular Linked List LeetCode Solution1940
955A program to check if a binary tree is BST or not1938
956Design Add and Search Words Data Structure LeetCode Solution1937
957Print Next Greater Number of Q queries1931
958Form minimum number from given sequence1930
959Find the node with minimum value in a Binary Search Tree1930
960Closest Binary Search Tree Value II LeetCode Solution1929
961Check if each internal node of a BST has exactly one child1926
962Maximum Array from Two given Arrays Keeping Order Same1919
963Number of elements less than or equal to a given number in a given subarray1918
964Factorial Trailing Zeroes LeetCode Solution1915
965Check for Palindrome after every character replacement Query1915
966Merge two BSTs with limited extra space1911
967Count the Pairs at Same Distance as in English Alphabets1911
968Queries for Decimal Values of Subarrays of a Binary Array1905
969Largest Plus Sign Leetcode Solution1903
970Merge Sort1894
971Collect maximum points in a grid using two traversals1893
972Maximum difference between first and last indexes of an element in array1891
973Graph Cloning1885
974Group Shifted Strings Leetcode Solution1884
975Dividing Array into Pairs With Sum Divisible by K1880
976Merge Sorted Array1872
977Priority Queue1864
978Count even length binary sequences with same sum of first and second half bits1857
979Print modified array after multiple array range increment operations1857
980Longest Substring Without Repeating Characters Leetcode Solution1856
981Print Ancestors of a Given Binary Tree Node Without Recursion1850
982Cutting a Rod1839
983Kth Smallest Element in a BST1837
984Form Minimum Number From Given Sequence1827
985Count Pairs Whose Products Exist in Array1827
986Swim in Rising Water LeetCode Solution1822
987Excel Sheet Column Number LeetCode Solution1820
988Find maximum average subarray of k length1819
989Binary Search Tree1811
990Unique Paths II1810
991Guess The Word1809
992Minimum Moves to Equal Array Elements LeetCode Solution1805
993Excel Sheet Column Title LeetCode Solution1797
994Print all Possible Ways to Break a String in Bracket Form1793
995Decrease Elements To Make Array Zigzag LeetCode Solution1792
996Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1791
997Check given array of size n can represent BST of n levels or not1789
998Palindrome Partitioning1786
999K Empty Slots1785
1000Longest Common Prefix using Character by Character Matching1778
1001Binary Search Tree Search and Insertion1776
1002Regular Expression Matching1773
1003How to print maximum number of A’s using given four keys1772
1004Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1761
1005Sorted Array to Balanced BST1761
1006Sum of Left Leaves LeetCode Solution1749
1007Find postorder traversal of BST from preorder traversal1742
1008Construct Complete Binary Tree from its Linked List Representation1716
1009Maximum weight transformation of a given string1706
1010Queries for Number of Distinct Elements in a Subarray1704
1011Find the Town Judge LeetCode Solution1694
1012Maximum Depth Of Binary Tree1692
1013Binary Tree to Binary Search Tree Conversion using STL set1689
1014Symmetric Tree LeetCode Solution Leetcode Solution1681
1015Iterative method to find ancestors of a given binary tree1676
1016Shortest Unsorted Continuous Subarray LeetCode Solution1672
1017Data Structure Designing1668
1018Random Pick Index LeetCode Solution1663
1019Search in Sorted Rotated Array1640
1020Find Maximum Depth of Nested Parenthesis in a String1625
1021Search an Element in Sorted Rotated Array1617
1022Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1592
1023Kth Smallest Product of Two Sorted Arrays LeetCode Solution1584
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1574
1025Next Greater Element I Leetcode Solution1544
1026Print Maximum Length Chain of Pairs1525
1027Maximum Binary Tree1518
1028Flatten Binary Tree to Linked List LeetCode Solution1498
1029Find k-th smallest element in BST (Order Statistics in BST)1493
1030Peeking Iterator LeetCode Solution1460
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1444
Translate »