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 Solution43523
2Maximum occurring character in a string19706
3Plus One Leetcode Solution19222
4Valid Parentheses LeetCode Solution19143
53Sum Leetcode Solution17066
6Merge Sorted Arrays Leetcode Solution15236
7First Repeating Element15115
8Single Number Leetcode Solution14810
9Count Primes Leetcode Solutions14625
10Pow(x, n) Leetcode Solution14255
11Sqrt(x) Leetcode Solution14105
12Meeting Rooms II LeetCode Solution13192
13Concatenation of Array LeetCode Solution12734
14Roman to Integer Leetcode Solution11916
15Valid Palindrome Leetcode Solution11798
16Contains Duplicate II Leetcode Solution11720
17Search Insert Position Leetcode Solution11716
18Palindrome Number LeetCode Solution11526
19Remove Duplicates from Sorted Array Leetcode Solution11406
20Jump Game Leetcode Solution11135
21Reverse Vowels of a String Leetcode Solution11122
22Intersection of Two Arrays II Leetcode Solution11012
23Longest Substring Without Repeating Characters LeetCode Solution10989
24Number of Good Pairs Leetcode Solution10863
25Spiral Matrix LeetCode Solution10800
26Kids With the Greatest Number of Candies Leetcode Solution10732
27House Robber Leetcode Solution10679
28Add Binary Leetcode Solution10577
29Maximum Subarray Leetcode Solution10199
30Number Of 1 bits10032
31Find the Maximum Repeating Number in Array9918
32Text Justification LeetCode Solution9801
33Move Zeroes LeetCode Solution9749
34Jewels and Stones Leetcode Solution9709
35Min Stack Leetcode Solution9584
36Power of Two Leetcode Solution9512
37Longest Palindromic Substring LeetCode Solution9457
38Shuffle String Leetcode Solution9404
39Permutations Leetcode Solution9345
40Evaluation of Postfix Expression9259
41Third Maximum Number Leetcode Solution9252
42Find All Numbers Disappeared in an Array Leetcode Solution9214
43Word Search Leetcode Solution9213
44Daily Temperatures Leetcode Solution9196
45Median of Two Sorted Arrays LeetCode Solution9132
46Next Permutation Leetcode Solution9124
47Search in Rotated Sorted Array Leetcode Solution9065
48Number of Islands LeetCode Solution8998
49Maximum Profit in Job Scheduling Leetcode Solution8955
50Kth Missing Positive Number Leetcode Solution8948
51Longest Common Prefix Leetcode Solution8891
52Next Greater Element I Leetcode Solution8870
53Frog Jump Leetcode Solution8706
54Valid Anagram Leetcode Solution8584
55Find Minimum Distance Between Two Numbers in an Array8550
56Rotate Image LeetCode Solution8492
57Running Sum of 1d Array Leetcode Solution8478
58Shuffle the Array Leetcode Solution8448
59Multiply Strings Leetcode Solution8434
60Can Place Flowers LeetCode Solution8400
61Combination Sum Leetcode Solution8390
62Count and Say Leetcode Solution8369
63House Robber II Leetcode Solution8339
643Sum Closest LeetCode Solution8274
65Bulb Switcher LeetCode Solution8259
66Koko Eating Bananas Leetcode Solution8095
67Best Time to Buy and Sell Stock LeetCode Solution8083
68Excel Sheet Column Title Leetcode Solution8061
69Happy Number Leetcode Solution8033
70Isomorphic Strings Leetcode Solution8013
71Subarray and Subsequence8000
72Majority Element Leetcode Solution7919
73Count Pairs With Given Sum7894
74Integer to Roman Leetcode Solution7863
75Missing Number Leetcode Solution7856
76Candy LeetCode Solution7844
77Product of array except self7839
78Rotate String LeetCode Solution7795
79Strobogrammatic Number LeetCode Solution7754
80A Product Array Puzzle7708
81Reverse String Without Temporary Variable7665
82Is Subsequence Leetcode Solution7634
83Find the Difference Leetcode Solution7608
84Find the Duplicate Number LeetCode Solution7593
85Binary Search LeetCode Solution7576
86Expression Evaluation7569
87Find Common Characters Leetcode Solution7533
88Largest Number Leetcode Solution7524
89Subtract the Product and Sum of Digits of an Integer Leetcode Solution7442
90String to Integer (atoi) LeetCode Solution7381
91How Many Numbers Are Smaller Than the Current Number Leetcode Solution7365
92Subset Leetcode7331
93Summary Ranges Leetcode Solution7281
94Set Matrix Zeroes7269
95Rabin Karp Algorithm7249
96Word Pattern LeetCode Solution7214
97Sort Characters By Frequency LeetCode Solution7206
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 Solution7065
103Rearrange Positive and Negative Numbers Alternatively in Array6983
104String Compression LeetCode Solution6972
105Asteroid Collision LeetCode Solution6945
106Group Anagrams LeetCode Solution6928
107Postfix to Infix Conversion6902
108Repeated Substring Pattern LeetCode Solution6876
109Page Replacement Algorithms in Operating Systems6847
110Smallest window in a string containing all characters of another string6829
111Sort Colors LeetCode Solution6787
112Matrix Chain Multiplication using Dynamic Programming6778
113Best Time to Buy and Sell Stock  II Leetcode Solution6758
114Sort Array By Parity LeetCode Solution6639
115Zigzag Conversion LeetCode Solution6628
116Divide Two Integers Leetcode Solution6596
117Generate Parentheses Leetcode Solution6585
118Kth largest element in an Array Leetcode Solutions6576
119Valid Palindrome II Leetcode Solution6571
120Sum of minimum and maximum elements of all subarrays of size k6560
121Assign Cookies Leetcode Solution6485
122Reverse Integer Leetcode Solution6458
123Remove Duplicates from Sorted Array II Leetcode Solution6452
124Length of Last Word Leetcode Solution6419
125Product of Array Except Self LeetCode Solution6415
126Decode String Leetcode Solution6408
127Find the Row with Maximum Number of 1’s6405
128Pascal Triangle Leetcode6353
129Bus Routes Leetcode Solution6345
130H-Index Leetcode Solution6343
131Number of Provinces Leetcode Solution6334
132Merge Two Sorted Lists Leetcode Solutions6316
133Linked List Cycle II LeetCode Solution6242
134Convert array into Zig-Zag fashion6233
135Minimum Cost For Tickets Leetcode Solution6225
136Minimum Steps to reach target by a Knight6224
137Defanging an IP Address Leetcode Solution6216
138Prefix to Infix Conversion6211
139Optimal Account Balancing LeetCode Solution6205
140Employee Free Time LeetCode Solution6196
141Pascal’s Triangle II Leetcode Solution6110
142Find First and Last Position of Element in Sorted Array Leetcode Solution6069
143Increasing Triplet Subsequence LeetCode Solution6043
144First element occurring k times in an array6042
145Merge Sorted Array LeetCode Solution6013
146Build Array From Permutation Leetcode Solution6005
147Implementation of Deque using Doubly Linked List6001
148Majority Element II Leetcode Solution5977
149Island Perimeter Leetcode Solution5976
150Robot Room Cleaner Leetcode Solution5955
151Max Consecutive Ones Leetcode Solution5911
152Bellman Ford Algorithm5906
153Swap Nodes in Pairs Leetcode Solutions5862
154Find Pair with Given Difference5862
155Check if the Elements of an Array are Consecutive5854
156OSI Model5851
157Set Matrix Zeroes Leetcode Solution5844
158Guess Number Higher or Lower LeetCode Solution5829
159K-th Smallest Element in a Sorted Matrix5818
160KMP Algorithm5811
161Add Two Numbers II Leetcode Solution5805
162Find the Missing Number5783
163Fibonacci Number LeetCode Solution5765
164First negative integer in every window of size k5760
165Trapping Rain Water Leetcode Solution5748
166Lemonade Change Leetcode Solution5744
167Subarray Sum Equals K LeetCode Solution5743
168Design Parking System Leetcode Solution5733
169Delete middle element of a stack5701
170First Unique Character in a String LeetCode Solution5695
171Word Ladder LeetCode Solution5674
172Find All Duplicates in an Array LeetCode Solution5653
173Coin Change 2 Leetcode Solution5650
174Length of the largest subarray with contiguous elements5641
175String Compression5641
176Subarray Product Less Than K LeetCode Solution5639
177Last Stone Weight5638
178Monotonic Array LeetCode Solution5628
179Subarray with Given Sum5628
180Capacity To Ship Packages Within D Days Leetcode Solution5626
181Palindrome Linked List Leetcode Solution5601
182Repeated Substring Pattern5550
183Form Minimum Number from Given Sequence of D’s and I’s5528
184Find Smallest Missing Number in a Sorted Array5528
185Single Element in a Sorted Array LeetCode Solution5512
186Combinations Leetcode Solution5484
18701 Matrix LeetCode Solution5482
188Remove Duplicates from Sorted List II LeetCode Solution5476
189Prefix to Postfix Conversion5466
190Continuous Subarray Sum LeetCode Solution5427
191Reverse Words in a String III LeetCode Solution5415
192Valid Perfect Square Leetcode Solution5412
193Iterative Implementation of Quick Sort5388
194Same Tree LeetCode Solution5379
195Break a Palindrome LeetCode Solution5367
196Combination Sum5365
197Leetcode Permutations5338
198Merge k Sorted Lists Leetcode Solution5329
199Remove Linked List Elements Leetcode Solution5314
200Slowest Key Leetcode Solution5286
201Top K Frequent Elements LeetCode Solution5276
202Relative Ranks Leetcode Solution5273
203Backspace String Compare5269
204Maximum Product of Three Numbers LeetCode Solution5250
205Rotate List Leetcode Solution5239
206Insert Delete GetRandom O(1) Leetcode Solution5234
207Container With Most Water LeetCode Solution5229
208Find Peak Element LeetCode Solution5216
209Find the Duplicate Element5199
210Contains Duplicate LeetCode Solution5186
211The K Weakest Rows in a Matrix Leetcode Solution5167
212Boolean Parenthesization Problem5167
213Printing brackets in Matrix Chain Multiplication Problem5142
214Cuckoo sequence program5133
215Second Most Repeated Word in a Sequence5110
216Longest Common Subsequence LeetCode Solution5107
217Palindrome Number5098
218Kth Largest Element in a Stream Leetcode Solution5091
219Subarray Sum Equals k5075
220Remove All Occurrences of a Substring LeetCode Solution5059
221Permutation in String Leetcode Solution5042
222Relative Sort Array Leetcode Solution5040
223Rearrange given Array in Maximum Minimum Form5037
224Make The String Great Leetcode Solution5035
225Max Area of Island5017
226Find Leaders in an Array5011
227Unique Paths II Leetcode Solution5008
228Arithmetic Expression Evaluation5001
229Generate all Binary Strings Without Consecutive 1’s4999
230Convert a Number to Hexadecimal Leetcode Solution4995
231Delete Node in a Linked List Leetcode Solution4982
232Target Sum4970
233Check If Two String Arrays are Equivalent Leetcode Solution4960
234Construct Binary Tree from Given Inorder and Preorder Traversals4954
235N-Queens LeetCode Solution4949
236Moving Average from Data Stream Leetcode Solution4947
237Time Based Key-Value Store LeetCode Solution4938
238Scramble String4926
239Letter Combinations of a Phone Number4910
240Count Good Nodes in Binary Tree Leetcode Solution4904
241Next Permutation4904
242Number of Dice Rolls With Target Sum LeetCode Solution4903
243LRU Cache LeetCode Solution4890
244Find N Unique Integers Sum up to Zero Leetcode Solution4856
245Check If N and Its Double Exist Leetcode Solution4855
246Stone Game LeetCode4847
247Given two unsorted arrays find all pairs whose sum is x4846
248Find Triplet in Array With a Given Sum4835
249Number of Steps to Reduce a Number to Zero Leetcode Solution4801
250Flipping an Image LeetCode Solution4798
251Prim’s Algorithm4780
252Minimum swaps required to bring all elements less than or equal to k together4773
253Reverse Only Letters LeetCode Solution4749
254Top K Frequent Elements4749
255Remove Minimum Characters so that Two Strings Become Anagrams4747
256Find The Duplicate Number4738
257Stock Buy Sell to Maximize Profit4735
258Min Cost Climbing Stairs LeetCode Solution4725
259Minimum Knight Moves LeetCode Solution4716
260Min Stack4715
261Student Attendance Record I Leetcode Solution4712
262Minimum Operations to convert X to Y4657
263To Lower Case Leetcode Solution4656
264Single Number4651
265Maximum Sum Increasing Subsequence4648
266Smallest Positive Number Missing in an Unsorted Array4646
267The kth Factor of n Leetcode Solution4636
268Maximum Subarray Sum using Divide and Conquer4626
269Reverse words in a string4614
270License Key Formatting Leetcode Solution4613
271Maximum Population Year LeetCode Solution4599
272Longest Common Subsequence4542
273Search Suggestions System LeetCode Solution4533
274Remove Nth Node From End of List Leetcode Solution4531
275Top K Frequent Words LeetCode Solution4524
276Special Array With X Elements Greater Than or Equal X Leetcode Solution4516
277Find the Number Occurring Odd Number of Times in an Array4507
278Reformat Date LeetCode Solution4501
279Sum of Subarray Ranges Leetcode Solution4491
280Find Words That Can Be Formed by Characters Leetcode Solution4484
281BFS for Disconnected Graph4479
282Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution4446
283Minimum Path Sum Leetcode Solution4446
284Maximum Depth of Binary Tree Leetcode Solution4434
285Reveal Cards In Increasing Order Leetcode Solution4412
286N-th Tribonacci Number Leetcode Solution4410
287Intersection of Two Arrays4387
288Diagonal Traverse LeetCode Solution4377
289Reverse individual words4373
290House Robber4372
291Evaluate Division4361
292Best Time to Buy and Sell Stock III Leetcode Solution4354
293Maximize Distance to Closest Person LeetCode Solution4352
294Find any one of the multiple repeating elements in read only array4350
295Last Stone Weight II LeetCode Solution4349
296Minimum Characters to be Added at Front to Make String Palindrome4343
297Design A Leaderboard Leetcode Solution4321
298Remove Duplicates from Sorted List LeetCode Solution4318
299Sort Elements by Frequency of Occurrences4318
300Binary Tree Inorder Traversal LeetCode Solution4317
301Find if Path Exists in Graph Leetcode Solution4316
302Maximum Size Subarray Sum Equals k Leetcode Solution4315
303Count of index pairs with equal elements in an array4307
304Count Number of Occurrences in a Sorted Array4306
305Length of Longest valid Substring4288
306Range Sum Query 2D – Immutable Leetcode Solution4285
307Reverse Nodes in k-Group LeetCode Solution4273
308Most Frequent Element in an Array4266
309Minimum number of Merge Operations to make an Array Palindrome4254
310Implement a stack using single queue4241
311Sudoku Solver4238
312Remove All Ones With Row and Column Flips Leetcode Solution4237
313Find Index of Closing Bracket for a Given Opening Bracket in an Expression4218
314Brightest Position on Street LeetCode Solution4207
315Mobile Numeric Keypad Problem4201
316Find the Closest Palindrome number4200
317Spiral Matrix II Leetcode Solution4191
318Split Linked List in Parts Leetcode Solution4178
319Find Leaves of Binary Tree LeetCode Solution4177
320Reverse Bits4171
321Special Positions in a Binary Matrix Leetcode Solution4170
322Partition Array Into Three Parts With Equal Sum Leetcode Solution4162
323Invalid Transactions LeetCode Solution4149
324Symmetric Tree Leetcode Solution4138
325Paint House LeetCode Solution4131
326Shortest Word Distance Leetcode Solution4131
327Maximum Subarray4127
328Sort Array By Parity II Leetcode Solution4105
329Arrange given Numbers to Form the Biggest Number II4097
330Diagonal Traversal LeetCode Solution4081
331Round Robin Scheduling4075
332Find Duplicates in an Array in Most Efficient Way4075
333One Edit Distance LeetCode Solution4074
334Largest Rectangle in Histogram LeetCode Solution4061
335Remove Invalid Parentheses Leetcode Solution4044
336Dijkstra Algorithm4044
337Rank Transform of an Array Leetcode Solution4039
338Hamming Distance Leetcode Solution4037
339Jump Game4031
340Partition Labels LeetCode Solution4025
341Binary Tree Zigzag Level Order Traversal LeetCode Solution4024
342Alien Dictionary LeetCode Solution4023
343Unique Paths4020
344Tug of War4001
345Maximal Square3997
346Minimum Moves to Equal Array Elements Leetcode Solution3996
347Minimum Time to Collect All Apples in a Tree LeetCode Solution3984
348String Matching in an Array Leetcode Solution3978
349Find Winner on a Tic Tac Toe Game Leetcode Solution3972
350Construct BST from its given Level Order Traversal3967
351Lowest Common Ancestor of a Binary Tree Leetcode Solution3964
352Range Sum of BST LeetCode Solution3963
353The Celebrity Problem3963
354Next Permutation LeetCode Solution3959
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 Solution3947
358Minimum Depth of Binary Tree Leetcode Solution3940
359Merge Two Sorted Linked Lists3926
360Longest Common Prefix using Trie3925
361Pair of Positive Negative Values in an Array3924
362Validate Stack Sequences LeetCode Solution3923
363Unique Paths III LeetCode Solution3919
364Postfix to Prefix Conversion3915
365Maximum Circular Subarray Sum3912
366Smallest Subarray with k Distinct Numbers3911
367Maximum Length of a Concatenated String with Unique Characters Leetcode Solution3910
368Given an Array of Pairs Find all Symmetric Pairs in it3905
369Transpose Graph3891
370Check whether Strings are K Distance Apart or Not3890
371Minimum Time Visiting All Points Leetcode Solution3889
372Count of Triplets With Sum Less than Given Value3884
373Minimum Cost to Hire K Workers3876
374Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions3870
375Substring with Concatenation of All Words Leetcode Solution3869
376Robot Bounded In Circle LeetCode Solution3866
377K Empty Slots LeetCode3866
378Next Greater Element III LeetCode Solution3865
379Invert Binary Tree LeetCode Solution3863
380Recursion3859
381Find minimum difference between any two elements3857
382Clone Graph LeetCode Solution3854
383Check if a given array contains duplicate elements within k distance from each other3851
384Longest Substring with At Most K Distinct Characters LeetCode Solution3841
385Ugly Number II LeetCode Solution3840
386Kruskal Algorithm3831
387Implementation of Deque using circular array3828
388Sort a stack using a temporary stack3825
389Regular Expression Matching Regular Expression Matching LeetCode Solution3820
390Minimize Maximum Pair Sum in Array LeetCode Solution3812
391Non-decreasing Array LeetCode Solution3807
392Invert Binary Tree LeetCode Solution3795
393Permutation Sequence LeetCode Solution3793
394Toeplitz Matrix3789
395Stack Permutations (Check if an array is stack permutation of other)3787
396Graph Valid Tree LeetCode Solution3783
397LRU Cache Implementation3782
398Longest subsequence such that difference between adjacents is one3780
399Find the subarray with least average3779
400Convert Sorted Array to Binary Search Tree LeetCode Solutions3778
401Word Search3769
402Sliding Window Technique3769
403Best Time to Buy and Sell Stock with Cooldown Leetcode Solution3768
404Kth Smallest Element in a BST Leetcode Solution3763
405Design Browser History LeetCode Solution3760
406Longest subarray not having more than K distinct elements3760
4073 Sum3758
408Find the First and Second Smallest Elements3758
409Missing Element in Sorted Array LeetCode Solution3751
410Find the Smallest Divisor given a Threshold Leetcode Solution3743
411Find duplicates in a given array when elements are not limited to a range3739
412Partition List Leetcode Solution3730
413Number of Islands II LeetCode Solution3724
414Priority Queue using doubly linked list3721
415Common elements in all rows of a given matrix3718
416Path With Maximum Minimum Value LeetCode Solution3716
417Find Top K (or Most Frequent) Numbers in a Stream3715
418Queries for counts of array elements with values in given range3713
419Number Complement Leetcode Solution3711
420Stone Game II Leetcode3709
421First Circular Tour to Visit all the Petrol Bunks3707
422K Closest Points to Origin Leetcode Solution3706
423Top View of Binary Tree3701
424Number of Smaller Elements on Right Side3699
425Minesweeper LeetCode Solution3697
426Max stack3696
427Find Maximum Level sum in Binary Tree3696
428Search a 2D Matrix II Leetcode Solution3688
429Maximum Number of Occurrences of a Substring Leetcode Solution3687
430Sequences of given length where every element is more than or equal to twice of previous3687
431LRU Cache Leetcode Solution3679
432Combination Sum IV LeetCode Solution3679
433Find the Peak Element from an Array3678
434Integer Break LeetCode Solution3675
435Snakes and Ladders LeetCode Solution3668
436Nth Catalan Number3668
437High Five LeetCode Solution3660
438Painting Fence Algorithm3659
439Can Make Arithmetic Progression From Sequence Leetcode Solution3657
440Sort elements by frequency3650
441Longest Palindrome can be Formed by Removing or Rearranging Characters3636
442Odd Even Linked List Leetcode Solution3633
443Insert Interval Leetcode Solution3628
444Find Minimum in Rotated Sorted Array II LeetCode Solution3623
445Maximum Consecutive Numbers Present in an Array3617
446Fibonacci Number LeetCode Solution3616
447Rearrange array such that even positioned are greater than odd3615
448Check if Two given Strings are Isomorphic to each other3615
449Flood Fill LeetCode3613
450Shortest Palindrome3611
451Sliding Window Maximum LeetCode Solution3606
452Consecutive Characters LeetCode Solution3605
4534Sum3602
454Search in a Binary Search Tree Leetcode Solution3599
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 space3574
458Tiling Problem3574
459Move All the Zeros to the End of the Given Array3571
460Gold Mine Problem3557
461Number of Closed Islands Leetcode Solution3555
462Expression Contains Redundant Bracket or Not3554
463Spiral Matrix III LeetCode Solution3552
464Kth Non-repeating Character3552
465Replace Elements with Greatest Element on Right Side Leetcode Solution3550
466Insert into a Binary Search Tree Leetcode Solution3549
467Minimum Absolute Difference in BST Leetcode Solution3543
468Find a Peak Element II LeetCode Solution3538
469Coin Change Problem3524
470Queries for GCD of all numbers of an array except elements in a given range3521
471Check If Array Pairs Are Divisible by k LeetCode Solution3520
472Integer to English words3519
473Minimum Path Sum3515
474N queen problem3515
475Sliding Window Median Leetcode Solution3511
476Decompress Run-Length Encoded List Leetcode Solution3511
477Evaluate Reverse Polish Notation LeetCode Solution3508
478Restore IP Addresses Leetcode Solution3507
479Trapping Rain Water LeetCode Solution3505
480Longest Common Prefix using Sorting3501
481Interval Tree3494
482Convert Sorted Array to Binary Search Tree Leetcode Solution3489
483Balanced Expression with Replacement3487
484Find All Possible Recipes from Given Supplies LeetCode Solution3482
485Sorting array using Stacks3479
486Sort an array according to the order defined by another array3479
487Sort Colors3475
488Binary Tree Maximum Path Sum LeetCode Solution3474
489Find Pythagorean Triplets from Array3462
490Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest3455
491Majority Element3454
492Cells with Odd Values in a Matrix LeetCode Solution3448
493Best Time to Buy and Sell Stock3444
494Reverse a linked list3444
495Vertical Order Traversal of Binary Tree LeetCode Solution3442
496Palindrome Substring Queries3436
497Subset sum problem3427
498Number of Days Between Two Dates LeetCode Solution3426
499Priority Queue in C++3423
500The Stock Span Problem3416
501Find Median from Data Stream LeetCode Solution3413
502Fibonacci numbers3411
503Path Sum II LeetCode Solution3408
504Minimum Number of Taps to Open to Water a Garden LeetCode Solution3406
505Queue using Stacks3401
506Sieve of Eratosthenes3399
507Find the first Repeating Number in a Given Array3395
508Path Crossing Leetcode Solution3392
509Camelcase Matching Leetcode Solution3385
510Is Graph Bipartite? LeetCode Solution3381
511Intersection of Two Linked Lists LeetCode Solution3374
512Largest rectangular sub-matrix whose sum is 03374
513Kth ancestor of a node in binary tree3373
514Multiplication of Two Matrices3372
515Design Hit Counter LeetCode Solution3368
516How to Implement Stack Using Priority Queue or Heap?3362
517Pancake Sorting Problem3357
518Divide Chocolate LeetCode Solution3351
519Longest Increasing Path in a Matrix LeetCode Solution3351
520Analyze User Website Visit Pattern LeetCode Solution3350
521Custom Sort String Leetcode Solution3349
522Shortest Completing Word Leetcode Solution3349
523Different Ways to Add Parentheses Leetcode Solution3339
524Monotonic Array Leetcode Solution3336
525Count Submatrices With All Ones LeetCode Solution3332
526Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution3327
527Count subarrays having total distinct elements same as original array3323
528Group Anagrams3320
529Find a Fixed Point in a Given Array3319
530Scramble String LeetCode Solution3310
531Check if Array Contains Contiguous Integers With Duplicates Allowed3310
532Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution3307
533Perfect Squares LeetCode Solution3305
534Detect a loop in the Linked List3297
535Generate all Binary Strings from Given Pattern3293
536Shifting Letters LeetCode Solution3292
537Merge Overlapping Intervals3284
538Queue based approach for first non-repeating character in a stream3283
539Minimum Height Trees3282
540Construction of Longest Increasing Subsequence (N log N)3281
541Implement Trie (Prefix Tree) Leetcode Solution3279
542Implement strStr() LeetCode Solution3274
543Valid Boomerang Leetcode Solution3273
544Number of Distinct Islands Leetcode Solution3272
545Nearest Exit from Entrance in Maze LeetCode Solution3266
546Decode Ways3264
547Reorder Data in Log Files LeetCode Solution3258
548How to Create Mergable Stack?3258
549Race Car LeetCode Solution3254
550Champagne Tower LeetCode Solution3246
551Sort a stack using recursion3245
552Sliding Window Maximum3243
553Morris Traversal3240
554Binary Tree zigzag level order Traversal3240
555Maximum Element in an Array which is Increasing and then Decreasing3240
556Longest Common Prefix using Divide and Conquer3239
557Maximum Sum of Non Consecutive Elements3239
558Find the Lost Element From a Duplicated Array3234
559Best Time to Buy and Sell Stock IV LeetCode Solution3233
560Number of Equivalent Domino Pairs Leetcode Solution3229
561LCS (Longest Common Subsequence) of three strings3223
562Insert Node in the Sorted Linked List3221
563Most Stones Removed with Same Row or Column LeetCode Solution3220
564Find if an Expression has Duplicate Parenthesis or Not3219
565Find maximum length Snake sequence3212
566Count Possible Triangles3212
567First missing positive3211
568Build an Array With Stack Operations Leetcode Solution3210
569Recover Binary Search Tree3210
570Palindrome Permutation LeetCode Solution3207
571Design Skiplist LeetCode Solution3197
572Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution3197
573Letter Case Permutation3196
574Decode String3195
575Smallest Good Base3191
576Find a Sorted Subsequence of size 33190
577Rectangle Overlap LeetCode Solution3182
578Minimum Bracket Reversals3180
579Merge Two Binary Trees LeetCode Solution3175
580Contiguous Array LeetCode Solution3174
581Longest Repeated Subsequence3166
582Distance Between Bus Stops Leetcode Solution3165
583Guess Number Higher or Lower II3165
584All Possible Full Binary Trees LeetCode Solution3164
585Longest Substring with At Least K Repeating Characters LeetCode Solution3164
586Largest Subarray with Equal Number of 0’s and 1’s3155
587Recover Binary Search Tree Leetcode Solution3154
588Palindrome Partitioning Leetcode Solution3153
589Find the Town Judge LeetCode Solution3149
590Maximum Length of Chain Pairs3149
591Maximum Depth of N-ary Tree Leetcode Solution3148
592Minimum Height Trees LeetCode Solution3146
593Print all Palindromic Partitions of a String3145
594Maximum Number of Ways to Partition an Array LeetCode Solution3140
595Find the two Numbers with Odd Occurrences in an Unsorted Array3135
596Minimum number of jumps to reach end3134
597Design a Stack With Increment Operation Leetcode Solution3130
598K-th Distinct Element in an Array3125
599Group Multiple Occurrence of Array Elements Ordered by first Occurrence3115
600Rearrange Spaces Between Words Leetcode Solution3111
601Check for Balanced Parentheses in an Expression3106
602Valid Parentheses Leetcode Solution3105
603The Maze III LeetCode Solution3103
604Reorder an Array According to the Given Indexes3102
605Implement Two Stacks in an Array3101
606Subarrays with K Different Integers Leetcode Solution3094
607Mean of Array After Removing Some Elements Leetcode Solution3084
608Maximize Elements Using Another Array3082
609Sort a String According to Another String3082
610Maximum Score After Splitting a String Leetcode Solution3073
611Jump Game IV LeetCode Solution3061
612Maximum sum rectangle in a 2D matrix3057
613Count pair with Given Sum3054
614Contains Duplicate3048
615Find the First Circular Tour that visits all the Petrol Pumps3046
616Valid Sudoku3038
617Perform String Shifts Leetcode3038
618Convert BST to Min Heap3034
619Word Break3028
620Possible Bipartition LeetCode Solution3023
621Edit Distance LeetCode Solution3023
622Minimum Jumps to Reach Home LeetCode Solution3022
623Iterative Method to find Height of Binary Tree3016
624Heap Sort3015
625Lowest Common Ancestor of a Binary Search Tree Leetcode Solution3011
626A Space Optimized DP solution for 0-1 Knapsack Problem3010
627Palindrome Permutations of a String3006
628Find the Minimum Element in a Sorted and Rotated Array3006
629Find Largest Value in Each Tree Row LeetCode Solution2993
630Reach a Number LeetCode Solution2983
631Find First and Last Position of Element in Sorted Array LeetCode Solution2979
632Best Meeting Point LeetCode Solution2977
633Count Sub Islands LeetCode Solution2973
634Merge Overlapping Intervals II2972
635Maximum Product of Splitted Binary Tree LeetCode Solution2970
636Palindrome Permutation2968
637Palindromic Substrings Leetcode Solution2966
638Number of palindromic paths in a matrix2964
639Merge Two Balanced Binary Search Trees2958
640Find the Subarray of given length with Least Average2948
641My Calendar I LeetCode Solution2947
642Segregate 0s and 1s in an Array2947
643Sorted Linked List to Balanced BST2945
644All Unique Triplets that Sum up to a Given Value2943
645Caesar Cipher2938
646Huffman Coding2933
647Pair with given product2932
648Brick Wall LeetCode Solution2926
649Check if the given array can represent Level Order Traversal of Binary Search Tree2922
650Level order Traversal in Spiral Form2920
651Construct BST from given Preorder Traversal2918
652Find Median from data Stream2916
653Word Pattern2913
654Swapping Nodes in a Linked List Leetcode Solution2912
655Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution2901
656Partition Problem2897
657Find all triplets with zero sum2896
658Merge K Sorted Arrays and Print Sorted Output2879
659Count Good Nodes in Binary Tree LeetCode Solution2878
660Maximize Sum of Array after K Negations Leetcode Solution2873
661Print Fibonacci sequence using 2 variables2870
662Validate Binary Search Tree2866
663Minimum time required to rot all oranges2855
664Shortest Path in a Grid with Obstacles Elimination LeetCode Solution2853
665Add two numbers2852
666Alien Dictionary2850
667Isomorphic Strings LeetCode Solution2848
668Find whether a subarray is in form of a mountain or not2848
669Count Distinct Elements in Every Window of Size K2846
670Queries on Probability of Even or Odd Number in given Ranges2841
671Detect Capital Leetcode Solution2840
672Find all pairs (a, b) in an array such that a % b = k2836
673Sort 0s 1s and 2s in an Array2835
674Longest Subarray Having Count of 1s One More than Count of 0s2834
675Largest Sum Contiguous Subarray2834
676How to Efficiently Implement k Stacks in a Single Array?2834
677Convert Sorted List to Binary Search Tree2834
678Maximum Frequency Stack Leetcode Solution2831
679Bubble sort using two Stacks2829
680Split Array Into Consecutive Subsequences2824
681Range Sum Query 2D – Immutable LeetCode Solution2823
682Binary Tree Right Side View LeetCode Solution2821
683Counting Bits2821
684Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution2818
685Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized2812
686Find four elements that sum to a given value (Hashmap)2811
687Rotate Array2808
688Length of Longest Fibonacci Subsequence2807
689Breadth First Search (BFS) for a Graph2804
690Remove brackets from an algebraic string containing + and – operators2802
691Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i2796
692Binary Tree to Binary Search Tree Conversion2795
693Minimum Swaps to Group All 1’s Together Leetcode Solution2792
694Maximum Number of Chocolates to be Distributed Equally Among k Students2789
695Count ways to reach the nth stair using step 1, 2 or 32785
696Partition to K Equal Sum Subsets Leetcode Solution2776
697Print all subarrays with 0 sum2768
698Remove Palindromic Subsequences Leetcode Solution2767
699Merge Two Sorted Lists Leetcode2767
700Populating Next Right Pointers in Each Node2762
701Difference Array | Range update query in O(1)2758
702Populating Next Right Pointers in Each Node Leetcode Solution2749
703Find pairs with given sum such that elements of pair are in different rows2743
704Partition Equal Subset Sum2742
705Topological Sorting2742
706Happy Number2736
707String comparison containing wildcards2736
708Minimum Sum Path in a Triangle2735
709Remove duplicates from sorted array2735
710Arithmetic Slices II – Subsequence LeetCode Solution2732
711Elements Appear more than N/K times in Array2721
712Contiguous Array Leetcode2720
713Check if a Linked list of Strings form a Palindrome2719
714Concatenation of Array LeetCode Solution2718
715Queue Reconstruction by Height2715
716Web Crawler LeetCode Solution2713
717Find All Pairs With a Given Difference2710
718Inorder Successor of a node in Binary Tree2706
719Find Duplicate Subtrees2696
720Root to Leaf path with target sum Leetcode Solutions2684
721Reverse Nodes in K-Group2684
722Increasing Subsequence of Length three with Maximum Product2677
723Minimum Number of Arrows to Burst Balloons LeetCode Solution2668
724Check if String Follows Order of Characters by a Pattern or not2667
725Score of Parenthesis LeetCode Solution2658
726Finding K closest element2658
727Minimum Swaps to Make Strings Equal Leetcode Solution2651
728Swap Kth Node from beginning with Kth Node from End2651
729Symmetric Tree2650
730Given a binary tree, how do you remove all the half nodes?2648
731Maximum Distance in Array2646
732Pancake Sorting2642
733Longest Common Prefix Using Binary Search II2641
734Climbing stairs2638
735Longest Increasing Subsequence2633
736Container with Most Water2633
737Maximum Product Subarray II2633
738An Interesting Method to generate Binary Numbers from 1 to n2632
739Count Minimum Steps to Get the given Array2631
740Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution2629
741Construct Binary Tree from given Parent Array representation2629
742Deletion in a Binary Tree2618
743Sum Root to Leaf Numbers LeetCode Solution2609
744Parallel Courses II LeetCode Solution2607
745Minimum Cost to Move Chips to The Same Position LeetCode Solution2607
746Check if all levels of two Binary Tree are anagrams or not2607
747Find the first repeating element in an array of integers2607
748Delete Nodes and Return Forest Leetcode Solution2605
749Union and Intersection of two Linked Lists2602
750Delete Nth node from the end of the given linked list2596
751Substring With Concatenation Of All Words2593
752MiniMax Algorithm2593
753Boundary Traversal of binary tree2588
754Level order traversal using two Queues2585
755Kill Process LeetCode Solution2583
756Count pairs from two linked lists whose sum is equal to a given value2582
757Level of Each node in a Tree from source node2575
758BFS vs DFS for Binary Tree2570
759Sort Array by Increasing Frequency Leetcode Solution2569
760Non-overlapping sum of two sets2569
761Iterative Depth First Traversal of Graph2567
762Minimum Size Subarray Sum2567
763Linked List Cycle2564
764Find K Closest Elements LeetCode Solution2563
765Valid Anagrams2560
766Rearrange an Array Such that arr[i] is equal to i2558
767Merge K Sorted Linked Lists2558
768Find Maximum of Minimum for Every Window Size in a Given Array2550
769Minimum Remove to Make Valid Parentheses LeetCode Solution2549
770New 21 Game2545
771Iterative Preorder Traversal2541
772Longest Common Prefix Word by Word Matching2540
773Nested List Weight Sum II LeetCode Solution2538
774Remove Duplicates from Sorted List II2536
775Find the Difference Leetcode Solution2532
776Maximum size subarray sum equals k2527
777Matrix Chain Multiplication2526
778Range LCM Queries2524
779Merging Intervals2523
780Super Ugly Number2514
781Reservoir Sampling2514
782Maximum Product Subarray2507
783Verify Preorder Serialization of a Binary Tree2504
784Friends Of Appropriate Ages LeetCode Solution2501
785Palindrome Partitioning2500
786K maximum sums of overlapping contiguous sub-arrays2499
787Reorder Array Using Given Indexes2497
788Balanced Binary Tree2494
789Check if a queue can be sorted into another queue using a stack2492
790Print a Binary Tree in Vertical Order2492
791Smallest Range II Leetcode Solution2487
792Sum of f(a[i], a[j]) over all pairs in an array of n integers2487
793Flatten Binary Tree to Linked List LeetCode Solution2486
794Missing Number2484
795Check if any two intervals overlap among a given set of intervals2470
796Create Maximum Number2465
797Defanging an IP Address LeetCode Solution2463
798Find Maximum Sum Possible Equal Sum of Three Stacks2461
799Vertical sum in a given binary tree2458
800Valid Triangle Number LeetCode Solution2456
801The Painter’s Partition Problem2455
802Check if Two Expressions With Brackets are Same2455
803Peak Index in a Mountain Array LeetCode Solution2452
804Sorting a K Sorted Array2452
805Lowest Common Ancestor2447
806Maximum difference between two elements such as larger element comes after smaller2447
807Minimum insertions to form a palindrome with permutations allowed2443
808Minimum Distance Between BST Nodes Leetcode Solution2436
809Check if a given array can represent Preorder Traversal of Binary Search Tree2435
810Unique Binary Search Trees LeetCode Solution2433
811Find Three Element From Different Three Arrays Such That a + b + c = sum2429
812Find subarray with given sum (Handles Negative Numbers)2425
813Count number of triplets with product equal to given number2425
814Hamming Distance2422
815Largest Submatrix With Rearrangements LeetCode Solution2421
816Number Of Longest Increasing Subsequence2421
817Tree Traversal (Preorder, Inorder & Postorder)2417
818Find K Length Subarray of Maximum Average2412
819Valid Triangle Number LeetCode Solution2411
820Check if two nodes are on the same path in a Tree2405
821Flatten 2D Vector LeetCode Solution2404
822First Bad Version2401
823Find Common Characters Leetcode Solution2398
824Closest Leaf in a Binary Tree LeetCode Solution2396
825Employee Importance LeetCode Solution2395
826Find distance between two nodes of a Binary Tree2392
827Check Completeness of a Binary Tree LeetCode Solution2391
828Third Maximum Number Leetcode Solution2390
829Iterative Postorder Traversal Using Two Stacks2389
830Array Nesting Leetcode Solution2387
831Merging Two Sorted Arrays2387
832Find Peak Element2385
833Kth Smallest Element in a Sorted Matrix LeetCode Solution2377
834Sort Elements by Frequency II2377
835Products of ranges in an array2375
836Find Element Using Binary Search in Sorted Array2374
837Newman-Conway Sequence2373
838Maximum difference between frequency of two elements such that element having greater frequency is also greater2372
839Print all triplets in sorted array that form AP2371
840Valid Parenthesis String2370
841Find Smallest Range Containing Elements from k Lists2368
842Maximum subsequence sum such that no three are consecutive2367
843Diagonal Traversal of Binary Tree2364
844Largest BST Subtree LeetCode Solution2362
845Print All Distinct Elements of a Given Integer Array2362
846Arrange given numbers to form the biggest number2358
847Maximum number of segments of lengths a, b and c2357
848Longest Bitonic Subsequence2353
849Find Sum of all unique sub-array sum for a given array2351
850Distinct Subsequences2350
851Longest Palindromic Subsequence2349
852Print Right View of a Binary Tree2347
853Range Sum Query using Sparse Table2341
854Stone Game IV LeetCode Solution2339
855Bottom View of a Binary Tree2337
856Lower Case To Upper Case2336
857Find Nth Node2334
858Largest subarray with equal number of 0s and 1s2330
859Segment Tree2330
860Largest divisible pairs subset2324
861Path Sum2322
862Contiguous Array2319
863Trapping Rain Water II LeetCode Solution2317
864Compare Strings by Frequency of the Smallest Character Leetcode Solution2317
865Number of siblings of a given Node in n-ary Tree2316
866Stone Game IV LeetCode Solution2310
867Subset Sum Problem in O(sum) space2309
868Shuffle an Array2309
869Four Elements that Sum to Given2309
870Binary array after M range toggle operations2300
871Merge Two Sorted Arrays2299
872Median of Two Sorted Arrays2297
873Find the largest multiple of 32295
874Isomorphic Strings2289
875Unique Binary Search Trees2283
876Minimum Swaps To Make Sequences Increasing LeetCode Solution2279
877Count and Say2279
878Permutations of a Given String Using STL2279
879Red-Black Tree Introduction2273
880Maximum Population Year LeetCode Solution2266
881Valid Number2259
882Find Largest d in Array such that a + b + c = d2258
883Infix to Postfix2253
884Next Greater Element in an Array2253
885Maximum Product Subarray2250
886Encoded String With Shortest Length LeetCode Solution2246
887Friends Pairing Problem2246
888Maximum Sum of 3 Non-Overlapping Subarrays2241
889Insert Delete GetRandom2238
890Find unique character in a string2238
891Averages of Levels in Binary Tree2236
892Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’2235
893Transform a BST to Greater sum Tree2235
894Write a function to get the intersection point of two Linked Lists2232
895Count Primes in Ranges2228
896Closest Binary Search Tree Value Leetcode Solution2226
897Valid Perfect Square LeetCode Solution2220
898Height of a generic tree from parent array2220
899Orderly Queue LeetCode Solution2216
900The Number of Weak Characters in the Game LeetCode Solution2212
901Binary Search Tree Delete Operation2212
902Shuffle a given Array2207
903Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution2206
904Range Minimum Query (Square Root Decomposition and Sparse Table)2205
905Sentence Screen Fitting LeetCode Solution2198
906Edit Distance2187
907Serialize and Deserialize Binary Tree2185
908Binary Tree Longest Consecutive Sequence LeetCode Solution2183
909Bold Words in String LeetCode Solution2181
910Minimum sum of squares of character counts in a given string after removing k characters2180
911Reorganize String2174
912Kth Smallest Number in Multiplication Table Leetcode Solution2167
913Diameter of N-Ary Tree LeetCode Solution2159
914Convert BST into a Min-Heap without using array2159
915Find Minimum In Rotated Sorted Array2158
916Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution2156
917Next greater element2155
918Integer to Roman2151
919Swap Nodes In Pairs2147
920Lowest Common Ancestor in Binary Search Tree2145
921Maximum Product Subarray2139
922Next Greater Element II LeetCode Solution2128
923Advantages of BST over Hash Table2126
924Array Queries for multiply replacements and product2124
925Find the smallest binary digit multiple of given number2121
926K’th Largest Element in BST when modification to BST is not allowed2120
927K’th Largest element in BST using constant extra space2115
928Koko Eating Bananas LeetCode Solution2112
929Total Hamming Distance LeetCode Solution2109
930Best Meeting Point LeetCode Solution2103
931Print n terms of Newman-Conway Sequence2102
932Write Code to Determine if Two Trees are Identical2101
933Longest Increasing Consecutive Subsequence2098
934Check if an Array is Stack Sortable2094
935Constant time range add operation on an array2090
936Level Order Traversal of Binary Tree2089
937Serialize and Deserialize Binary Tree LeetCode Solution2087
938Queries on XOR of greatest odd divisor of the range2084
939Maximum Sum Increasing Subsequence2078
940Image Overlap LeetCode Solution2073
941Range Queries for Longest Correct Bracket Subsequence2073
942Number of Orders in the Backlog Leetcode Solution2070
943Power of Two2066
944Reverse a Path in BST using Queue2065
945Moving Stones Until Consecutive Leetcode Solution2064
946Clone a Binary Tree with Random Pointers2063
947Greatest Sum Divisible by Three LeetCode Solution2057
948Check if X can give change to every person in the Queue2055
949Find minimum number of merge operations to make an array palindrome2054
950Find the node with minimum value in a Binary Search Tree2051
951Design Underground System Leetcode Solution2050
952Valid Tic-Tac-Toe State LeetCode Solution2046
953A program to check if a binary tree is BST or not2044
954Numbers with prime frequencies greater than or equal to k2042
955Insert into a Sorted Circular Linked List LeetCode Solution2035
956Check if each internal node of a BST has exactly one child2034
957Count and Toggle Queries on a Binary Array2032
958Form minimum number from given sequence2027
959Factorial Trailing Zeroes LeetCode Solution2023
960Design Add and Search Words Data Structure LeetCode Solution2020
961Maximum Array from Two given Arrays Keeping Order Same2019
962Print Next Greater Number of Q queries2015
963Closest Binary Search Tree Value II LeetCode Solution2012
964Number of elements less than or equal to a given number in a given subarray2012
965Collect maximum points in a grid using two traversals2012
966Count the Pairs at Same Distance as in English Alphabets2009
967Graph Cloning2004
968Check for Palindrome after every character replacement Query2002
969Merge two BSTs with limited extra space1999
970Maximum difference between first and last indexes of an element in array1997
971Queries for Decimal Values of Subarrays of a Binary Array1994
972Largest Plus Sign Leetcode Solution1992
973Group Shifted Strings Leetcode Solution1990
974Merge Sorted Array1987
975Merge Sort1975
976Priority Queue1972
977Dividing Array into Pairs With Sum Divisible by K1963
978Longest Substring Without Repeating Characters Leetcode Solution1957
979Count even length binary sequences with same sum of first and second half bits1951
980Kth Smallest Element in a BST1949
981Cutting a Rod1941
982Print Ancestors of a Given Binary Tree Node Without Recursion1941
983Print modified array after multiple array range increment operations1939
984Form Minimum Number From Given Sequence1936
985Minimum Moves to Equal Array Elements LeetCode Solution1932
986Excel Sheet Column Number LeetCode Solution1922
987Swim in Rising Water LeetCode Solution1915
988Count Pairs Whose Products Exist in Array1914
989Guess The Word1914
990Find maximum average subarray of k length1910
991Unique Paths II1907
992Excel Sheet Column Title LeetCode Solution1903
993Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution1897
994Print all Possible Ways to Break a String in Bracket Form1891
995Binary Search Tree1889
996How to print maximum number of A’s using given four keys1887
997Palindrome Partitioning1885
998K Empty Slots1876
999Check given array of size n can represent BST of n levels or not1872
1000Decrease Elements To Make Array Zigzag LeetCode Solution1866
1001Binary Search Tree Search and Insertion1866
1002Find postorder traversal of BST from preorder traversal1854
1003Longest Common Prefix using Character by Character Matching1854
1004Regular Expression Matching1850
1005Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution1846
1006Sorted Array to Balanced BST1846
1007Sum of Left Leaves LeetCode Solution1843
1008Construct Complete Binary Tree from its Linked List Representation1813
1009Queries for Number of Distinct Elements in a Subarray1798
1010Maximum Depth Of Binary Tree1797
1011Maximum weight transformation of a given string1787
1012Find the Town Judge LeetCode Solution1783
1013Iterative method to find ancestors of a given binary tree1776
1014Binary Tree to Binary Search Tree Conversion using STL set1761
1015Symmetric Tree LeetCode Solution Leetcode Solution1755
1016Shortest Unsorted Continuous Subarray LeetCode Solution1751
1017Find Maximum Depth of Nested Parenthesis in a String1747
1018Random Pick Index LeetCode Solution1746
1019Data Structure Designing1746
1020Search in Sorted Rotated Array1740
1021Search an Element in Sorted Rotated Array1709
1022Kth Smallest Product of Two Sorted Arrays LeetCode Solution1690
1023Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution1676
1024Convert a BST to a Binary Tree such that sum of all greater keys is added to every key1669
1025Next Greater Element I Leetcode Solution1646
1026Print Maximum Length Chain of Pairs1625
1027Maximum Binary Tree1604
1028Flatten Binary Tree to Linked List LeetCode Solution1597
1029Find k-th smallest element in BST (Order Statistics in BST)1595
1030Peeking Iterator LeetCode Solution1577
1031Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution1535
Translate »