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.No Interview Question Number of times asked
1Two Sum Leetcode Solution10820
2Maximum occurring character in a string8083
33Sum Leetcode Solution5870
4Valid Parentheses LeetCode Solution5788
5Plus One Leetcode Solution5602
6First Repeating Element5040
7Single Number Leetcode Solution4896
8Search Insert Position Leetcode Solution4371
9Find the Maximum Repeating Number in Array4297
10Pow(x, n) Leetcode Solution4133
11Contains Duplicate II Leetcode Solution4063
12Sqrt(x) Leetcode Solution4033
13Intersection of Two Arrays II Leetcode Solution3960
14Roman to Integer Leetcode Solution3833
15Count Primes Leetcode Solutions3822
16Running Sum of 1d Array Leetcode Solution3800
17Find Minimum Distance Between Two Numbers in an Array3780
18Kth Missing Positive Number Leetcode Solution3759
19Merge Sorted Arrays Leetcode Solution3711
20Shuffle String Leetcode Solution3575
21Reverse Vowels of a String Leetcode Solution3553
22Valid Palindrome Leetcode Solution3541
23Concatenation of Array LeetCode Solution3472
24Find All Numbers Disappeared in an Array Leetcode Solution3452
25Add Binary Leetcode Solution3308
26Word Search Leetcode Solution3257
27Spiral Matrix LeetCode Solution3249
28Meeting Rooms II LeetCode Solution3206
29Number Of 1 bits3197
30Kids With the Greatest Number of Candies Leetcode Solution3193
31House Robber Leetcode Solution3162
32Longest Palindromic Substring LeetCode Solution3154
33Reverse String Without Temporary Variable3146
34Subarray and Subsequence3141
35Longest Common Prefix Leetcode Solution3120
36Power of Two Leetcode Solution3046
37Jewels and Stones Leetcode Solution3045
38Maximum Subarray Leetcode Solution3034
39Jump Game Leetcode Solution2956
40Number of Good Pairs Leetcode Solution2917
41Number of Islands LeetCode Solution2904
42Isomorphic Strings Leetcode Solution2878
43Missing Number Leetcode Solution2873
44Third Maximum Number Leetcode Solution2873
45Smallest window in a string containing all characters of another string2801
46Bulb Switcher LeetCode Solution2792
47Next Greater Element I Leetcode Solution2782
48Combination Sum Leetcode Solution2754
493Sum Closest LeetCode Solution2748
50Count Pairs With Given Sum2740
51Rearrange Positive and Negative Numbers Alternatively in Array2734
52Multiply Strings Leetcode Solution2705
53Integer to Roman Leetcode Solution2692
54Permutations Leetcode Solution2672
55Search in Rotated Sorted Array Leetcode Solution2667
56Median of Two Sorted Arrays LeetCode Solution2666
57Longest Substring Without Repeating Characters LeetCode Solution2665
58Subarray with Given Sum2663
59Move Zeroes LeetCode Solution2628
60Koko Eating Bananas Leetcode Solution2603
61First element occurring k times in an array2602
62Shuffle the Array Leetcode Solution2584
63Count and Say Leetcode Solution2581
64Balanced Binary Tree Leetcode Solution2577
65Linked List Cycle II LeetCode Solution2568
66Min Stack Leetcode Solution2564
67Rotate Image LeetCode Solution2554
68Check if the Elements of an Array are Consecutive2534
69String to Integer (atoi) LeetCode Solution2477
70Next Permutation Leetcode Solution2452
71Iterative Implementation of Quick Sort2408
72Find the Difference Leetcode Solution2384
73House Robber II Leetcode Solution2380
74Happy Number Leetcode Solution2364
75Product of array except self2351
76Text Justification LeetCode Solution2340
77Sort Elements by Frequency of Occurrences2332
78Maximum Profit in Job Scheduling Leetcode Solution2302
79Unique Paths Leetcode Solution2301
80Merge Two Sorted Lists Leetcode Solutions2297
81How Many Numbers Are Smaller Than the Current Number Leetcode Solution2281
82Largest Number Leetcode Solution2280
83Find Triplet in Array With a Given Sum2280
84Find the Town Judge Leetcode Solution2264
85Daily Temperatures Leetcode Solution2247
86Smallest Positive Number Missing in an Unsorted Array2239
87Frog Jump Leetcode Solution2235
88Find Common Characters Leetcode Solution2231
89Remove Duplicates from Sorted Array Leetcode Solution2216
90Capacity To Ship Packages Within D Days Leetcode Solution2215
91Pascal Triangle Leetcode2205
92Find Leaders in an Array2204
93A Product Array Puzzle2189
94Find Smallest Missing Number in a Sorted Array2173
95Find the Missing Number2172
96Rabin Karp Algorithm2169
97Evaluation of Postfix Expression2168
98Excel Sheet Column Title Leetcode Solution2160
99Set Matrix Zeroes2154
100Rotate String LeetCode Solution2142
101Bellman Ford Algorithm2136
102Rearrange given Array in Maximum Minimum Form2127
103Swap Nodes in Pairs Leetcode Solutions2120
104Length of Last Word Leetcode Solution2117
105Find the Winner of the Circular Game LeetCode Solution2116
106Subtract the Product and Sum of Digits of an Integer Leetcode Solution2108
107Maximum Subarray Sum using Divide and Conquer2098
108String Compression LeetCode Solution2082
109Majority Element Leetcode Solution2077
110Sum of minimum and maximum elements of all subarrays of size k2070
111Divide Two Integers Leetcode Solution2068
112Minimum Cost For Tickets Leetcode Solution2067
113Can Place Flowers LeetCode Solution2066
114Binary Search LeetCode Solution2048
115OSI Model2028
116Is Subsequence Leetcode Solution2011
117Backspace String Compare1993
118Subset Leetcode1990
119Fibonacci Number LeetCode Solution1961
120Expression Evaluation1961
121Implementation of Deque using Doubly Linked List1948
122K-th Smallest Element in a Sorted Matrix1947
123Find the Number Occurring Odd Number of Times in an Array1941
124Word Pattern LeetCode Solution1938
125Valid Palindrome II Leetcode Solution1936
126Find Pair with Given Difference1933
127Design Parking System Leetcode Solution1927
128Matrix Chain Multiplication using Dynamic Programming1916
129Find the First and Second Smallest Elements1916
130Palindrome Number LeetCode Solution1914
131Reverse Integer Leetcode Solution1913
132Defanging an IP Address Leetcode Solution1911
133Pascal’s Triangle II Leetcode Solution1908
134Build Array From Permutation Leetcode Solution1906
135Summary Ranges Leetcode Solution1903
136Sort Array By Parity LeetCode Solution1890
137Palindrome Number1881
138First Unique Character in a String LeetCode Solution1872
139Valid Anagram Leetcode Solution1868
140Kth largest element in an Array Leetcode Solutions1864
141Find First and Last Position of Element in Sorted Array Leetcode Solution1852
142Make The String Great Leetcode Solution1831
143Zigzag Conversion LeetCode Solution1823
144Generate all Binary Strings Without Consecutive 1’s1822
145Assign Cookies Leetcode Solution1820
146KMP Algorithm1817
147Stock Buy Sell to Maximize Profit1807
148Island Perimeter Leetcode Solution1803
149Repeated Substring Pattern1788
150Second Most Repeated Word in a Sequence1783
151Remove Linked List Elements Leetcode Solution1771
152Remove Minimum Characters so that Two Strings Become Anagrams1763
153Remove Duplicates from Sorted List II LeetCode Solution1762
154Number of Provinces Leetcode Solution1756
155Find the Duplicate Number LeetCode Solution1755
156Minimum number of Merge Operations to make an Array Palindrome1751
157Count of Triplets With Sum Less than Given Value1751
158Minimum Characters to be Added at Front to Make String Palindrome1750
159Page Replacement Algorithms in Operating Systems1748
160Detect a loop in the Linked List1748
161Find the Row with Maximum Number of 1’s1745
162Convert a Number to Hexadecimal Leetcode Solution1739
163Delete middle element of a stack1739
164Same Tree LeetCode Solution1735
165Max Consecutive Ones Leetcode Solution1735
166Minimum Steps to reach target by a Knight1730
167Palindrome Linked List Leetcode Solution1729
168Remove All Occurrences of a Substring LeetCode Solution1722
169Bus Routes Leetcode Solution1706
170Reverse Only Letters LeetCode Solution1697
171Best Time to Buy and Sell Stock LeetCode Solution1695
172Printing brackets in Matrix Chain Multiplication Problem1686
173The Celebrity Problem1685
174Arrange given Numbers to Form the Biggest Number II1666
175Kth Largest Element in a Stream Leetcode Solution1664
176Postfix to Infix Conversion1653
177Max Area of Island1649
178Strobogrammatic Number LeetCode Solution1645
179Find the Duplicate Element1639
180Prefix to Infix Conversion1638
181String Compression1637
182Sort Characters By Frequency LeetCode Solution1627
183Form Minimum Number from Given Sequence of D’s and I’s1625
184Relative Sort Array Leetcode Solution1619
185Convert array into Zig-Zag fashion1619
186Check If N and Its Double Exist Leetcode Solution1615
187Intersection of Two Arrays1615
188Leetcode Permutations1611
189Subarray Sum Equals k1606
190Subarray Product Less Than K LeetCode Solution1600
191Coin Change 2 Leetcode Solution1599
192Subarray Sum Equals K LeetCode Solution1599
193Combinations Leetcode Solution1599
194Rotate List Leetcode Solution1598
195First negative integer in every window of size k1598
196Arranging Coins Leetcode Solution1594
197Tug of War1591
198Most Frequent Element in an Array1589
199Number of Steps to Reduce a Number to Zero Leetcode Solution1587
200Find the Peak Element from an Array1582
201Sudoku Solver1580
202Break a Palindrome LeetCode Solution1579
203Longest Palindrome can be Formed by Removing or Rearranging Characters1566
204Best Time to Buy and Sell Stock  II Leetcode Solution1562
205Repeated Substring Pattern LeetCode Solution1561
206Count Possible Triangles1561
207Monotonic Array LeetCode Solution1554
208Multiplication of Two Matrices1540
209Asteroid Collision LeetCode Solution1538
210Optimal Account Balancing LeetCode Solution1537
211Find All Duplicates in an Array LeetCode Solution1537
212Prim’s Algorithm1537
213Robot Room Cleaner Leetcode Solution1536
214Scramble String1535
215Merge k Sorted Lists Leetcode Solution1534
216Delete Node in a Linked List Leetcode Solution1525
217Valid Perfect Square Leetcode Solution1525
218Guess Number Higher or Lower LeetCode Solution1518
219Lemonade Change Leetcode Solution1518
220Slowest Key Leetcode Solution1517
221Find N Unique Integers Sum up to Zero Leetcode Solution1517
222Student Attendance Record I Leetcode Solution1514
223License Key Formatting Leetcode Solution1508
224Last Stone Weight1507
225Target Sum1506
226Minimum swaps required to bring all elements less than or equal to k together1504
227Candy LeetCode Solution1503
228Maximum Circular Subarray Sum1503
229The K Weakest Rows in a Matrix Leetcode Solution1502
230Implement a stack using single queue1502
231Jump Game1500
232First Circular Tour to Visit all the Petrol Bunks1499
233Combination Sum1490
234Employee Free Time LeetCode Solution1487
235Reverse Words in a String III LeetCode Solution1484
236Check If Two String Arrays are Equivalent Leetcode Solution1483
237Prefix to Postfix Conversion1481
238Trapping Rain Water Leetcode Solution1477
239Decode String Leetcode Solution1476
240Given two unsorted arrays find all pairs whose sum is x1474
241Relative Ranks Leetcode Solution1473
242Length of Longest valid Substring1473
243Sort a stack using a temporary stack1472
244Find The Duplicate Number1472
245Top K Frequent Elements1471
246Find a Fixed Point in a Given Array1468
247Cuckoo sequence program1458
248Word Ladder LeetCode Solution1455
249Maximum Sum Increasing Subsequence1453
250Find Pythagorean Triplets from Array1448
251Reverse words in a string1447
252Find Duplicates in an Array in Most Efficient Way1445
253Product of Array Except Self LeetCode Solution1443
254Find any one of the multiple repeating elements in read only array1441
255Maximum Depth of Binary Tree Leetcode Solution1440
256Reverse individual words1439
257Find the Minimum Element in a Sorted and Rotated Array1439
258Number of Dice Rolls With Target Sum LeetCode Solution1434
259Evaluate Division1433
260Pancake Sorting Problem1426
261Number of Closed Islands Leetcode Solution1421
26201 Matrix LeetCode Solution1413
263Largest Subarray with Equal Number of 0’s and 1’s1413
264Move All the Zeros to the End of the Given Array1412
265Spiral Matrix II Leetcode Solution1409
266Maximum Product of Three Numbers LeetCode Solution1409
267Group Anagrams LeetCode Solution1406
268Remove Duplicates from Sorted List LeetCode Solution1406
269Minimum Path Sum Leetcode Solution1403
270Single Element in a Sorted Array LeetCode Solution1400
271Majority Element II Leetcode Solution1399
272To Lower Case Leetcode Solution1396
273Max stack1396
274Symmetric Tree Leetcode Solution1391
275Longest Common Subsequence1385
276Search Suggestions System LeetCode Solution1384
277Permutation in String Leetcode Solution1382
278Single Number1381
279Unique Paths II Leetcode Solution1378
280N-Queens LeetCode Solution1376
281Insert Node in the Sorted Linked List1374
282Round Robin Scheduling1372
283Maximize Distance to Closest Person LeetCode Solution1369
284Find Top K (or Most Frequent) Numbers in a Stream1369
285Special Array With X Elements Greater Than or Equal X Leetcode Solution1367
286Letter Combinations of a Phone Number1367
287Reverse Bits1367
288Merge Two Sorted Linked Lists1365
289Moving Average from Data Stream Leetcode Solution1361
290Maximum Sum of Non Consecutive Elements1357
291Implement Two Stacks in an Array1356
292Minimum operation to make all elements equal in array1354
293Maximum Element in an Array which is Increasing and then Decreasing1354
294Arithmetic Expression Evaluation1353
295Min Stack1351
296Least Number of Unique Integers after K Removals Leetcode Solution1349
297Palindrome Permutations of a String1342
298Longest Common Subsequence LeetCode Solution1336
299Minimum Depth of Binary Tree Leetcode Solution1336
300Dijkstra Algorithm1336
301Longest Common Prefix using Divide and Conquer1334
302Number of Smaller Elements on Right Side1334
303Kth Non-repeating Character1328
304Reverse a linked list1324
305Sort Colors LeetCode Solution1321
306Minimum Path Sum1321
307Count of index pairs with equal elements in an array1318
308Design Browser History LeetCode Solution1315
309Find if Path Exists in Graph Leetcode Solution1315
310Implementation of Deque using circular array1314
311LRU Cache LeetCode Solution1312
312Top K Frequent Words LeetCode Solution1311
313Check whether Strings are K Distance Apart or Not1311
314Generate all Binary Strings from Given Pattern1310
315Sum of Subarray Ranges Leetcode Solution1309
316Next Permutation1308
317Find Maximum Level sum in Binary Tree1303
318Find Winner on a Tic Tac Toe Game Leetcode Solution1301
319Top K Frequent Elements LeetCode Solution1300
320Length of the largest subarray with contiguous elements1297
321Word Search1295
322Maximum Population Year LeetCode Solution1291
323Find the Closest Palindrome number1291
324Majority Element1291
325Count Number of Occurrences in a Sorted Array1290
326Top View of Binary Tree1289
327Generate Parentheses Leetcode Solution1284
328House Robber1280
329Fibonacci numbers1278
330Maximal Square1276
331Find Words That Can Be Formed by Characters Leetcode Solution1268
332Expression Contains Redundant Bracket or Not1266
333Add Two Numbers II Leetcode Solution1263
334Unique Paths1263
335Print all Palindromic Partitions of a String1263
336Diagonal Traversal LeetCode Solution1262
337Continuous Subarray Sum LeetCode Solution1259
338Partition Array Into Three Parts With Equal Sum Leetcode Solution1259
339Common elements in all rows of a given matrix1256
340Minimum Moves to Equal Array Elements Leetcode Solution1255
341Find minimum difference between any two elements1254
342Min Cost Climbing Stairs LeetCode Solution1253
343Sorting array using Stacks1253
344Find the subarray with least average1252
345Pair of Positive Negative Values in an Array1248
346Stone Game LeetCode1246
347N queen problem1244
348Partition Labels LeetCode Solution1243
349Decompress Run-Length Encoded List Leetcode Solution1243
350Minimum Time Visiting All Points Leetcode Solution1242
351Caesar Cipher1242
352Priority Queue using doubly linked list1238
353Flood Fill LeetCode1238
354How to Implement Stack Using Priority Queue or Heap?1234
355N-th Tribonacci Number Leetcode Solution1232
356Toeplitz Matrix1232
357Next Greater Element III LeetCode Solution1231
358Minimum Operations to convert X to Y1231
359LRU Cache Implementation1228
360Rank Transform of an Array Leetcode Solution1227
361Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions1226
362Construct Binary Tree from Given Inorder and Preorder Traversals1226
363Time Based Key-Value Store LeetCode Solution1222
364Hamming Distance Leetcode Solution1220
365H-Index Leetcode Solution1219
366Find Peak Element LeetCode Solution1215
367Binary Tree Zigzag Level Order Traversal LeetCode Solution1215
368Sliding Window Technique1214
369Gold Mine Problem1213
370Find the Subarray of given length with Least Average1203
371Palindrome Substring Queries1200
372Find Leaves of Binary Tree LeetCode Solution1196
373Find Index of Closing Bracket for a Given Opening Bracket in an Expression1194
374Merge K Sorted Arrays and Print Sorted Output1192
375String Matching in an Array Leetcode Solution1191
376Transpose Graph1191
377Painting Fence Algorithm1190
379Mobile Numeric Keypad Problem1188
380Minimum Knight Moves LeetCode Solution1187
381Count Good Nodes in Binary Tree Leetcode Solution1187
382Longest Increasing Path in a Matrix LeetCode Solution1185
383Reorder an Array According to the Given Indexes1180
384Regular Expression Matching Regular Expression Matching LeetCode Solution1177
385Stone Game II Leetcode1176
386Letter Case Permutation1175
387Group Anagrams1174
388Maximum Length of Chain Pairs1172
389Iterative Method to find Height of Binary Tree1171
390Sort Array By Parity II Leetcode Solution1164
391Elements Appear more than N/K times in Array1164
392Sort elements by frequency1163
393Diagonal Traverse LeetCode Solution1162
394Remove Nth Node From End of List Leetcode Solution1158
395Jump Game IV LeetCode Solution1156
396Convert Sorted Array to Binary Search Tree Leetcode Solution1156
397Minimum Cost to Hire K Workers1152
398Kruskal Algorithm1150
399K Empty Slots LeetCode1149
400Clone Graph LeetCode Solution1147
401How to Create Mergable Stack?1147
402Nth Catalan Number1146
403Invalid Transactions LeetCode Solution1144
404Best Time to Buy and Sell Stock III Leetcode Solution1141
405Flipping an Image LeetCode Solution1140
406Range Sum of BST LeetCode Solution1139
407Longest subarray not having more than K distinct elements1139
408Partition Problem1138
409Integer to English words1136
410Maximum Subarray1135
411Smallest Subarray with k Distinct Numbers1133
412Design a stack that supports getMin() in O(1) time and O(1) extra space1133
413Sorted Linked List to Balanced BST1132
414Merge Overlapping Intervals II1132
415Maximum Product Subarray II1132
416Distance of nearest cell having 1 in a binary matrix1131
417Sort 0s 1s and 2s in an Array1131
418Merge Sorted Array LeetCode Solution1130
419One Edit Distance LeetCode Solution1130
420Reorder Array Using Given Indexes1130
421Maximum difference between two elements such as larger element comes after smaller1129
422Range Sum Query 2D – Immutable Leetcode Solution1128
423Insert Interval Leetcode Solution1128
424Interval Tree1123
425Find the Smallest Divisor given a Threshold Leetcode Solution1122
426The Stock Span Problem1122
427Best Time to Buy and Sell Stock1117
428Convert Sorted Array to Binary Search Tree LeetCode Solutions1116
429Check if a Linked list of Strings form a Palindrome1116
430Number Complement Leetcode Solution1115
431Given an Array of Pairs Find all Symmetric Pairs in it1115
432Check if Two given Strings are Isomorphic to each other1115
433Shortest Word Distance Leetcode Solution1114
434Longest Common Prefix using Sorting1114
435Scramble String LeetCode Solution1111
436Increasing Triplet Subsequence LeetCode Solution1109
437Best Time to Buy and Sell Stock with Cooldown Leetcode Solution1104
438LCS (Longest Common Subsequence) of three strings1103
439Merge Two Binary Trees LeetCode Solution1099
440Longest Common Prefix using Trie1092
441Find the Lost Element From a Duplicated Array1092
442Replace Elements with Greatest Element on Right Side Leetcode Solution1089
443Check if a given array contains duplicate elements within k distance from each other1086
444Find the two Numbers with Odd Occurrences in an Unsorted Array1086
445Queries for GCD of all numbers of an array except elements in a given range1085
446Maximum Size Subarray Sum Equals k Leetcode Solution1080
447Swapping Nodes in a Linked List Leetcode Solution1079
448Search in a Binary Search Tree Leetcode Solution1077
449Check if Array Contains Contiguous Integers With Duplicates Allowed1074
450Find duplicates in a given array when elements are not limited to a range1072
451Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution1071
452Queries for counts of array elements with values in given range1068
453Sieve of Eratosthenes1066
454Maximum Depth of N-ary Tree Leetcode Solution1065
455Can Make Arithmetic Progression From Sequence Leetcode Solution1064
456Maximum Length of a Concatenated String with Unique Characters Leetcode Solution1063
457Invert Binary Tree LeetCode Solution1062
458Alien Dictionary LeetCode Solution1062
459Swap Kth Node from beginning with Kth Node from End1058
460Increasing Subsequence of Length three with Maximum Product1057
462Maximum Consecutive Numbers Present in an Array1054
463Maximum sum rectangle in a 2D matrix1053
464Find Median from Data Stream LeetCode Solution1051
465Sequences of given length where every element is more than or equal to twice of previous1050
466Sort a String According to Another String1049
467Find a Sorted Subsequence of size 31049
468Minesweeper LeetCode Solution1048
469Contains Duplicate1048
470Insert Delete GetRandom O(1) Leetcode Solution1047
471Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized1047
472Largest Rectangle in Histogram LeetCode Solution1046
473Stack Permutations (Check if an array is stack permutation of other)1046
474Number of Days Between Two Dates LeetCode Solution1045
475Remove All Ones With Row and Column Flips Leetcode Solution1044
476Minimize Maximum Pair Sum in Array LeetCode Solution1044
477Last Stone Weight II LeetCode Solution1043
478Shortest Completing Word Leetcode Solution1040
479K-th Distinct Element in an Array1040
480Decode Ways1040
481Decode String1040
482K Closest Points to Origin Leetcode Solution1039
483Count Minimum Steps to Get the given Array1039
484Permutation Sequence LeetCode Solution1038
485Minimum Bracket Reversals1034
486Intersection of Two Linked Lists LeetCode Solution1031
487Check if String Follows Order of Characters by a Pattern or not1031
488Ugly Number II LeetCode Solution1030
489Minimum Absolute Difference in BST Leetcode Solution1030
490Postfix to Prefix Conversion1029
491Set Matrix Zeroes Leetcode Solution1028
492Minimum Time to Collect All Apples in a Tree LeetCode Solution1026
493Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution1022
494Minimum Height Trees1021
495Reverse Nodes in k-Group LeetCode Solution1018
496The kth Factor of n Leetcode Solution1018
497Find All Possible Recipes from Given Supplies LeetCode Solution1018
498Palindrome Permutation1018
499Sort a stack using recursion1018
500BFS for Disconnected Graph1016
501Convert Sorted List to Binary Search Tree1015
502Count subarrays having total distinct elements same as original array1014
503Huffman Coding1014
504Subset sum problem1011
505Sort an array according to the order defined by another array1010
506Non-decreasing Array LeetCode Solution1009
507Find Element Using Binary Search in Sorted Array1009
508Missing Element in Sorted Array LeetCode Solution1008
509Binary Tree Maximum Path Sum LeetCode Solution1005
510Guess Number Higher or Lower II1003
511Merge Overlapping Intervals1003
512Sorting a K Sorted Array1003
513Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest996
514Design A Leaderboard Leetcode Solution994
515Check for Balanced Parentheses in an Expression994
516Find the first Repeating Number in a Given Array994
517Longest Common Prefix Word by Word Matching993
518Find if an Expression has Duplicate Parenthesis or Not991
519Merge Two Balanced Binary Search Trees989
520Count Submatrices With All Ones LeetCode Solution987
521Recover Binary Search Tree Leetcode Solution986
522Tiling Problem986
523Coin Change Problem982
524LRU Cache Leetcode Solution981
525Count items common to both the lists but with different prices981
526Shortest Palindrome974
527Longest Common Prefix Using Binary Search II974
528Longest Substring with At Least K Repeating Characters LeetCode Solution970
529Maximum Number of Occurrences of a Substring Leetcode Solution969
530Vertical Order Traversal of Binary Tree LeetCode Solution967
531Consecutive Characters LeetCode Solution966
532Bubble sort using two Stacks965
533Find All Pairs With a Given Difference965
534Priority Queue in C++961
535Count ways to reach the nth stair using step 1, 2 or 3960
536Balanced Expression with Replacement960
537Remove Duplicates from Sorted Array II Leetcode Solution959
538Path Sum II LeetCode Solution958
539Largest Sum Contiguous Subarray957
540MiniMax Algorithm956
541Valid Boomerang Leetcode Solution954
542Remove Invalid Parentheses Leetcode Solution951
543Minimum Sum Path in a Triangle950
544Longest Repeated Subsequence945
545Split Array Into Consecutive Subsequences945
546Rearrange Spaces Between Words Leetcode Solution942
547Insert into a Binary Search Tree Leetcode Solution941
548Edit Distance LeetCode Solution940
549Morris Traversal940
550Perform String Shifts Leetcode935
551Find all pairs (a, b) in an array such that a % b = k934
552Find K Length Subarray of Maximum Average933
553Print all subarrays with 0 sum932
554Search a 2D Matrix II Leetcode Solution930
555Graph Valid Tree LeetCode Solution929
556Container With Most Water LeetCode Solution927
557Integer Break LeetCode Solution924
558Split Linked List in Parts Leetcode Solution923
559Binary Tree zigzag level order Traversal923
560Rearrange array such that even positioned are greater than odd922
561Race Car LeetCode Solution920
562Maximum Distance in Array920
563Minimum number of jumps to reach end919
564Finding K closest element919
565Reverse Nodes in K-Group919
566Lowest Common Ancestor of a Binary Tree Leetcode Solution918
567Find Nth Node918
568Queue based approach for first non-repeating character in a stream916
569Trapping Rain Water LeetCode Solution916
570Implement Trie (Prefix Tree) Leetcode Solution914
571Evaluate Reverse Polish Notation LeetCode Solution911
572Print Fibonacci sequence using 2 variables911
573Hamming Distance910
574Container with Most Water910
575Validate Stack Sequences LeetCode Solution909
576Odd Even Linked List Leetcode Solution909
577Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution908
578Count pair with Given Sum908
579First missing positive907
580Longest subsequence such that difference between adjacents is one905
581Find Maximum of Minimum for Every Window Size in a Given Array905
582Remove brackets from an algebraic string containing + and – operators903
583Check if Two Expressions With Brackets are Same901
584Reveal Cards In Increasing Order Leetcode Solution900
585Next Permutation LeetCode Solution899
586Find a Peak Element II LeetCode Solution898
587Combination Sum IV LeetCode Solution896
588Restore IP Addresses Leetcode Solution895
589Convert BST to Min Heap895
590Add two numbers894
591Detect Capital Leetcode Solution892
592Difference Array | Range update query in O(1)892
593Merge Two Sorted Arrays892
594How to Efficiently Implement k Stacks in a Single Array?891
595Camelcase Matching Leetcode Solution890
596Reorder Data in Log Files LeetCode Solution886
597Check if any two intervals overlap among a given set of intervals885
598Largest rectangular sub-matrix whose sum is 0885
599Cells with Odd Values in a Matrix LeetCode Solution884
600Maximum Product of Splitted Binary Tree LeetCode Solution884
601Valid Sudoku884
602Recover Binary Search Tree883
603Brightest Position on Street LeetCode Solution881
604Infix to Postfix879
605Mean of Array After Removing Some Elements Leetcode Solution878
606Count and Say878
607String comparison containing wildcards878
608Unique Paths III LeetCode Solution876
609Queue Reconstruction by Height875
610Number of Equivalent Domino Pairs Leetcode Solution873
611Non-overlapping sum of two sets873
612Maximum Number of Chocolates to be Distributed Equally Among k Students872
613Partition List Leetcode Solution870
614Queue using Stacks870
615Remove Palindromic Subsequences Leetcode Solution869
616Sort Colors867
617Minimum Distance Between BST Nodes Leetcode Solution866
618Counting Bits866
619Number of Distinct Islands Leetcode Solution865
620Build an Array With Stack Operations Leetcode Solution865
6213 Sum865
622Construct BST from its given Level Order Traversal864
623Permutations of a Given String Using STL864
624Kth Smallest Element in a BST Leetcode Solution863
625Minimum Jumps to Reach Home LeetCode Solution863
626Heap Sort863
627Find four elements that sum to a given value (Hashmap)862
628Kth ancestor of a node in binary tree861
629Pair with given product861
630Median of Two Sorted Arrays860
631Check if a queue can be sorted into another queue using a stack858
632Find subarray with given sum (Handles Negative Numbers)857
633New 21 Game857
634Matrix Chain Multiplication855
635Construct BST from given Preorder Traversal855
636Different Ways to Add Parentheses Leetcode Solution853
637My Calendar I LeetCode Solution853
638Find whether a subarray is in form of a mountain or not853
639Find Duplicate Subtrees853
640The Maze III LeetCode Solution852
641Find all triplets with zero sum852
642Minimum time required to rot all oranges852
643Pancake Sorting850
644Smallest Good Base846
645Minimum Number of Taps to Open to Water a Garden LeetCode Solution845
646Segregate 0s and 1s in an Array845
647Snakes and Ladders LeetCode Solution844
648Four Elements that Sum to Given844
649Vertical sum in a given binary tree843
650Validate Binary Search Tree843
651Unique Binary Search Trees842
652Subarrays with K Different Integers Leetcode Solution840
653Reformat Date LeetCode Solution840
654Longest Subarray Having Count of 1s One More than Count of 0s839
655Inorder Successor of a node in Binary Tree839
656Sort Elements by Frequency II839
657Word Pattern838
658Invert Binary Tree LeetCode Solution837
659Substring with Concatenation of All Words Leetcode Solution836
660Maximum Score After Splitting a String Leetcode Solution835
661Populating Next Right Pointers in Each Node Leetcode Solution834
662Serialize and Deserialize Binary Tree LeetCode Solution832
663Count Distinct Elements in Every Window of Size K832
664Distance Between Bus Stops Leetcode Solution831
665Construction of Longest Increasing Subsequence (N log N)831
666Find Median from data Stream830
667Alien Dictionary830
668Find the Town Judge LeetCode Solution827
669Web Crawler LeetCode Solution826
670Find the largest multiple of 3825
671Design Hit Counter LeetCode Solution824
672Count the Pairs at Same Distance as in English Alphabets823
673Palindromic Substrings Leetcode Solution820
674Check If Array Pairs Are Divisible by k LeetCode Solution820
675All Unique Triplets that Sum up to a Given Value820
676Linked List Cycle819
677Special Positions in a Binary Matrix Leetcode Solution817
678Valid Anagrams817
679Is Graph Bipartite? LeetCode Solution816
680Maximum size subarray sum equals k816
681Merging Two Sorted Arrays816
682Merge K Sorted Linked Lists814
683Union and Intersection of two Linked Lists813
684Word Break813
685Find distance between two nodes of a Binary Tree811
686Partition to K Equal Sum Subsets Leetcode Solution810
687Climbing stairs810
688Sum Root to Leaf Numbers LeetCode Solution809
689Group Multiple Occurrence of Array Elements Ordered by first Occurrence809
690Tree Traversal (Preorder, Inorder & Postorder)809
691An Interesting Method to generate Binary Numbers from 1 to n808
692K maximum sums of overlapping contiguous sub-arrays807
693Maximum difference between first and last indexes of an element in array806
694Breadth First Search (BFS) for a Graph805
695Brick Wall LeetCode Solution804
696Custom Sort String Leetcode Solution802
697A Space Optimized DP solution for 0-1 Knapsack Problem801
698Bitwise AND of Numbers Range LeetCode Solution800
699Remove Duplicates from Sorted List II799
700Delete Nth node from the end of the given linked list799
701Substring With Concatenation Of All Words799
702Lower Case To Upper Case799
703Path Crossing Leetcode Solution798
704Populating Next Right Pointers in Each Node796
705Best Meeting Point LeetCode Solution795
706Most Stones Removed with Same Row or Column LeetCode Solution794
707Count Sub Islands LeetCode Solution794
708Minimum Height Trees LeetCode Solution794
709Subset Sum Problem in O(sum) space794
710Level order traversal using two Queues793
711Symmetric Tree793
712Possible Bipartition LeetCode Solution792
713Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution792
714Valid Parenthesis String792
715Find maximum length Snake sequence791
716Number of palindromic paths in a matrix790
717Spiral Matrix III LeetCode Solution789
718Find Common Characters Leetcode Solution789
719Sliding Window Maximum LeetCode Solution787
720Concatenation of Array LeetCode Solution787
721Count number of triplets with product equal to given number787
722Isomorphic Strings784
723Find First and Last Position of Element in Sorted Array LeetCode Solution783
724Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i783
725Find Three Element From Different Three Arrays Such That a + b + c = sum783
726Length of Longest Fibonacci Subsequence783
727Longest Increasing Subsequence781
728Iterative Preorder Traversal780
729Check if the given array can represent Level Order Traversal of Binary Search Tree779
730Divide Chocolate LeetCode Solution778
731Next Greater Element in an Array778
732Merge Two Sorted Lists Leetcode777
733Sliding Window Median Leetcode Solution774
734Design a Stack With Increment Operation Leetcode Solution774
735Find the first repeating element in an array of integers774
736Maximum Product Subarray774
737Partition Equal Subset Sum771
738Products of ranges in an array770
739Contiguous Array Leetcode770
740Palindrome Partitioning Leetcode Solution769
741Find Maximum Sum Possible Equal Sum of Three Stacks769
742Print all triplets in sorted array that form AP768
743Nearest Exit from Entrance in Maze LeetCode Solution766
744Number of Islands II LeetCode Solution765
745Given a binary tree, how do you remove all the half nodes?764
746Longest Substring with At Most K Distinct Characters LeetCode Solution763
747Shuffle an Array763
748Create Maximum Number762
749Print a Binary Tree in Vertical Order761
750Valid Parentheses Leetcode Solution760
751Minimum Swaps to Make Strings Equal Leetcode Solution760
752Rectangle Overlap LeetCode Solution759
753Remove duplicates from sorted array759
754Path With Maximum Minimum Value LeetCode Solution757
755Maximize Sum of Array after K Negations Leetcode Solution757
756Rearrange an Array Such that arr[i] is equal to i757
757Analyze User Website Visit Pattern LeetCode Solution756
758Check if two nodes are on the same path in a Tree756
759Print all Possible Ways to Break a String in Bracket Form756
760Lowest Common Ancestor of a Binary Search Tree Leetcode Solution755
761Shifting Letters LeetCode Solution755
762Find Minimum in Rotated Sorted Array II LeetCode Solution754
763Root to Leaf path with target sum Leetcode Solutions754
764Level order Traversal in Spiral Form753
765Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution752
766Construct Binary Tree from given Parent Array representation752
767The Painter’s Partition Problem751
768Boolean Parenthesization Problem750
769Iterative Depth First Traversal of Graph750
770Verify Preorder Serialization of a Binary Tree750
771Advantages of BST over Hash Table749
772Path Sum748
773Longest Common Prefix using Character by Character Matching745
774Find the Difference Leetcode Solution744
775Count pairs from two linked lists whose sum is equal to a given value744
776Find Largest Value in Each Tree Row LeetCode Solution742
777Boundary Traversal of binary tree742
778Find Peak Element740
779Valid Number739
780Count Primes in Ranges738
781Reach a Number LeetCode Solution737
782Maximum Sum of 3 Non-Overlapping Subarrays737
783Find Largest d in Array such that a + b + c = d735
784Perfect Squares LeetCode Solution733
785Maximum subsequence sum such that no three are consecutive733
786Number of siblings of a given Node in n-ary Tree733
787Rotate Array731
788Binary Search Tree Search and Insertion729
789Smallest Range II Leetcode Solution728
790Find minimum number of merge operations to make an array palindrome728
791Find the First Circular Tour that visits all the Petrol Pumps727
792Sorted Array to Balanced BST727
793Monotonic Array Leetcode Solution726
794Count Good Nodes in Binary Tree LeetCode Solution724
795Robot Bounded In Circle LeetCode Solution724
796Longest Palindromic Subsequence724
797Missing Number724
798Compare Strings by Frequency of the Smallest Character Leetcode Solution723
799Range LCM Queries722
800Balanced Binary Tree722
801Maximum Frequency Stack Leetcode Solution718
802Contiguous Array718
803Queries on Probability of Even or Odd Number in given Ranges718
804Palindrome Partitioning718
805Iterative Postorder Traversal Using Two Stacks717
806Topological Sorting717
807Sum of f(a[i], a[j]) over all pairs in an array of n integers716
808Distinct Subsequences715
809Number Of Longest Increasing Subsequence714
810BFS vs DFS for Binary Tree714
811Merging Intervals711
812Reorganize String711
813Binary Tree Inorder Traversal LeetCode Solution710
814Shuffle a given Array710
815Contains Duplicate LeetCode Solution708
816Happy Number708
817Deletion in a Binary Tree708
818Largest subarray with equal number of 0s and 1s707
819Binary Search Tree Delete Operation706
820Shortest Path in a Grid with Obstacles Elimination LeetCode Solution705
821Binary Tree Right Side View LeetCode Solution700
822Averages of Levels in Binary Tree700
823Find the node with minimum value in a Binary Search Tree697
824Print All Distinct Elements of a Given Integer Array696
825High Five LeetCode Solution694
826Super Ugly Number694
827Fibonacci Number LeetCode Solution693
828Paint House LeetCode Solution693
829Check if an Array is Stack Sortable692
830First Bad Version692
831Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’689
832Find Minimum In Rotated Sorted Array688
833Insert Delete GetRandom688
834Level of Each node in a Tree from source node687
835Employee Importance LeetCode Solution686
836Maximum Product Subarray685
837Red-Black Tree Introduction684
838Guess The Word684
839Numbers with prime frequencies greater than or equal to k683
840Minimum Size Subarray Sum683
841Check if a given array can represent Preorder Traversal of Binary Search Tree681
842Lowest Common Ancestor681
843Range Sum Query using Sparse Table679
844Binary array after M range toggle operations677
845Find K Closest Elements LeetCode Solution676
846Nested List Weight Sum II LeetCode Solution676
847Minimum Cost to Move Chips to The Same Position LeetCode Solution676
848Find pairs with given sum such that elements of pair are in different rows676
849Integer to Roman676
850Maximum Number of Ways to Partition an Array LeetCode Solution673
851Print n terms of Newman-Conway Sequence671
852Sliding Window Maximum671
853Newman-Conway Sequence666
854Binary Tree to Binary Search Tree Conversion666
855Print Next Greater Number of Q queries666
856Third Maximum Number Leetcode Solution665
857Longest Increasing Consecutive Subsequence665
858Find the smallest binary digit multiple of given number663
859K’th Largest Element in BST when modification to BST is not allowed663
860Collect maximum points in a grid using two traversals663
861Reservoir Sampling663
862Find Sum of all unique sub-array sum for a given array662
863Sort Array by Increasing Frequency Leetcode Solution658
864Reverse a Path in BST using Queue658
865Best Time to Buy and Sell Stock IV LeetCode Solution657
866Design Skiplist LeetCode Solution657
867Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution656
868Arrange given numbers to form the biggest number656
869Binary Tree Longest Consecutive Sequence LeetCode Solution650
870A program to check if a binary tree is BST or not650
871Maximize Elements Using Another Array649
872Transform a BST to Greater sum Tree649
873Search in Sorted Rotated Array649
874Largest divisible pairs subset648
875Unique Binary Search Trees LeetCode Solution647
876Print Right View of a Binary Tree647
877Longest Bitonic Subsequence644
878Minimum Swaps to Group All 1’s Together Leetcode Solution642
879Find Smallest Range Containing Elements from k Lists641
880Friends Of Appropriate Ages LeetCode Solution640
881Height of a generic tree from parent array640
882Swap Nodes In Pairs640
883Level Order Traversal of Binary Tree639
884Range Sum Query 2D – Immutable LeetCode Solution638
885Diagonal Traversal of Binary Tree638
886Check Completeness of a Binary Tree LeetCode Solution635
887Palindrome Permutation LeetCode Solution634
888Edit Distance634
889Next greater element634
890Convert BST into a Min-Heap without using array633
891Minimum insertions to form a palindrome with permutations allowed630
892Delete Nodes and Return Forest Leetcode Solution628
893Moving Stones Until Consecutive Leetcode Solution628
894Valid Triangle Number LeetCode Solution627
895Merge Sorted Array627
896Kill Process LeetCode Solution622
897Check for Palindrome after every character replacement Query618
898Minimum sum of squares of character counts in a given string after removing k characters618
899Maximum difference between frequency of two elements such that element having greater frequency is also greater617
900Find Maximum Depth of Nested Parenthesis in a String615
901Find unique character in a string615
902Longest Substring Without Repeating Characters Leetcode Solution611
903Flatten 2D Vector LeetCode Solution610
904Power of Two610
905Queries on XOR of greatest odd divisor of the range609
906Diameter of N-Ary Tree LeetCode Solution606
907Find postorder traversal of BST from preorder traversal606
908Maximum Product Subarray606
909Friends Pairing Problem605
910Priority Queue602
911Construct Complete Binary Tree from its Linked List Representation601
912Range Minimum Query (Square Root Decomposition and Sparse Table)600
913Bottom View of a Binary Tree600
914Form Minimum Number From Given Sequence599
915Contiguous Array LeetCode Solution598
916Maximum weight transformation of a given string598
917Dividing Array into Pairs With Sum Divisible by K598
918Merge two BSTs with limited extra space597
919All Possible Full Binary Trees LeetCode Solution596
920Queries for Number of Distinct Elements in a Subarray596
921Maximum number of segments of lengths a, b and c596
922Regular Expression Matching596
923Binary Search Tree595
924Maximum Array from Two given Arrays Keeping Order Same593
925Serialize and Deserialize Binary Tree593
926Valid Perfect Square LeetCode Solution592
927K Empty Slots592
928Check if all levels of two Binary Tree are anagrams or not590
929Maximum Population Year LeetCode Solution588
930Closest Binary Search Tree Value Leetcode Solution588
931Array Nesting Leetcode Solution588
932Print modified array after multiple array range increment operations587
933Parallel Courses II LeetCode Solution586
934Count and Toggle Queries on a Binary Array585
935Design Add and Search Words Data Structure LeetCode Solution584
936Write Code to Determine if Two Trees are Identical584
937Minimum Remove to Make Valid Parentheses LeetCode Solution583
938Isomorphic Strings LeetCode Solution581
939Next Greater Element II LeetCode Solution580
940Defanging an IP Address LeetCode Solution579
941Largest Submatrix With Rearrangements LeetCode Solution578
942Find k-th smallest element in BST (Order Statistics in BST)578
943Implement strStr() LeetCode Solution576
944Maximum Sum Increasing Subsequence576
945Kth Smallest Element in a Sorted Matrix LeetCode Solution575
946Arithmetic Slices II – Subsequence LeetCode Solution575
947K’th Largest element in BST using constant extra space575
948Merge Sort575
949Search an Element in Sorted Rotated Array574
950Valid Tic-Tac-Toe State LeetCode Solution572
951Check if X can give change to every person in the Queue571
952Find maximum average subarray of k length567
953Unique Paths II566
954Array Queries for multiply replacements and product565
955Peak Index in a Mountain Array LeetCode Solution564
956Score of Parenthesis LeetCode Solution563
957Bold Words in String LeetCode Solution561
958Clone a Binary Tree with Random Pointers561
959Print Ancestors of a Given Binary Tree Node Without Recursion560
960Lowest Common Ancestor in Binary Search Tree557
961Maximum Binary Tree556
962Valid Triangle Number LeetCode Solution554
963Maximum Depth Of Binary Tree552
964Range Queries for Longest Correct Bracket Subsequence551
965Trapping Rain Water II LeetCode Solution550
966Orderly Queue LeetCode Solution550
967Count even length binary sequences with same sum of first and second half bits550
968Segment Tree549
969Convert a BST to a Binary Tree such that sum of all greater keys is added to every key548
970Kth Smallest Element in a BST548
971Flatten Binary Tree to Linked List LeetCode Solution544
972Largest BST Subtree LeetCode Solution542
973Cutting a Rod539
974Factorial Trailing Zeroes LeetCode Solution537
975Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution532
976Random Pick Index LeetCode Solution532
977Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution531
978Constant time range add operation on an array531
979Insert into a Sorted Circular Linked List LeetCode Solution530
980Palindrome Partitioning530
981Data Structure Designing529
982Count Pairs Whose Products Exist in Array528
983Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution526
984Koko Eating Bananas LeetCode Solution526
985Form minimum number from given sequence525
986Number of elements less than or equal to a given number in a given subarray523
987The Number of Weak Characters in the Game LeetCode Solution522
988Shortest Unsorted Continuous Subarray LeetCode Solution522
989Largest Plus Sign Leetcode Solution522
990Symmetric Tree LeetCode Solution Leetcode Solution522
991Iterative method to find ancestors of a given binary tree519
992Kth Smallest Number in Multiplication Table Leetcode Solution518
993Graph Cloning518
994Check given array of size n can represent BST of n levels or not515
995Champagne Tower LeetCode Solution511
996Check if each internal node of a BST has exactly one child511
997Minimum Number of Arrows to Burst Balloons LeetCode Solution507
998Queries for Decimal Values of Subarrays of a Binary Array507
999Minimum Moves to Equal Array Elements LeetCode Solution504
1000Write a function to get the intersection point of two Linked Lists504
1001Kth Smallest Product of Two Sorted Arrays LeetCode Solution503
1002Encoded String With Shortest Length LeetCode Solution502
1003Swim in Rising Water LeetCode Solution497
1004Closest Leaf in a Binary Tree LeetCode Solution496
1005Greatest Sum Divisible by Three LeetCode Solution493
1006Stone Game IV LeetCode Solution492
1007Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution489
1008Excel Sheet Column Number LeetCode Solution484
1009Best Meeting Point LeetCode Solution483
1010Minimum Swaps To Make Sequences Increasing LeetCode Solution482
1011Sum of Left Leaves LeetCode Solution480
1012Binary Tree to Binary Search Tree Conversion using STL set478
1013Total Hamming Distance LeetCode Solution473
1014Image Overlap LeetCode Solution469
1015How to print maximum number of A’s using given four keys460
1016Excel Sheet Column Title LeetCode Solution453
1017Print Maximum Length Chain of Pairs446
1018Number of Orders in the Backlog Leetcode Solution444
1019Group Shifted Strings Leetcode Solution441
1020Next Greater Element I Leetcode Solution434
1021Decrease Elements To Make Array Zigzag LeetCode Solution426
1022Stone Game IV LeetCode Solution424
1023Find the Town Judge LeetCode Solution414
1024Closest Binary Search Tree Value II LeetCode Solution411
1025Design Underground System Leetcode Solution406
1026Sentence Screen Fitting LeetCode Solution403
1027Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution400
1028Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution398
1029Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution374
1030Peeking Iterator LeetCode Solution367
1031Flatten Binary Tree to Linked List LeetCode Solution271
Translate »