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 Solution43526
2Maximum occurring character in a string19712
3Plus One Leetcode Solution19225
4Valid Parentheses LeetCode Solution19143
53Sum Leetcode Solution17069
6Merge Sorted Arrays Leetcode Solution15239
7First Repeating Element15120
8Single Number Leetcode Solution14810
9Count Primes Leetcode Solutions14626
10Pow(x, n) Leetcode Solution14255
11Sqrt(x) Leetcode Solution14109
12Meeting Rooms II LeetCode Solution13197
13Concatenation of Array LeetCode Solution12738
14Roman to Integer Leetcode Solution11920
15Valid Palindrome Leetcode Solution11802
16Contains Duplicate II Leetcode Solution11723
17Search Insert Position Leetcode Solution11719
18Palindrome Number LeetCode Solution11528
19Remove Duplicates from Sorted Array Leetcode Solution11408
20Jump Game Leetcode Solution11137
21Reverse Vowels of a String Leetcode Solution11122
22Intersection of Two Arrays II Leetcode Solution11014
23Longest Substring Without Repeating Characters LeetCode Solution10993
24Number of Good Pairs Leetcode Solution10865
25Spiral Matrix LeetCode Solution10800
26Kids With the Greatest Number of Candies Leetcode Solution10733
27House Robber Leetcode Solution10679
28Add Binary Leetcode Solution10578
29Maximum Subarray Leetcode Solution10200
30Number Of 1 bits10038
31Find the Maximum Repeating Number in Array9926
32Text Justification LeetCode Solution9807
33Move Zeroes LeetCode Solution9750
34Jewels and Stones Leetcode Solution9713
35Min Stack Leetcode Solution9586
36Power of Two Leetcode Solution9513
37Longest Palindromic Substring LeetCode Solution9458
38Shuffle String Leetcode Solution9407
39Permutations Leetcode Solution9348
40Evaluation of Postfix Expression9259
41Third Maximum Number Leetcode Solution9255
42Word Search Leetcode Solution9218
43Find All Numbers Disappeared in an Array Leetcode Solution9214
44Daily Temperatures Leetcode Solution9198
45Median of Two Sorted Arrays LeetCode Solution9134
46Next Permutation Leetcode Solution9128
47Search in Rotated Sorted Array Leetcode Solution9069
48Number of Islands LeetCode Solution9002
49Maximum Profit in Job Scheduling Leetcode Solution8956
50Kth Missing Positive Number Leetcode Solution8950
51Longest Common Prefix Leetcode Solution8897
52Next Greater Element I Leetcode Solution8872
53Frog Jump Leetcode Solution8710
54Valid Anagram Leetcode Solution8588
55Find Minimum Distance Between Two Numbers in an Array8557
56Rotate Image LeetCode Solution8492
57Running Sum of 1d Array Leetcode Solution8481
58Shuffle the Array Leetcode Solution8449
59Multiply Strings Leetcode Solution8437
60Can Place Flowers LeetCode Solution8405
61Combination Sum Leetcode Solution8394
62Count and Say Leetcode Solution8370
63House Robber II Leetcode Solution8343
643Sum Closest LeetCode Solution8274
65Bulb Switcher LeetCode Solution8260
66Koko Eating Bananas Leetcode Solution8096
67Best Time to Buy and Sell Stock LeetCode Solution8089
68Excel Sheet Column Title Leetcode Solution8061
69Happy Number Leetcode Solution8033
70Isomorphic Strings Leetcode Solution8017
71Subarray and Subsequence8006
72Majority Element Leetcode Solution7925
73Count Pairs With Given Sum7897
74Integer to Roman Leetcode Solution7864
75Missing Number Leetcode Solution7856
76Candy LeetCode Solution7845
77Product of array except self7844
78Rotate String LeetCode Solution7796
79Strobogrammatic Number LeetCode Solution7754
80A Product Array Puzzle7714
81Reverse String Without Temporary Variable7667
82Is Subsequence Leetcode Solution7636
83Find the Difference Leetcode Solution7611
84Find the Duplicate Number LeetCode Solution7595
85Binary Search LeetCode Solution7578
86Expression Evaluation7571
87Find Common Characters Leetcode Solution7536
88Largest Number Leetcode Solution7525
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7442
90String to Integer (atoi) LeetCode Solution7384
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7365
92Subset Leetcode7335
93Summary Ranges Leetcode Solution7285
94Set Matrix Zeroes7271
95Rabin Karp Algorithm7252
96Word Pattern LeetCode Solution7218
97Sort Characters By Frequency LeetCode Solution7212
98Balanced Binary Tree Leetcode Solution7175
99Find the Town Judge Leetcode Solution7137
100Arranging Coins Leetcode Solution7087
101Unique Paths Leetcode Solution7079
102Find the Winner of the Circular Game LeetCode Solution7069
103Rearrange Positive and Negative Numbers Alternatively in Array6988
104String Compression LeetCode Solution6974
105Asteroid Collision LeetCode Solution6945
106Group Anagrams LeetCode Solution6931
107Postfix to Infix Conversion6905
108Repeated Substring Pattern LeetCode Solution6880
109Page Replacement Algorithms in Operating Systems6847
110Smallest window in a string containing all characters of another string6834
111Sort Colors LeetCode Solution6790
112Matrix Chain Multiplication using Dynamic Programming6778
113Best Time to Buy and Sell Stock  II Leetcode Solution6758
114Sort Array By Parity LeetCode Solution6641
115Zigzag Conversion LeetCode Solution6629
116Divide Two Integers Leetcode Solution6597
117Generate Parentheses Leetcode Solution6588
118Kth largest element in an Array Leetcode Solutions6578
119Valid Palindrome II Leetcode Solution6573
120Sum of minimum and maximum elements of all subarrays of size k6561
121Assign Cookies Leetcode Solution6487
122Reverse Integer Leetcode Solution6461
123Remove Duplicates from Sorted Array II Leetcode Solution6454
124Length of Last Word Leetcode Solution6422
125Product of Array Except Self LeetCode Solution6416
126Decode String Leetcode Solution6414
127Find the Row with Maximum Number of 1’s6411
128Pascal Triangle Leetcode6359
129Bus Routes Leetcode Solution6347
130H-Index Leetcode Solution6346
131Number of Provinces Leetcode Solution6334
132Merge Two Sorted Lists Leetcode Solutions6320
133Linked List Cycle II LeetCode Solution6245
134Convert array into Zig-Zag fashion6236
135Minimum Steps to reach target by a Knight6227
136Minimum Cost For Tickets Leetcode Solution6225
137Defanging an IP Address Leetcode Solution6218
138Prefix to Infix Conversion6213
139Optimal Account Balancing LeetCode Solution6208
140Employee Free Time LeetCode Solution6198
141Pascal’s Triangle II Leetcode Solution6110
142Find First and Last Position of Element in Sorted Array Leetcode Solution6072
143First element occurring k times in an array6047
144Increasing Triplet Subsequence LeetCode Solution6044
145Merge Sorted Array LeetCode Solution6016
146Build Array From Permutation Leetcode Solution6005
147Implementation of Deque using Doubly Linked List6004
148Island Perimeter Leetcode Solution5979
149Majority Element II Leetcode Solution5978
150Robot Room Cleaner Leetcode Solution5957
151Max Consecutive Ones Leetcode Solution5915
152Bellman Ford Algorithm5908
153Find Pair with Given Difference5871
154Swap Nodes in Pairs Leetcode Solutions5868
155Check if the Elements of an Array are Consecutive5860
156OSI Model5852
157Set Matrix Zeroes Leetcode Solution5844
158Guess Number Higher or Lower LeetCode Solution5829
159K-th Smallest Element in a Sorted Matrix5821
160KMP Algorithm5815
161Add Two Numbers II Leetcode Solution5806
162Find the Missing Number5788
163Fibonacci Number LeetCode Solution5766
164First negative integer in every window of size k5762
165Trapping Rain Water Leetcode Solution5757
166Lemonade Change Leetcode Solution5751
167Subarray Sum Equals K LeetCode Solution5745
168Design Parking System Leetcode Solution5735
169Delete middle element of a stack5708
170First Unique Character in a String LeetCode Solution5699
171Word Ladder LeetCode Solution5676
172Find All Duplicates in an Array LeetCode Solution5655
173Coin Change 2 Leetcode Solution5654
174Subarray with Given Sum5646
175String Compression5645
176Length of the largest subarray with contiguous elements5644
177Last Stone Weight5643
178Subarray Product Less Than K LeetCode Solution5641
179Monotonic Array LeetCode Solution5630
180Capacity To Ship Packages Within D Days Leetcode Solution5627
181Palindrome Linked List Leetcode Solution5605
182Repeated Substring Pattern5554
183Find Smallest Missing Number in a Sorted Array5535
184Form Minimum Number from Given Sequence of D’s and I’s5532
185Single Element in a Sorted Array LeetCode Solution5518
18601 Matrix LeetCode Solution5485
187Combinations Leetcode Solution5484
188Remove Duplicates from Sorted List II LeetCode Solution5478
189Prefix to Postfix Conversion5467
190Continuous Subarray Sum LeetCode Solution5430
191Reverse Words in a String III LeetCode Solution5419
192Valid Perfect Square Leetcode Solution5414
193Iterative Implementation of Quick Sort5389
194Same Tree LeetCode Solution5381
195Break a Palindrome LeetCode Solution5371
196Combination Sum5369
197Leetcode Permutations5341
198Merge k Sorted Lists Leetcode Solution5331
199Remove Linked List Elements Leetcode Solution5319
200Slowest Key Leetcode Solution5289
201Top K Frequent Elements LeetCode Solution5280
202Relative Ranks Leetcode Solution5275
203Backspace String Compare5272
204Maximum Product of Three Numbers LeetCode Solution5250
205Rotate List Leetcode Solution5240
206Insert Delete GetRandom O(1) Leetcode Solution5239
207Container With Most Water LeetCode Solution5231
208Find Peak Element LeetCode Solution5218
209Find the Duplicate Element5201
210Contains Duplicate LeetCode Solution5191
211Boolean Parenthesization Problem5179
212The K Weakest Rows in a Matrix Leetcode Solution5171
213Printing brackets in Matrix Chain Multiplication Problem5143
214Cuckoo sequence program5135
215Longest Common Subsequence LeetCode Solution5111
216Second Most Repeated Word in a Sequence5110
217Palindrome Number5100
218Kth Largest Element in a Stream Leetcode Solution5095
219Subarray Sum Equals k5080
220Remove All Occurrences of a Substring LeetCode Solution5062
221Permutation in String Leetcode Solution5045
222Rearrange given Array in Maximum Minimum Form5041
223Relative Sort Array Leetcode Solution5040
224Make The String Great Leetcode Solution5039
225Max Area of Island5021
226Find Leaders in an Array5017
227Unique Paths II Leetcode Solution5010
228Generate all Binary Strings Without Consecutive 1’s5005
229Arithmetic Expression Evaluation5004
230Convert a Number to Hexadecimal Leetcode Solution4998
231Delete Node in a Linked List Leetcode Solution4985
232Target Sum4973
233Check If Two String Arrays are Equivalent Leetcode Solution4963
234Construct Binary Tree from Given Inorder and Preorder Traversals4955
235N-Queens LeetCode Solution4952
236Moving Average from Data Stream Leetcode Solution4949
237Time Based Key-Value Store LeetCode Solution4942
238Scramble String4929
239Letter Combinations of a Phone Number4914
240Next Permutation4906
241Number of Dice Rolls With Target Sum LeetCode Solution4904
242Count Good Nodes in Binary Tree Leetcode Solution4904
243LRU Cache LeetCode Solution4892
244Find N Unique Integers Sum up to Zero Leetcode Solution4858
245Check If N and Its Double Exist Leetcode Solution4857
246Stone Game LeetCode4853
247Given two unsorted arrays find all pairs whose sum is x4849
248Find Triplet in Array With a Given Sum4839
249Number of Steps to Reduce a Number to Zero Leetcode Solution4804
250Flipping an Image LeetCode Solution4803
251Prim’s Algorithm4782
252Minimum swaps required to bring all elements less than or equal to k together4776
253Reverse Only Letters LeetCode Solution4751
254Top K Frequent Elements4750
255Remove Minimum Characters so that Two Strings Become Anagrams4750
256Find The Duplicate Number4741
257Stock Buy Sell to Maximize Profit4738
258Min Cost Climbing Stairs LeetCode Solution4725
259Minimum Knight Moves LeetCode Solution4717
260Min Stack4715
261Student Attendance Record I Leetcode Solution4712
262To Lower Case Leetcode Solution4662
263Single Number4660
264Minimum Operations to convert X to Y4657
265Smallest Positive Number Missing in an Unsorted Array4653
266Maximum Sum Increasing Subsequence4651
267The kth Factor of n Leetcode Solution4636
268Maximum Subarray Sum using Divide and Conquer4628
269Reverse words in a string4618
270License Key Formatting Leetcode Solution4615
271Maximum Population Year LeetCode Solution4601
272Longest Common Subsequence4546
273Remove Nth Node From End of List Leetcode Solution4535
274Search Suggestions System LeetCode Solution4533
275Top K Frequent Words LeetCode Solution4529
276Special Array With X Elements Greater Than or Equal X Leetcode Solution4517
277Find the Number Occurring Odd Number of Times in an Array4509
278Reformat Date LeetCode Solution4503
279Sum of Subarray Ranges Leetcode Solution4493
280Find Words That Can Be Formed by Characters Leetcode Solution4487
281BFS for Disconnected Graph4482
282Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4448
283Minimum Path Sum Leetcode Solution4447
284Maximum Depth of Binary Tree Leetcode Solution4438
285Reveal Cards In Increasing Order Leetcode Solution4414
286N-th Tribonacci Number Leetcode Solution4410
287Intersection of Two Arrays4390
288Diagonal Traverse LeetCode Solution4377
289House Robber4377
290Reverse individual words4376
291Evaluate Division4363
292Best Time to Buy and Sell Stock III Leetcode Solution4356
293Maximize Distance to Closest Person LeetCode Solution4354
294Find any one of the multiple repeating elements in read only array4353
295Last Stone Weight II LeetCode Solution4351
296Minimum Characters to be Added at Front to Make String Palindrome4346
297Sort Elements by Frequency of Occurrences4326
298Design A Leaderboard Leetcode Solution4321
299Remove Duplicates from Sorted List LeetCode Solution4319
300Find if Path Exists in Graph Leetcode Solution4318
301Maximum Size Subarray Sum Equals k Leetcode Solution4317
302Binary Tree Inorder Traversal LeetCode Solution4317
303Count Number of Occurrences in a Sorted Array4311
304Count of index pairs with equal elements in an array4307
305Length of Longest valid Substring4297
306Range Sum Query 2D – Immutable Leetcode Solution4287
307Reverse Nodes in k-Group LeetCode Solution4276
308Most Frequent Element in an Array4273
309Minimum number of Merge Operations to make an Array Palindrome4259
310Remove All Ones With Row and Column Flips Leetcode Solution4243
311Implement a stack using single queue4243
312Sudoku Solver4242
313Find Index of Closing Bracket for a Given Opening Bracket in an Expression4220
314Brightest Position on Street LeetCode Solution4210
315Find the Closest Palindrome number4205
316Mobile Numeric Keypad Problem4201
317Spiral Matrix II Leetcode Solution4192
318Split Linked List in Parts Leetcode Solution4178
319Find Leaves of Binary Tree LeetCode Solution4177
320Reverse Bits4175
321Special Positions in a Binary Matrix Leetcode Solution4171
322Partition Array Into Three Parts With Equal Sum Leetcode Solution4164
323Invalid Transactions LeetCode Solution4151
324Symmetric Tree Leetcode Solution4138
325Shortest Word Distance Leetcode Solution4136
326Paint House LeetCode Solution4133
327Maximum Subarray4127
328Sort Array By Parity II Leetcode Solution4109
329Arrange given Numbers to Form the Biggest Number II4105
330Diagonal Traversal LeetCode Solution4081
331Find Duplicates in an Array in Most Efficient Way4078
332One Edit Distance LeetCode Solution4077
333Round Robin Scheduling4075
334Largest Rectangle in Histogram LeetCode Solution4061
335Remove Invalid Parentheses Leetcode Solution4048
336Dijkstra Algorithm4047
337Rank Transform of an Array Leetcode Solution4042
338Hamming Distance Leetcode Solution4038
339Jump Game4034
340Binary Tree Zigzag Level Order Traversal LeetCode Solution4027
341Alien Dictionary LeetCode Solution4027
342Partition Labels LeetCode Solution4026
343Unique Paths4021
344Tug of War4008
345Minimum Moves to Equal Array Elements Leetcode Solution3998
346Maximal Square3998
347Minimum Time to Collect All Apples in a Tree LeetCode Solution3986
348String Matching in an Array Leetcode Solution3982
349Find Winner on a Tic Tac Toe Game Leetcode Solution3975
350Construct BST from its given Level Order Traversal3974
351Lowest Common Ancestor of a Binary Tree Leetcode Solution3967
352The Celebrity Problem3967
353Range Sum of BST LeetCode Solution3963
354Next Permutation LeetCode Solution3960
355Minimum operation to make all elements equal in array3956
356Bitwise AND of Numbers Range LeetCode Solution3950
357Least Number of Unique Integers after K Removals Leetcode Solution3950
358Minimum Depth of Binary Tree Leetcode Solution3940
359Merge Two Sorted Linked Lists3930
360Pair of Positive Negative Values in an Array3928
361Validate Stack Sequences LeetCode Solution3927
362Longest Common Prefix using Trie3926
363Unique Paths III LeetCode Solution3921
364Postfix to Prefix Conversion3915
365Smallest Subarray with k Distinct Numbers3913
366Maximum Circular Subarray Sum3913
367Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3912
368Given an Array of Pairs Find all Symmetric Pairs in it3908
369Transpose Graph3894
370Minimum Time Visiting All Points Leetcode Solution3892
371Check whether Strings are K Distance Apart or Not3890
372Count of Triplets With Sum Less than Given Value3889
373Minimum Cost to Hire K Workers3878
374Substring with Concatenation of All Words Leetcode Solution3872
375Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3872
376K Empty Slots LeetCode3871
377Robot Bounded In Circle LeetCode Solution3868
378Next Greater Element III LeetCode Solution3866
379Recursion3864
380Invert Binary Tree LeetCode Solution3863
381Clone Graph LeetCode Solution3860
382Find minimum difference between any two elements3860
383Check if a given array contains duplicate elements within k distance from each other3855
384Longest Substring with At Most K Distinct Characters LeetCode Solution3844
385Ugly Number II LeetCode Solution3842
386Kruskal Algorithm3834
387Implementation of Deque using circular array3830
388Sort a stack using a temporary stack3828
389Regular Expression Matching Regular Expression Matching LeetCode Solution3822
390Minimize Maximum Pair Sum in Array LeetCode Solution3814
391Non-decreasing Array LeetCode Solution3810
392Invert Binary Tree LeetCode Solution3795
393Toeplitz Matrix3795
394Permutation Sequence LeetCode Solution3793
395Graph Valid Tree LeetCode Solution3788
396Stack Permutations (Check if an array is stack permutation of other)3788
397Longest subsequence such that difference between adjacents is one3782
398LRU Cache Implementation3782
399Convert Sorted Array to Binary Search Tree LeetCode Solutions3779
400Find the subarray with least average3779
401Sliding Window Technique3774
402Word Search3773
403Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3769
404Longest subarray not having more than K distinct elements3764
405Find the First and Second Smallest Elements3764
406Kth Smallest Element in a BST Leetcode Solution3763
407Design Browser History LeetCode Solution3761
4083 Sum3760
409Missing Element in Sorted Array LeetCode Solution3753
410Find the Smallest Divisor given a Threshold Leetcode Solution3744
411Find duplicates in a given array when elements are not limited to a range3742
412Partition List Leetcode Solution3734
413Number of Islands II LeetCode Solution3724
414Priority Queue using doubly linked list3723
415Common elements in all rows of a given matrix3720
416Find Top K (or Most Frequent) Numbers in a Stream3717
417Path With Maximum Minimum Value LeetCode Solution3716
418Queries for counts of array elements with values in given range3716
419Number Complement Leetcode Solution3715
420Stone Game II Leetcode3715
421First Circular Tour to Visit all the Petrol Bunks3714
422K Closest Points to Origin Leetcode Solution3710
423Top View of Binary Tree3705
424Number of Smaller Elements on Right Side3703
425Minesweeper LeetCode Solution3701
426Find Maximum Level sum in Binary Tree3699
427Max stack3697
428Search a 2D Matrix II Leetcode Solution3690
429Maximum Number of Occurrences of a Substring Leetcode Solution3689
430Sequences of given length where every element is more than or equal to twice of previous3689
431LRU Cache Leetcode Solution3688
432Find the Peak Element from an Array3685
433Combination Sum IV LeetCode Solution3680
434Integer Break LeetCode Solution3675
435Snakes and Ladders LeetCode Solution3670
436Nth Catalan Number3670
437High Five LeetCode Solution3663
438Painting Fence Algorithm3660
439Can Make Arithmetic Progression From Sequence Leetcode Solution3659
440Sort elements by frequency3655
441Longest Palindrome can be Formed by Removing or Rearranging Characters3640
442Odd Even Linked List Leetcode Solution3634
443Insert Interval Leetcode Solution3629
444Find Minimum in Rotated Sorted Array II LeetCode Solution3623
445Maximum Consecutive Numbers Present in an Array3619
446Check if Two given Strings are Isomorphic to each other3618
447Rearrange array such that even positioned are greater than odd3617
448Fibonacci Number LeetCode Solution3616
449Flood Fill LeetCode3616
450Shortest Palindrome3613
451Sliding Window Maximum LeetCode Solution3607
452Consecutive Characters LeetCode Solution3606
453Search in a Binary Search Tree Leetcode Solution3605
4544Sum3605
455Distance of nearest cell having 1 in a binary matrix3592
456Count items common to both the lists but with different prices3586
457Design a stack that supports getMin() in O(1) time and O(1) extra space3577
458Move All the Zeros to the End of the Given Array3577
459Tiling Problem3575
460Gold Mine Problem3561
461Expression Contains Redundant Bracket or Not3560
462Number of Closed Islands Leetcode Solution3559
463Kth Non-repeating Character3557
464Spiral Matrix III LeetCode Solution3554
465Replace Elements with Greatest Element on Right Side Leetcode Solution3552
466Insert into a Binary Search Tree Leetcode Solution3551
467Minimum Absolute Difference in BST Leetcode Solution3544
468Find a Peak Element II LeetCode Solution3539
469Coin Change Problem3528
470Queries for GCD of all numbers of an array except elements in a given range3524
471Integer to English words3523
472Check If Array Pairs Are Divisible by k LeetCode Solution3522
473Minimum Path Sum3517
474N queen problem3517
475Sliding Window Median Leetcode Solution3515
476Evaluate Reverse Polish Notation LeetCode Solution3512
477Decompress Run-Length Encoded List Leetcode Solution3512
478Restore IP Addresses Leetcode Solution3509
479Trapping Rain Water LeetCode Solution3506
480Longest Common Prefix using Sorting3504
481Interval Tree3500
482Convert Sorted Array to Binary Search Tree Leetcode Solution3492
483Balanced Expression with Replacement3487
484Sorting array using Stacks3485
485Find All Possible Recipes from Given Supplies LeetCode Solution3484
486Sort an array according to the order defined by another array3480
487Sort Colors3480
488Binary Tree Maximum Path Sum LeetCode Solution3476
489Find Pythagorean Triplets from Array3464
490Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3459
491Majority Element3458
492Cells with Odd Values in a Matrix LeetCode Solution3450
493Best Time to Buy and Sell Stock3446
494Reverse a linked list3446
495Vertical Order Traversal of Binary Tree LeetCode Solution3442
496Palindrome Substring Queries3438
497Subset sum problem3432
498Number of Days Between Two Dates LeetCode Solution3428
499Priority Queue in C++3423
500Find Median from Data Stream LeetCode Solution3418
501The Stock Span Problem3418
502Fibonacci numbers3413
503Minimum Number of Taps to Open to Water a Garden LeetCode Solution3408
504Path Sum II LeetCode Solution3408
505Queue using Stacks3403
506Path Crossing Leetcode Solution3401
507Find the first Repeating Number in a Given Array3400
508Sieve of Eratosthenes3399
509Camelcase Matching Leetcode Solution3388
510Is Graph Bipartite? LeetCode Solution3386
511Multiplication of Two Matrices3379
512Largest rectangular sub-matrix whose sum is 03378
513Kth ancestor of a node in binary tree3377
514Intersection of Two Linked Lists LeetCode Solution3375
515Design Hit Counter LeetCode Solution3368
516How to Implement Stack Using Priority Queue or Heap?3364
517Pancake Sorting Problem3358
518Divide Chocolate LeetCode Solution3353
519Analyze User Website Visit Pattern LeetCode Solution3353
520Custom Sort String Leetcode Solution3352
521Shortest Completing Word Leetcode Solution3352
522Longest Increasing Path in a Matrix LeetCode Solution3351
523Monotonic Array Leetcode Solution3341
524Different Ways to Add Parentheses Leetcode Solution3340
525Count Submatrices With All Ones LeetCode Solution3334
526Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3327
527Count subarrays having total distinct elements same as original array3326
528Group Anagrams3324
529Find a Fixed Point in a Given Array3322
530Check if Array Contains Contiguous Integers With Duplicates Allowed3316
531Scramble String LeetCode Solution3313
532Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3308
533Perfect Squares LeetCode Solution3305
534Detect a loop in the Linked List3303
535Generate all Binary Strings from Given Pattern3297
536Shifting Letters LeetCode Solution3294
537Queue based approach for first non-repeating character in a stream3287
538Minimum Height Trees3287
539Construction of Longest Increasing Subsequence (N log N)3285
540Merge Overlapping Intervals3285
541Implement Trie (Prefix Tree) Leetcode Solution3281
542Implement strStr() LeetCode Solution3278
543Valid Boomerang Leetcode Solution3275
544Number of Distinct Islands Leetcode Solution3274
545Nearest Exit from Entrance in Maze LeetCode Solution3269
546Decode Ways3266
547How to Create Mergable Stack?3260
548Reorder Data in Log Files LeetCode Solution3259
549Race Car LeetCode Solution3256
550Sort a stack using recursion3249
551Champagne Tower LeetCode Solution3248
552Maximum Sum of Non Consecutive Elements3246
553Morris Traversal3245
554Binary Tree zigzag level order Traversal3245
555Sliding Window Maximum3245
556Longest Common Prefix using Divide and Conquer3244
557Maximum Element in an Array which is Increasing and then Decreasing3242
558Find the Lost Element From a Duplicated Array3235
559Best Time to Buy and Sell Stock IV LeetCode Solution3233
560Number of Equivalent Domino Pairs Leetcode Solution3229
561Insert Node in the Sorted Linked List3227
562LCS (Longest Common Subsequence) of three strings3226
563Most Stones Removed with Same Row or Column LeetCode Solution3224
564Find if an Expression has Duplicate Parenthesis or Not3219
565Find maximum length Snake sequence3218
566Count Possible Triangles3216
567First missing positive3214
568Build an Array With Stack Operations Leetcode Solution3212
569Recover Binary Search Tree3212
570Palindrome Permutation LeetCode Solution3211
571Design Skiplist LeetCode Solution3200
572Decode String3200
573Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3199
574Letter Case Permutation3199
575Find a Sorted Subsequence of size 33196
576Smallest Good Base3194
577Rectangle Overlap LeetCode Solution3186
578Minimum Bracket Reversals3184
579Merge Two Binary Trees LeetCode Solution3177
580Contiguous Array LeetCode Solution3176
581Longest Repeated Subsequence3171
582Longest Substring with At Least K Repeating Characters LeetCode Solution3169
583All Possible Full Binary Trees LeetCode Solution3168
584Distance Between Bus Stops Leetcode Solution3168
585Guess Number Higher or Lower II3167
586Recover Binary Search Tree Leetcode Solution3161
587Largest Subarray with Equal Number of 0’s and 1’s3160
588Maximum Length of Chain Pairs3156
589Palindrome Partitioning Leetcode Solution3155
590Find the Town Judge LeetCode Solution3152
591Maximum Depth of N-ary Tree Leetcode Solution3148
592Minimum Height Trees LeetCode Solution3147
593Print all Palindromic Partitions of a String3146
594Maximum Number of Ways to Partition an Array LeetCode Solution3140
595Find the two Numbers with Odd Occurrences in an Unsorted Array3136
596Minimum number of jumps to reach end3135
597Design a Stack With Increment Operation Leetcode Solution3134
598K-th Distinct Element in an Array3129
599Group Multiple Occurrence of Array Elements Ordered by first Occurrence3118
600Rearrange Spaces Between Words Leetcode Solution3115
601Check for Balanced Parentheses in an Expression3109
602Implement Two Stacks in an Array3109
603Valid Parentheses Leetcode Solution3107
604The Maze III LeetCode Solution3107
605Reorder an Array According to the Given Indexes3106
606Subarrays with K Different Integers Leetcode Solution3096
607Mean of Array After Removing Some Elements Leetcode Solution3092
608Maximize Elements Using Another Array3086
609Sort a String According to Another String3085
610Maximum Score After Splitting a String Leetcode Solution3074
611Jump Game IV LeetCode Solution3064
612Maximum sum rectangle in a 2D matrix3059
613Count pair with Given Sum3056
614Contains Duplicate3053
615Find the First Circular Tour that visits all the Petrol Pumps3048
616Valid Sudoku3043
617Perform String Shifts Leetcode3042
618Convert BST to Min Heap3037
619Word Break3028
620Possible Bipartition LeetCode Solution3025
621Edit Distance LeetCode Solution3023
622Minimum Jumps to Reach Home LeetCode Solution3023
623Iterative Method to find Height of Binary Tree3023
624Heap Sort3020
625Lowest Common Ancestor of a Binary Search Tree Leetcode Solution3013
626Find the Minimum Element in a Sorted and Rotated Array3012
627A Space Optimized DP solution for 0-1 Knapsack Problem3011
628Palindrome Permutations of a String3007
629Find Largest Value in Each Tree Row LeetCode Solution2995
630Reach a Number LeetCode Solution2983
631Find First and Last Position of Element in Sorted Array LeetCode Solution2980
632Count Sub Islands LeetCode Solution2977
633Best Meeting Point LeetCode Solution2977
634Merge Overlapping Intervals II2977
635Maximum Product of Splitted Binary Tree LeetCode Solution2970
636Palindromic Substrings Leetcode Solution2970
637Palindrome Permutation2970
638Number of palindromic paths in a matrix2964
639Merge Two Balanced Binary Search Trees2959
640Segregate 0s and 1s in an Array2951
641Find the Subarray of given length with Least Average2951
642My Calendar I LeetCode Solution2948
643All Unique Triplets that Sum up to a Given Value2948
644Sorted Linked List to Balanced BST2945
645Caesar Cipher2940
646Huffman Coding2939
647Pair with given product2935
648Brick Wall LeetCode Solution2926
649Level order Traversal in Spiral Form2925
650Check if the given array can represent Level Order Traversal of Binary Search Tree2924
651Construct BST from given Preorder Traversal2922
652Find Median from data Stream2918
653Word Pattern2916
654Swapping Nodes in a Linked List Leetcode Solution2912
655Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2902
656Find all triplets with zero sum2900
657Partition Problem2899
658Merge K Sorted Arrays and Print Sorted Output2885
659Count Good Nodes in Binary Tree LeetCode Solution2878
660Maximize Sum of Array after K Negations Leetcode Solution2874
661Print Fibonacci sequence using 2 variables2874
662Validate Binary Search Tree2867
663Minimum time required to rot all oranges2857
664Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2854
665Add two numbers2854
666Alien Dictionary2854
667Find whether a subarray is in form of a mountain or not2852
668Isomorphic Strings LeetCode Solution2850
669Count Distinct Elements in Every Window of Size K2848
670Detect Capital Leetcode Solution2845
671Queries on Probability of Even or Odd Number in given Ranges2845
672Largest Sum Contiguous Subarray2840
673Sort 0s 1s and 2s in an Array2840
674Longest Subarray Having Count of 1s One More than Count of 0s2839
675Find all pairs (a, b) in an array such that a % b = k2838
676Convert Sorted List to Binary Search Tree2838
677How to Efficiently Implement k Stacks in a Single Array?2836
678Maximum Frequency Stack Leetcode Solution2834
679Bubble sort using two Stacks2832
680Range Sum Query 2D – Immutable LeetCode Solution2826
681Split Array Into Consecutive Subsequences2826
682Counting Bits2823
683Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2821
684Binary Tree Right Side View LeetCode Solution2821
685Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2820
686Find four elements that sum to a given value (Hashmap)2815
687Length of Longest Fibonacci Subsequence2809
688Rotate Array2809
689Breadth First Search (BFS) for a Graph2805
690Remove brackets from an algebraic string containing + and – operators2804
691Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2800
692Binary Tree to Binary Search Tree Conversion2796
693Minimum Swaps to Group All 1’s Together Leetcode Solution2794
694Maximum Number of Chocolates to be Distributed Equally Among k Students2791
695Count ways to reach the nth stair using step 1, 2 or 32785
696Partition to K Equal Sum Subsets Leetcode Solution2776
697Remove Palindromic Subsequences Leetcode Solution2772
698Merge Two Sorted Lists Leetcode2771
699Print all subarrays with 0 sum2770
700Populating Next Right Pointers in Each Node2767
701Difference Array | Range update query in O(1)2759
702Populating Next Right Pointers in Each Node Leetcode Solution2751
703Partition Equal Subset Sum2748
704Find pairs with given sum such that elements of pair are in different rows2746
705Topological Sorting2744
706Minimum Sum Path in a Triangle2740
707Remove duplicates from sorted array2740
708String comparison containing wildcards2740
709Happy Number2738
710Arithmetic Slices II – Subsequence LeetCode Solution2734
711Elements Appear more than N/K times in Array2731
712Contiguous Array Leetcode2723
713Check if a Linked list of Strings form a Palindrome2723
714Concatenation of Array LeetCode Solution2719
715Queue Reconstruction by Height2718
716Find All Pairs With a Given Difference2715
717Web Crawler LeetCode Solution2714
718Inorder Successor of a node in Binary Tree2711
719Find Duplicate Subtrees2699
720Root to Leaf path with target sum Leetcode Solutions2687
721Reverse Nodes in K-Group2687
722Increasing Subsequence of Length three with Maximum Product2680
723Minimum Number of Arrows to Burst Balloons LeetCode Solution2671
724Check if String Follows Order of Characters by a Pattern or not2669
725Finding K closest element2664
726Score of Parenthesis LeetCode Solution2662
727Swap Kth Node from beginning with Kth Node from End2659
728Minimum Swaps to Make Strings Equal Leetcode Solution2654
729Given a binary tree, how do you remove all the half nodes?2652
730Symmetric Tree2652
731Maximum Distance in Array2649
732Pancake Sorting2648
733Longest Common Prefix Using Binary Search II2644
734Climbing stairs2642
735Maximum Product Subarray II2639
736Construct Binary Tree from given Parent Array representation2634
737An Interesting Method to generate Binary Numbers from 1 to n2634
738Longest Increasing Subsequence2634
739Container with Most Water2634
740Count Minimum Steps to Get the given Array2633
741Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2629
742Deletion in a Binary Tree2618
743Sum Root to Leaf Numbers LeetCode Solution2610
744Parallel Courses II LeetCode Solution2610
745Check if all levels of two Binary Tree are anagrams or not2609
746Find the first repeating element in an array of integers2608
747Minimum Cost to Move Chips to The Same Position LeetCode Solution2607
748Delete Nodes and Return Forest Leetcode Solution2606
749Union and Intersection of two Linked Lists2604
750Delete Nth node from the end of the given linked list2600
751MiniMax Algorithm2596
752Substring With Concatenation Of All Words2593
753Boundary Traversal of binary tree2588
754Level order traversal using two Queues2586
755Kill Process LeetCode Solution2585
756Count pairs from two linked lists whose sum is equal to a given value2583
757Level of Each node in a Tree from source node2576
758Sort Array by Increasing Frequency Leetcode Solution2573
759Non-overlapping sum of two sets2573
760BFS vs DFS for Binary Tree2573
761Linked List Cycle2571
762Minimum Size Subarray Sum2569
763Iterative Depth First Traversal of Graph2567
764Find K Closest Elements LeetCode Solution2563
765Valid Anagrams2562
766Rearrange an Array Such that arr[i] is equal to i2562
767Merge K Sorted Linked Lists2558
768Minimum Remove to Make Valid Parentheses LeetCode Solution2555
769Find Maximum of Minimum for Every Window Size in a Given Array2553
770New 21 Game2551
771Iterative Preorder Traversal2545
772Longest Common Prefix Word by Word Matching2543
773Nested List Weight Sum II LeetCode Solution2538
774Remove Duplicates from Sorted List II2538
775Find the Difference Leetcode Solution2534
776Maximum size subarray sum equals k2530
777Range LCM Queries2528
778Matrix Chain Multiplication2527
779Merging Intervals2525
780Reservoir Sampling2523
781Super Ugly Number2516
782Maximum Product Subarray2510
783Verify Preorder Serialization of a Binary Tree2508
784Friends Of Appropriate Ages LeetCode Solution2504
785Palindrome Partitioning2504
786K maximum sums of overlapping contiguous sub-arrays2501
787Reorder Array Using Given Indexes2499
788Check if a queue can be sorted into another queue using a stack2498
789Balanced Binary Tree2497
790Print a Binary Tree in Vertical Order2495
791Sum of f(a[i], a[j]) over all pairs in an array of n integers2491
792Missing Number2491
793Smallest Range II Leetcode Solution2490
794Flatten Binary Tree to Linked List LeetCode Solution2488
795Check if any two intervals overlap among a given set of intervals2476
796Create Maximum Number2468
797Defanging an IP Address LeetCode Solution2463
798Find Maximum Sum Possible Equal Sum of Three Stacks2463
799Vertical sum in a given binary tree2459
800The Painter’s Partition Problem2458
801Check if Two Expressions With Brackets are Same2458
802Valid Triangle Number LeetCode Solution2456
803Sorting a K Sorted Array2456
804Maximum difference between two elements such as larger element comes after smaller2456
805Peak Index in a Mountain Array LeetCode Solution2452
806Minimum insertions to form a palindrome with permutations allowed2448
807Lowest Common Ancestor2447
808Check if a given array can represent Preorder Traversal of Binary Search Tree2440
809Minimum Distance Between BST Nodes Leetcode Solution2438
810Find Three Element From Different Three Arrays Such That a + b + c = sum2437
811Unique Binary Search Trees LeetCode Solution2433
812Find subarray with given sum (Handles Negative Numbers)2428
813Hamming Distance2426
814Count number of triplets with product equal to given number2425
815Largest Submatrix With Rearrangements LeetCode Solution2423
816Number Of Longest Increasing Subsequence2421
817Find K Length Subarray of Maximum Average2418
818Tree Traversal (Preorder, Inorder & Postorder)2417
819Valid Triangle Number LeetCode Solution2412
820Flatten 2D Vector LeetCode Solution2409
821Check if two nodes are on the same path in a Tree2407
822First Bad Version2403
823Find Common Characters Leetcode Solution2402
824Closest Leaf in a Binary Tree LeetCode Solution2396
825Employee Importance LeetCode Solution2396
826Find distance between two nodes of a Binary Tree2394
827Iterative Postorder Traversal Using Two Stacks2394
828Check Completeness of a Binary Tree LeetCode Solution2393
829Merging Two Sorted Arrays2393
830Third Maximum Number Leetcode Solution2391
831Find Peak Element2388
832Array Nesting Leetcode Solution2387
833Sort Elements by Frequency II2381
834Kth Smallest Element in a Sorted Matrix LeetCode Solution2379
835Find Element Using Binary Search in Sorted Array2379
836Maximum difference between frequency of two elements such that element having greater frequency is also greater2378
837Products of ranges in an array2378
838Print all triplets in sorted array that form AP2377
839Newman-Conway Sequence2374
840Maximum subsequence sum such that no three are consecutive2371
841Find Smallest Range Containing Elements from k Lists2370
842Valid Parenthesis String2370
843Diagonal Traversal of Binary Tree2369
844Print All Distinct Elements of a Given Integer Array2364
845Largest BST Subtree LeetCode Solution2363
846Maximum number of segments of lengths a, b and c2359
847Arrange given numbers to form the biggest number2358
848Longest Bitonic Subsequence2357
849Longest Palindromic Subsequence2353
850Distinct Subsequences2353
851Find Sum of all unique sub-array sum for a given array2351
852Print Right View of a Binary Tree2350
853Range Sum Query using Sparse Table2343
854Bottom View of a Binary Tree2341
855Find Nth Node2340
856Stone Game IV LeetCode Solution2339
857Lower Case To Upper Case2337
858Segment Tree2335
859Largest subarray with equal number of 0s and 1s2334
860Path Sum2330
861Largest divisible pairs subset2325
862Compare Strings by Frequency of the Smallest Character Leetcode Solution2322
863Contiguous Array2322
864Trapping Rain Water II LeetCode Solution2319
865Number of siblings of a given Node in n-ary Tree2317
866Stone Game IV LeetCode Solution2314
867Four Elements that Sum to Given2314
868Subset Sum Problem in O(sum) space2312
869Shuffle an Array2311
870Binary array after M range toggle operations2303
871Median of Two Sorted Arrays2301
872Merge Two Sorted Arrays2301
873Find the largest multiple of 32296
874Isomorphic Strings2293
875Unique Binary Search Trees2286
876Count and Say2284
877Minimum Swaps To Make Sequences Increasing LeetCode Solution2282
878Permutations of a Given String Using STL2282
879Red-Black Tree Introduction2278
880Maximum Population Year LeetCode Solution2270
881Next Greater Element in an Array2262
882Valid Number2261
883Find Largest d in Array such that a + b + c = d2260
884Infix to Postfix2255
885Maximum Product Subarray2253
886Encoded String With Shortest Length LeetCode Solution2247
887Friends Pairing Problem2246
888Maximum Sum of 3 Non-Overlapping Subarrays2243
889Find unique character in a string2241
890Insert Delete GetRandom2240
891Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2239
892Transform a BST to Greater sum Tree2238
893Averages of Levels in Binary Tree2238
894Write a function to get the intersection point of two Linked Lists2235
895Count Primes in Ranges2232
896Closest Binary Search Tree Value Leetcode Solution2228
897Height of a generic tree from parent array2225
898Valid Perfect Square LeetCode Solution2220
899Orderly Queue LeetCode Solution2218
900The Number of Weak Characters in the Game LeetCode Solution2216
901Binary Search Tree Delete Operation2215
902Shuffle a given Array2214
903Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2210
904Range Minimum Query (Square Root Decomposition and Sparse Table)2207
905Sentence Screen Fitting LeetCode Solution2203
906Edit Distance2192
907Binary Tree Longest Consecutive Sequence LeetCode Solution2186
908Serialize and Deserialize Binary Tree2186
909Bold Words in String LeetCode Solution2183
910Minimum sum of squares of character counts in a given string after removing k characters2182
911Reorganize String2176
912Kth Smallest Number in Multiplication Table Leetcode Solution2170
913Convert BST into a Min-Heap without using array2164
914Find Minimum In Rotated Sorted Array2161
915Diameter of N-Ary Tree LeetCode Solution2159
916Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2158
917Next greater element2158
918Integer to Roman2157
919Swap Nodes In Pairs2149
920Lowest Common Ancestor in Binary Search Tree2149
921Maximum Product Subarray2141
922Next Greater Element II LeetCode Solution2132
923Array Queries for multiply replacements and product2130
924Advantages of BST over Hash Table2126
925Find the smallest binary digit multiple of given number2125
926K’th Largest element in BST using constant extra space2121
927K’th Largest Element in BST when modification to BST is not allowed2121
928Koko Eating Bananas LeetCode Solution2117
929Total Hamming Distance LeetCode Solution2111
930Write Code to Determine if Two Trees are Identical2105
931Print n terms of Newman-Conway Sequence2105
932Best Meeting Point LeetCode Solution2103
933Longest Increasing Consecutive Subsequence2100
934Check if an Array is Stack Sortable2097
935Constant time range add operation on an array2096
936Level Order Traversal of Binary Tree2093
937Queries on XOR of greatest odd divisor of the range2091
938Serialize and Deserialize Binary Tree LeetCode Solution2089
939Maximum Sum Increasing Subsequence2081
940Range Queries for Longest Correct Bracket Subsequence2077
941Image Overlap LeetCode Solution2075
942Number of Orders in the Backlog Leetcode Solution2074
943Clone a Binary Tree with Random Pointers2068
944Power of Two2068
945Reverse a Path in BST using Queue2066
946Moving Stones Until Consecutive Leetcode Solution2065
947Check if X can give change to every person in the Queue2059
948Greatest Sum Divisible by Three LeetCode Solution2057
949Find minimum number of merge operations to make an array palindrome2057
950Find the node with minimum value in a Binary Search Tree2053
951Design Underground System Leetcode Solution2052
952Valid Tic-Tac-Toe State LeetCode Solution2051
953A program to check if a binary tree is BST or not2047
954Numbers with prime frequencies greater than or equal to k2045
955Insert into a Sorted Circular Linked List LeetCode Solution2037
956Check if each internal node of a BST has exactly one child2037
957Count and Toggle Queries on a Binary Array2035
958Form minimum number from given sequence2031
959Factorial Trailing Zeroes LeetCode Solution2023
960Design Add and Search Words Data Structure LeetCode Solution2022
961Maximum Array from Two given Arrays Keeping Order Same2022
962Print Next Greater Number of Q queries2019
963Closest Binary Search Tree Value II LeetCode Solution2015
964Number of elements less than or equal to a given number in a given subarray2015
965Count the Pairs at Same Distance as in English Alphabets2014
966Collect maximum points in a grid using two traversals2013
967Graph Cloning2010
968Check for Palindrome after every character replacement Query2006
969Merge two BSTs with limited extra space2001
970Maximum difference between first and last indexes of an element in array1999
971Queries for Decimal Values of Subarrays of a Binary Array1996
972Largest Plus Sign Leetcode Solution1995
973Group Shifted Strings Leetcode Solution1993
974Merge Sorted Array1989
975Priority Queue1977
976Merge Sort1976
977Dividing Array into Pairs With Sum Divisible by K1968
978Longest Substring Without Repeating Characters Leetcode Solution1961
979Count even length binary sequences with same sum of first and second half bits1955
980Kth Smallest Element in a BST1952
981Cutting a Rod1945
982Print Ancestors of a Given Binary Tree Node Without Recursion1943
983Print modified array after multiple array range increment operations1942
984Form Minimum Number From Given Sequence1936
985Minimum Moves to Equal Array Elements LeetCode Solution1933
986Excel Sheet Column Number LeetCode Solution1926
987Guess The Word1918
988Swim in Rising Water LeetCode Solution1917
989Count Pairs Whose Products Exist in Array1916
990Find maximum average subarray of k length1914
991Unique Paths II1908
992Excel Sheet Column Title LeetCode Solution1903
993Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1901
994Binary Search Tree1893
995Print all Possible Ways to Break a String in Bracket Form1891
996Palindrome Partitioning1888
997How to print maximum number of A’s using given four keys1887
998K Empty Slots1880
999Check given array of size n can represent BST of n levels or not1876
1000Binary Search Tree Search and Insertion1871
1001Decrease Elements To Make Array Zigzag LeetCode Solution1866
1002Find postorder traversal of BST from preorder traversal1858
1003Longest Common Prefix using Character by Character Matching1855
1004Regular Expression Matching1854
1005Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1852
1006Sorted Array to Balanced BST1848
1007Sum of Left Leaves LeetCode Solution1845
1008Construct Complete Binary Tree from its Linked List Representation1814
1009Maximum Depth Of Binary Tree1801
1010Queries for Number of Distinct Elements in a Subarray1800
1011Find the Town Judge LeetCode Solution1789
1012Maximum weight transformation of a given string1789
1013Iterative method to find ancestors of a given binary tree1782
1014Binary Tree to Binary Search Tree Conversion using STL set1765
1015Symmetric Tree LeetCode Solution Leetcode Solution1755
1016Shortest Unsorted Continuous Subarray LeetCode Solution1753
1017Random Pick Index LeetCode Solution1750
1018Find Maximum Depth of Nested Parenthesis in a String1748
1019Data Structure Designing1746
1020Search in Sorted Rotated Array1743
1021Search an Element in Sorted Rotated Array1711
1022Kth Smallest Product of Two Sorted Arrays LeetCode Solution1693
1023Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1678
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1670
1025Next Greater Element I Leetcode Solution1648
1026Print Maximum Length Chain of Pairs1627
1027Maximum Binary Tree1605
1028Flatten Binary Tree to Linked List LeetCode Solution1597
1029Find k-th smallest element in BST (Order Statistics in BST)1595
1030Peeking Iterator LeetCode Solution1579
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1538
Translate »