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.
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.
S.No | Interview Question | Number of times asked |
---|
1 | Two Sum Leetcode Solution | 43267 |
2 | Maximum occurring character in a string | 19608 |
3 | Plus One Leetcode Solution | 19021 |
4 | Valid Parentheses LeetCode Solution | 18963 |
5 | 3Sum Leetcode Solution | 16889 |
6 | Merge Sorted Arrays Leetcode Solution | 15034 |
7 | First Repeating Element | 15004 |
8 | Single Number Leetcode Solution | 14682 |
9 | Count Primes Leetcode Solutions | 14463 |
10 | Pow(x, n) Leetcode Solution | 14081 |
11 | Sqrt(x) Leetcode Solution | 13909 |
12 | Meeting Rooms II LeetCode Solution | 13029 |
13 | Concatenation of Array LeetCode Solution | 12611 |
14 | Roman to Integer Leetcode Solution | 11786 |
15 | Valid Palindrome Leetcode Solution | 11671 |
16 | Search Insert Position Leetcode Solution | 11607 |
17 | Contains Duplicate II Leetcode Solution | 11603 |
18 | Palindrome Number LeetCode Solution | 11425 |
19 | Remove Duplicates from Sorted Array Leetcode Solution | 11211 |
20 | Jump Game Leetcode Solution | 11040 |
21 | Reverse Vowels of a String Leetcode Solution | 11012 |
22 | Intersection of Two Arrays II Leetcode Solution | 10908 |
23 | Longest Substring Without Repeating Characters LeetCode Solution | 10815 |
24 | Number of Good Pairs Leetcode Solution | 10765 |
25 | Spiral Matrix LeetCode Solution | 10688 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10639 |
27 | House Robber Leetcode Solution | 10545 |
28 | Add Binary Leetcode Solution | 10468 |
29 | Maximum Subarray Leetcode Solution | 10097 |
30 | Number Of 1 bits | 9906 |
31 | Find the Maximum Repeating Number in Array | 9844 |
32 | Text Justification LeetCode Solution | 9688 |
33 | Jewels and Stones Leetcode Solution | 9606 |
34 | Move Zeroes LeetCode Solution | 9582 |
35 | Min Stack Leetcode Solution | 9457 |
36 | Power of Two Leetcode Solution | 9430 |
37 | Longest Palindromic Substring LeetCode Solution | 9386 |
38 | Permutations Leetcode Solution | 9244 |
39 | Shuffle String Leetcode Solution | 9244 |
40 | Third Maximum Number Leetcode Solution | 9134 |
41 | Word Search Leetcode Solution | 9095 |
42 | Find All Numbers Disappeared in an Array Leetcode Solution | 9081 |
43 | Daily Temperatures Leetcode Solution | 9049 |
44 | Next Permutation Leetcode Solution | 9031 |
45 | Evaluation of Postfix Expression | 9016 |
46 | Median of Two Sorted Arrays LeetCode Solution | 9001 |
47 | Search in Rotated Sorted Array Leetcode Solution | 8970 |
48 | Number of Islands LeetCode Solution | 8897 |
49 | Kth Missing Positive Number Leetcode Solution | 8838 |
50 | Maximum Profit in Job Scheduling Leetcode Solution | 8815 |
51 | Longest Common Prefix Leetcode Solution | 8810 |
52 | Next Greater Element I Leetcode Solution | 8735 |
53 | Frog Jump Leetcode Solution | 8620 |
54 | Find Minimum Distance Between Two Numbers in an Array | 8479 |
55 | Valid Anagram Leetcode Solution | 8449 |
56 | Rotate Image LeetCode Solution | 8390 |
57 | Running Sum of 1d Array Leetcode Solution | 8388 |
58 | Multiply Strings Leetcode Solution | 8339 |
59 | Shuffle the Array Leetcode Solution | 8328 |
60 | Can Place Flowers LeetCode Solution | 8284 |
61 | Combination Sum Leetcode Solution | 8274 |
62 | Count and Say Leetcode Solution | 8246 |
63 | House Robber II Leetcode Solution | 8229 |
64 | 3Sum Closest LeetCode Solution | 8201 |
65 | Bulb Switcher LeetCode Solution | 8173 |
66 | Excel Sheet Column Title Leetcode Solution | 7982 |
67 | Best Time to Buy and Sell Stock LeetCode Solution | 7950 |
68 | Koko Eating Bananas Leetcode Solution | 7950 |
69 | Isomorphic Strings Leetcode Solution | 7915 |
70 | Happy Number Leetcode Solution | 7906 |
71 | Subarray and Subsequence | 7897 |
72 | Majority Element Leetcode Solution | 7821 |
73 | Count Pairs With Given Sum | 7798 |
74 | Integer to Roman Leetcode Solution | 7784 |
75 | Missing Number Leetcode Solution | 7769 |
76 | Product of array except self | 7736 |
77 | Strobogrammatic Number LeetCode Solution | 7690 |
78 | Rotate String LeetCode Solution | 7689 |
79 | Candy LeetCode Solution | 7681 |
80 | Reverse String Without Temporary Variable | 7598 |
81 | Is Subsequence Leetcode Solution | 7551 |
82 | A Product Array Puzzle | 7524 |
83 | Find the Difference Leetcode Solution | 7518 |
84 | Find the Duplicate Number LeetCode Solution | 7467 |
85 | Largest Number Leetcode Solution | 7451 |
86 | Find Common Characters Leetcode Solution | 7431 |
87 | Expression Evaluation | 7431 |
88 | Binary Search LeetCode Solution | 7430 |
89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7367 |
90 | String to Integer (atoi) LeetCode Solution | 7295 |
91 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7286 |
92 | Subset Leetcode | 7224 |
93 | Set Matrix Zeroes | 7182 |
94 | Summary Ranges Leetcode Solution | 7173 |
95 | Sort Characters By Frequency LeetCode Solution | 7123 |
96 | Rabin Karp Algorithm | 7106 |
97 | Word Pattern LeetCode Solution | 7091 |
98 | Balanced Binary Tree Leetcode Solution | 7089 |
99 | Find the Town Judge Leetcode Solution | 7068 |
100 | Unique Paths Leetcode Solution | 7006 |
101 | Arranging Coins Leetcode Solution | 6996 |
102 | Find the Winner of the Circular Game LeetCode Solution | 6981 |
103 | String Compression LeetCode Solution | 6894 |
104 | Rearrange Positive and Negative Numbers Alternatively in Array | 6884 |
105 | Asteroid Collision LeetCode Solution | 6852 |
106 | Repeated Substring Pattern LeetCode Solution | 6801 |
107 | Group Anagrams LeetCode Solution | 6791 |
108 | Smallest window in a string containing all characters of another string | 6743 |
109 | Postfix to Infix Conversion | 6738 |
110 | Page Replacement Algorithms in Operating Systems | 6724 |
111 | Sort Colors LeetCode Solution | 6718 |
112 | Matrix Chain Multiplication using Dynamic Programming | 6662 |
113 | Best Time to Buy and Sell Stock II Leetcode Solution | 6646 |
114 | Sort Array By Parity LeetCode Solution | 6582 |
115 | Zigzag Conversion LeetCode Solution | 6549 |
116 | Divide Two Integers Leetcode Solution | 6508 |
117 | Valid Palindrome II Leetcode Solution | 6483 |
118 | Generate Parentheses Leetcode Solution | 6468 |
119 | Kth largest element in an Array Leetcode Solutions | 6464 |
120 | Sum of minimum and maximum elements of all subarrays of size k | 6458 |
121 | Reverse Integer Leetcode Solution | 6392 |
122 | Remove Duplicates from Sorted Array II Leetcode Solution | 6374 |
123 | Assign Cookies Leetcode Solution | 6373 |
124 | Product of Array Except Self LeetCode Solution | 6352 |
125 | Length of Last Word Leetcode Solution | 6315 |
126 | Bus Routes Leetcode Solution | 6287 |
127 | Decode String Leetcode Solution | 6273 |
128 | Merge Two Sorted Lists Leetcode Solutions | 6257 |
129 | Number of Provinces Leetcode Solution | 6245 |
130 | Pascal Triangle Leetcode | 6242 |
131 | H-Index Leetcode Solution | 6238 |
132 | Find the Row with Maximum Number of 1’s | 6219 |
133 | Linked List Cycle II LeetCode Solution | 6180 |
134 | Convert array into Zig-Zag fashion | 6154 |
135 | Minimum Cost For Tickets Leetcode Solution | 6147 |
136 | Minimum Steps to reach target by a Knight | 6143 |
137 | Defanging an IP Address Leetcode Solution | 6114 |
138 | Optimal Account Balancing LeetCode Solution | 6112 |
139 | Prefix to Infix Conversion | 6102 |
140 | Employee Free Time LeetCode Solution | 6099 |
141 | Pascal’s Triangle II Leetcode Solution | 6004 |
142 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 5974 |
143 | First element occurring k times in an array | 5974 |
144 | Increasing Triplet Subsequence LeetCode Solution | 5957 |
145 | Build Array From Permutation Leetcode Solution | 5935 |
146 | Implementation of Deque using Doubly Linked List | 5911 |
147 | Merge Sorted Array LeetCode Solution | 5907 |
148 | Majority Element II Leetcode Solution | 5892 |
149 | Island Perimeter Leetcode Solution | 5870 |
150 | Robot Room Cleaner Leetcode Solution | 5869 |
151 | Bellman Ford Algorithm | 5836 |
152 | Max Consecutive Ones Leetcode Solution | 5801 |
153 | Find Pair with Given Difference | 5783 |
154 | Swap Nodes in Pairs Leetcode Solutions | 5782 |
155 | Check if the Elements of an Array are Consecutive | 5763 |
156 | OSI Model | 5747 |
157 | Guess Number Higher or Lower LeetCode Solution | 5738 |
158 | K-th Smallest Element in a Sorted Matrix | 5738 |
159 | Add Two Numbers II Leetcode Solution | 5704 |
160 | Set Matrix Zeroes Leetcode Solution | 5703 |
161 | Fibonacci Number LeetCode Solution | 5698 |
162 | KMP Algorithm | 5689 |
163 | First negative integer in every window of size k | 5674 |
164 | Find the Missing Number | 5663 |
165 | Subarray Sum Equals K LeetCode Solution | 5662 |
166 | Design Parking System Leetcode Solution | 5661 |
167 | Lemonade Change Leetcode Solution | 5645 |
168 | Trapping Rain Water Leetcode Solution | 5644 |
169 | Delete middle element of a stack | 5621 |
170 | First Unique Character in a String LeetCode Solution | 5600 |
171 | Word Ladder LeetCode Solution | 5587 |
172 | Coin Change 2 Leetcode Solution | 5580 |
173 | Subarray Product Less Than K LeetCode Solution | 5576 |
174 | Find All Duplicates in an Array LeetCode Solution | 5569 |
175 | String Compression | 5559 |
176 | Length of the largest subarray with contiguous elements | 5555 |
177 | Monotonic Array LeetCode Solution | 5543 |
178 | Capacity To Ship Packages Within D Days Leetcode Solution | 5538 |
179 | Last Stone Weight | 5535 |
180 | Subarray with Given Sum | 5529 |
181 | Palindrome Linked List Leetcode Solution | 5525 |
182 | Find Smallest Missing Number in a Sorted Array | 5460 |
183 | Repeated Substring Pattern | 5453 |
184 | Form Minimum Number from Given Sequence of D’s and I’s | 5444 |
185 | Combinations Leetcode Solution | 5424 |
186 | Remove Duplicates from Sorted List II LeetCode Solution | 5412 |
187 | 01 Matrix LeetCode Solution | 5412 |
188 | Single Element in a Sorted Array LeetCode Solution | 5385 |
189 | Prefix to Postfix Conversion | 5360 |
190 | Reverse Words in a String III LeetCode Solution | 5345 |
191 | Valid Perfect Square Leetcode Solution | 5340 |
192 | Continuous Subarray Sum LeetCode Solution | 5339 |
193 | Same Tree LeetCode Solution | 5314 |
194 | Iterative Implementation of Quick Sort | 5312 |
195 | Break a Palindrome LeetCode Solution | 5280 |
196 | Combination Sum | 5280 |
197 | Remove Linked List Elements Leetcode Solution | 5250 |
198 | Merge k Sorted Lists Leetcode Solution | 5248 |
199 | Leetcode Permutations | 5227 |
200 | Slowest Key Leetcode Solution | 5224 |
201 | Relative Ranks Leetcode Solution | 5203 |
202 | Backspace String Compare | 5194 |
203 | Top K Frequent Elements LeetCode Solution | 5173 |
204 | Rotate List Leetcode Solution | 5156 |
205 | Maximum Product of Three Numbers LeetCode Solution | 5148 |
206 | Insert Delete GetRandom O(1) Leetcode Solution | 5145 |
207 | Find Peak Element LeetCode Solution | 5124 |
208 | Find the Duplicate Element | 5117 |
209 | Container With Most Water LeetCode Solution | 5110 |
210 | The K Weakest Rows in a Matrix Leetcode Solution | 5104 |
211 | Printing brackets in Matrix Chain Multiplication Problem | 5060 |
212 | Contains Duplicate LeetCode Solution | 5050 |
213 | Longest Common Subsequence LeetCode Solution | 5041 |
214 | Cuckoo sequence program | 5039 |
215 | Second Most Repeated Word in a Sequence | 5020 |
216 | Kth Largest Element in a Stream Leetcode Solution | 5018 |
217 | Palindrome Number | 5006 |
218 | Remove All Occurrences of a Substring LeetCode Solution | 4984 |
219 | Make The String Great Leetcode Solution | 4974 |
220 | Relative Sort Array Leetcode Solution | 4968 |
221 | Subarray Sum Equals k | 4965 |
222 | Permutation in String Leetcode Solution | 4964 |
223 | Rearrange given Array in Maximum Minimum Form | 4954 |
224 | Max Area of Island | 4948 |
225 | Unique Paths II Leetcode Solution | 4942 |
226 | Convert a Number to Hexadecimal Leetcode Solution | 4918 |
227 | Generate all Binary Strings Without Consecutive 1’s | 4914 |
228 | Delete Node in a Linked List Leetcode Solution | 4907 |
229 | Arithmetic Expression Evaluation | 4903 |
230 | Find Leaders in an Array | 4903 |
231 | Target Sum | 4887 |
232 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4877 |
233 | Check If Two String Arrays are Equivalent Leetcode Solution | 4872 |
234 | N-Queens LeetCode Solution | 4858 |
235 | Time Based Key-Value Store LeetCode Solution | 4858 |
236 | Moving Average from Data Stream Leetcode Solution | 4846 |
237 | Scramble String | 4840 |
238 | Number of Dice Rolls With Target Sum LeetCode Solution | 4819 |
239 | Count Good Nodes in Binary Tree Leetcode Solution | 4819 |
240 | LRU Cache LeetCode Solution | 4811 |
241 | Next Permutation | 4808 |
242 | Letter Combinations of a Phone Number | 4806 |
243 | Given two unsorted arrays find all pairs whose sum is x | 4789 |
244 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4786 |
245 | Check If N and Its Double Exist Leetcode Solution | 4780 |
246 | Stone Game LeetCode | 4751 |
247 | Find Triplet in Array With a Given Sum | 4751 |
248 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4723 |
249 | Flipping an Image LeetCode Solution | 4717 |
250 | Minimum swaps required to bring all elements less than or equal to k together | 4712 |
251 | Prim’s Algorithm | 4704 |
252 | Reverse Only Letters LeetCode Solution | 4698 |
253 | Stock Buy Sell to Maximize Profit | 4669 |
254 | Remove Minimum Characters so that Two Strings Become Anagrams | 4665 |
255 | Min Cost Climbing Stairs LeetCode Solution | 4661 |
256 | Find The Duplicate Number | 4650 |
257 | Top K Frequent Elements | 4649 |
258 | Minimum Knight Moves LeetCode Solution | 4638 |
259 | Student Attendance Record I Leetcode Solution | 4638 |
260 | Min Stack | 4609 |
261 | To Lower Case Leetcode Solution | 4582 |
262 | Smallest Positive Number Missing in an Unsorted Array | 4571 |
263 | The kth Factor of n Leetcode Solution | 4568 |
264 | Minimum Operations to convert X to Y | 4565 |
265 | License Key Formatting Leetcode Solution | 4543 |
266 | Reverse words in a string | 4541 |
267 | Maximum Sum Increasing Subsequence | 4539 |
268 | Maximum Subarray Sum using Divide and Conquer | 4532 |
269 | Single Number | 4523 |
270 | Maximum Population Year LeetCode Solution | 4503 |
271 | Search Suggestions System LeetCode Solution | 4471 |
272 | Remove Nth Node From End of List Leetcode Solution | 4455 |
273 | Top K Frequent Words LeetCode Solution | 4451 |
274 | Longest Common Subsequence | 4442 |
275 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4440 |
276 | Reformat Date LeetCode Solution | 4438 |
277 | Find Words That Can Be Formed by Characters Leetcode Solution | 4428 |
278 | Find the Number Occurring Odd Number of Times in an Array | 4426 |
279 | Sum of Subarray Ranges Leetcode Solution | 4423 |
280 | Boolean Parenthesization Problem | 4407 |
281 | Minimum Path Sum Leetcode Solution | 4380 |
282 | Maximum Depth of Binary Tree Leetcode Solution | 4362 |
283 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4360 |
284 | BFS for Disconnected Graph | 4355 |
285 | Reveal Cards In Increasing Order Leetcode Solution | 4349 |
286 | N-th Tribonacci Number Leetcode Solution | 4342 |
287 | Intersection of Two Arrays | 4313 |
288 | Reverse individual words | 4311 |
289 | House Robber | 4296 |
290 | Diagonal Traverse LeetCode Solution | 4289 |
291 | Minimum Characters to be Added at Front to Make String Palindrome | 4289 |
292 | Last Stone Weight II LeetCode Solution | 4280 |
293 | Evaluate Division | 4277 |
294 | Remove Duplicates from Sorted List LeetCode Solution | 4275 |
295 | Maximize Distance to Closest Person LeetCode Solution | 4270 |
296 | Best Time to Buy and Sell Stock III Leetcode Solution | 4266 |
297 | Find any one of the multiple repeating elements in read only array | 4256 |
298 | Binary Tree Inorder Traversal LeetCode Solution | 4250 |
299 | Design A Leaderboard Leetcode Solution | 4246 |
300 | Find if Path Exists in Graph Leetcode Solution | 4244 |
301 | Count Number of Occurrences in a Sorted Array | 4237 |
302 | Count of index pairs with equal elements in an array | 4231 |
303 | Sort Elements by Frequency of Occurrences | 4229 |
304 | Length of Longest valid Substring | 4219 |
305 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4214 |
306 | Most Frequent Element in an Array | 4187 |
307 | Range Sum Query 2D – Immutable Leetcode Solution | 4178 |
308 | Minimum number of Merge Operations to make an Array Palindrome | 4177 |
309 | Reverse Nodes in k-Group LeetCode Solution | 4164 |
310 | Implement a stack using single queue | 4163 |
311 | Brightest Position on Street LeetCode Solution | 4141 |
312 | Mobile Numeric Keypad Problem | 4137 |
313 | Find the Closest Palindrome number | 4130 |
314 | Sudoku Solver | 4127 |
315 | Find Leaves of Binary Tree LeetCode Solution | 4123 |
316 | Remove All Ones With Row and Column Flips Leetcode Solution | 4118 |
317 | Reverse Bits | 4101 |
318 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4099 |
319 | Spiral Matrix II Leetcode Solution | 4090 |
320 | Invalid Transactions LeetCode Solution | 4086 |
321 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4082 |
322 | Special Positions in a Binary Matrix Leetcode Solution | 4077 |
323 | Symmetric Tree Leetcode Solution | 4058 |
324 | Shortest Word Distance Leetcode Solution | 4056 |
325 | Split Linked List in Parts Leetcode Solution | 4043 |
326 | Sort Array By Parity II Leetcode Solution | 4043 |
327 | Paint House LeetCode Solution | 4042 |
328 | Maximum Subarray | 4041 |
329 | Diagonal Traversal LeetCode Solution | 4021 |
330 | Arrange given Numbers to Form the Biggest Number II | 4018 |
331 | One Edit Distance LeetCode Solution | 4010 |
332 | Find Duplicates in an Array in Most Efficient Way | 3993 |
333 | Remove Invalid Parentheses Leetcode Solution | 3984 |
334 | Largest Rectangle in Histogram LeetCode Solution | 3982 |
335 | Jump Game | 3972 |
336 | Rank Transform of an Array Leetcode Solution | 3969 |
337 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3965 |
338 | Round Robin Scheduling | 3963 |
339 | Dijkstra Algorithm | 3961 |
340 | Unique Paths | 3958 |
341 | Hamming Distance Leetcode Solution | 3951 |
342 | Partition Labels LeetCode Solution | 3950 |
343 | Minimum Moves to Equal Array Elements Leetcode Solution | 3936 |
344 | Alien Dictionary LeetCode Solution | 3935 |
345 | Maximal Square | 3918 |
346 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3904 |
347 | Construct BST from its given Level Order Traversal | 3904 |
348 | String Matching in an Array Leetcode Solution | 3902 |
349 | Range Sum of BST LeetCode Solution | 3901 |
350 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3900 |
351 | Tug of War | 3894 |
352 | Bitwise AND of Numbers Range LeetCode Solution | 3893 |
353 | Minimum operation to make all elements equal in array | 3891 |
354 | Next Permutation LeetCode Solution | 3886 |
355 | The Celebrity Problem | 3880 |
356 | Minimum Depth of Binary Tree Leetcode Solution | 3878 |
357 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3877 |
358 | Least Number of Unique Integers after K Removals Leetcode Solution | 3874 |
359 | Pair of Positive Negative Values in an Array | 3856 |
360 | Longest Common Prefix using Trie | 3853 |
361 | Merge Two Sorted Linked Lists | 3849 |
362 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3836 |
363 | Maximum Circular Subarray Sum | 3834 |
364 | Smallest Subarray with k Distinct Numbers | 3829 |
365 | Given an Array of Pairs Find all Symmetric Pairs in it | 3827 |
366 | Minimum Time Visiting All Points Leetcode Solution | 3825 |
367 | Postfix to Prefix Conversion | 3824 |
368 | Unique Paths III LeetCode Solution | 3820 |
369 | Check whether Strings are K Distance Apart or Not | 3820 |
370 | Transpose Graph | 3816 |
371 | Minimum Cost to Hire K Workers | 3815 |
372 | K Empty Slots LeetCode | 3813 |
373 | Validate Stack Sequences LeetCode Solution | 3804 |
374 | Clone Graph LeetCode Solution | 3802 |
375 | Robot Bounded In Circle LeetCode Solution | 3798 |
376 | Count of Triplets With Sum Less than Given Value | 3797 |
377 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3794 |
378 | Find minimum difference between any two elements | 3785 |
379 | Next Greater Element III LeetCode Solution | 3783 |
380 | Check if a given array contains duplicate elements within k distance from each other | 3781 |
381 | Substring with Concatenation of All Words Leetcode Solution | 3780 |
382 | Ugly Number II LeetCode Solution | 3771 |
383 | Invert Binary Tree LeetCode Solution | 3769 |
384 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3764 |
385 | Sort a stack using a temporary stack | 3763 |
386 | Implementation of Deque using circular array | 3759 |
387 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3757 |
388 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3756 |
389 | Kruskal Algorithm | 3750 |
390 | Recursion | 3742 |
391 | Invert Binary Tree LeetCode Solution | 3740 |
392 | Permutation Sequence LeetCode Solution | 3732 |
393 | Non-decreasing Array LeetCode Solution | 3727 |
394 | Graph Valid Tree LeetCode Solution | 3720 |
395 | Design Browser History LeetCode Solution | 3708 |
396 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3706 |
397 | Sliding Window Technique | 3703 |
398 | LRU Cache Implementation | 3701 |
399 | Find the subarray with least average | 3699 |
400 | Word Search | 3699 |
401 | Missing Element in Sorted Array LeetCode Solution | 3695 |
402 | Kth Smallest Element in a BST Leetcode Solution | 3694 |
403 | Toeplitz Matrix | 3686 |
404 | Longest subsequence such that difference between adjacents is one | 3685 |
405 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3684 |
406 | Stack Permutations (Check if an array is stack permutation of other) | 3684 |
407 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3679 |
408 | Longest subarray not having more than K distinct elements | 3679 |
409 | Find duplicates in a given array when elements are not limited to a range | 3676 |
410 | Partition List Leetcode Solution | 3670 |
411 | Find the First and Second Smallest Elements | 3670 |
412 | Path With Maximum Minimum Value LeetCode Solution | 3669 |
413 | 3 Sum | 3664 |
414 | Number of Islands II LeetCode Solution | 3654 |
415 | Common elements in all rows of a given matrix | 3653 |
416 | Stone Game II Leetcode | 3653 |
417 | Find Top K (or Most Frequent) Numbers in a Stream | 3652 |
418 | K Closest Points to Origin Leetcode Solution | 3645 |
419 | Max stack | 3641 |
420 | Find Maximum Level sum in Binary Tree | 3638 |
421 | First Circular Tour to Visit all the Petrol Bunks | 3636 |
422 | Queries for counts of array elements with values in given range | 3634 |
423 | Number Complement Leetcode Solution | 3631 |
424 | Sequences of given length where every element is more than or equal to twice of previous | 3626 |
425 | Combination Sum IV LeetCode Solution | 3624 |
426 | Number of Smaller Elements on Right Side | 3622 |
427 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3619 |
428 | Integer Break LeetCode Solution | 3618 |
429 | Search a 2D Matrix II Leetcode Solution | 3617 |
430 | Snakes and Ladders LeetCode Solution | 3615 |
431 | Minesweeper LeetCode Solution | 3614 |
432 | Top View of Binary Tree | 3614 |
433 | Priority Queue using doubly linked list | 3610 |
434 | Nth Catalan Number | 3591 |
435 | LRU Cache Leetcode Solution | 3590 |
436 | Painting Fence Algorithm | 3588 |
437 | Find the Peak Element from an Array | 3588 |
438 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3580 |
439 | Odd Even Linked List Leetcode Solution | 3579 |
440 | Sort elements by frequency | 3571 |
441 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3571 |
442 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3564 |
443 | Insert Interval Leetcode Solution | 3564 |
444 | High Five LeetCode Solution | 3562 |
445 | Check if Two given Strings are Isomorphic to each other | 3557 |
446 | Rearrange array such that even positioned are greater than odd | 3549 |
447 | Flood Fill LeetCode | 3543 |
448 | Maximum Consecutive Numbers Present in an Array | 3540 |
449 | Search in a Binary Search Tree Leetcode Solution | 3535 |
450 | Consecutive Characters LeetCode Solution | 3532 |
451 | Shortest Palindrome | 3524 |
452 | Sliding Window Maximum LeetCode Solution | 3518 |
453 | Distance of nearest cell having 1 in a binary matrix | 3518 |
454 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3504 |
455 | 4Sum | 3504 |
456 | Fibonacci Number LeetCode Solution | 3499 |
457 | Tiling Problem | 3495 |
458 | Expression Contains Redundant Bracket or Not | 3491 |
459 | Move All the Zeros to the End of the Given Array | 3489 |
460 | Count items common to both the lists but with different prices | 3485 |
461 | Spiral Matrix III LeetCode Solution | 3478 |
462 | Minimum Absolute Difference in BST Leetcode Solution | 3477 |
463 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3474 |
464 | Number of Closed Islands Leetcode Solution | 3473 |
465 | Gold Mine Problem | 3470 |
466 | Find a Peak Element II LeetCode Solution | 3463 |
467 | Kth Non-repeating Character | 3463 |
468 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3462 |
469 | Insert into a Binary Search Tree Leetcode Solution | 3459 |
470 | Decompress Run-Length Encoded List Leetcode Solution | 3457 |
471 | Integer to English words | 3453 |
472 | Queries for GCD of all numbers of an array except elements in a given range | 3446 |
473 | Restore IP Addresses Leetcode Solution | 3438 |
474 | Minimum Path Sum | 3438 |
475 | N queen problem | 3438 |
476 | Evaluate Reverse Polish Notation LeetCode Solution | 3437 |
477 | Trapping Rain Water LeetCode Solution | 3435 |
478 | Longest Common Prefix using Sorting | 3432 |
479 | Coin Change Problem | 3432 |
480 | Balanced Expression with Replacement | 3427 |
481 | Interval Tree | 3420 |
482 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3414 |
483 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3413 |
484 | Sliding Window Median Leetcode Solution | 3412 |
485 | Sorting array using Stacks | 3409 |
486 | Binary Tree Maximum Path Sum LeetCode Solution | 3406 |
487 | Sort an array according to the order defined by another array | 3401 |
488 | Sort Colors | 3391 |
489 | Cells with Odd Values in a Matrix LeetCode Solution | 3390 |
490 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3381 |
491 | Majority Element | 3380 |
492 | Best Time to Buy and Sell Stock | 3376 |
493 | Find Pythagorean Triplets from Array | 3373 |
494 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3370 |
495 | Palindrome Substring Queries | 3370 |
496 | Number of Days Between Two Dates LeetCode Solution | 3367 |
497 | Reverse a linked list | 3365 |
498 | Priority Queue in C++ | 3362 |
499 | Path Sum II LeetCode Solution | 3347 |
500 | The Stock Span Problem | 3345 |
501 | Subset sum problem | 3345 |
502 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3344 |
503 | Find Median from Data Stream LeetCode Solution | 3338 |
504 | Queue using Stacks | 3325 |
505 | Is Graph Bipartite? LeetCode Solution | 3322 |
506 | Camelcase Matching Leetcode Solution | 3318 |
507 | Largest rectangular sub-matrix whose sum is 0 | 3315 |
508 | Intersection of Two Linked Lists LeetCode Solution | 3311 |
509 | Sieve of Eratosthenes | 3306 |
510 | Design Hit Counter LeetCode Solution | 3304 |
511 | How to Implement Stack Using Priority Queue or Heap? | 3304 |
512 | Kth ancestor of a node in binary tree | 3302 |
513 | Find the first Repeating Number in a Given Array | 3302 |
514 | Custom Sort String Leetcode Solution | 3299 |
515 | Fibonacci numbers | 3299 |
516 | Pancake Sorting Problem | 3295 |
517 | Different Ways to Add Parentheses Leetcode Solution | 3293 |
518 | Multiplication of Two Matrices | 3284 |
519 | Analyze User Website Visit Pattern LeetCode Solution | 3282 |
520 | Divide Chocolate LeetCode Solution | 3280 |
521 | Longest Increasing Path in a Matrix LeetCode Solution | 3277 |
522 | Shortest Completing Word Leetcode Solution | 3276 |
523 | Path Crossing Leetcode Solution | 3267 |
524 | Scramble String LeetCode Solution | 3264 |
525 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3263 |
526 | Count Submatrices With All Ones LeetCode Solution | 3256 |
527 | Perfect Squares LeetCode Solution | 3255 |
528 | Count subarrays having total distinct elements same as original array | 3250 |
529 | Find a Fixed Point in a Given Array | 3250 |
530 | Group Anagrams | 3249 |
531 | Monotonic Array Leetcode Solution | 3247 |
532 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3247 |
533 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3246 |
534 | Implement Trie (Prefix Tree) Leetcode Solution | 3234 |
535 | Queue based approach for first non-repeating character in a stream | 3229 |
536 | Detect a loop in the Linked List | 3228 |
537 | Shifting Letters LeetCode Solution | 3217 |
538 | Number of Distinct Islands Leetcode Solution | 3206 |
539 | Merge Overlapping Intervals | 3206 |
540 | Minimum Height Trees | 3206 |
541 | Reorder Data in Log Files LeetCode Solution | 3205 |
542 | Construction of Longest Increasing Subsequence (N log N) | 3200 |
543 | How to Create Mergable Stack? | 3199 |
544 | Generate all Binary Strings from Given Pattern | 3195 |
545 | Nearest Exit from Entrance in Maze LeetCode Solution | 3194 |
546 | Champagne Tower LeetCode Solution | 3190 |
547 | Valid Boomerang Leetcode Solution | 3190 |
548 | Race Car LeetCode Solution | 3184 |
549 | Longest Common Prefix using Divide and Conquer | 3184 |
550 | Decode Ways | 3173 |
551 | Implement strStr() LeetCode Solution | 3171 |
552 | Insert Node in the Sorted Linked List | 3171 |
553 | Sort a stack using recursion | 3170 |
554 | Find the Lost Element From a Duplicated Array | 3170 |
555 | Maximum Sum of Non Consecutive Elements | 3169 |
556 | Binary Tree zigzag level order Traversal | 3164 |
557 | Sliding Window Maximum | 3163 |
558 | Maximum Element in an Array which is Increasing and then Decreasing | 3156 |
559 | Find if an Expression has Duplicate Parenthesis or Not | 3150 |
560 | Morris Traversal | 3148 |
561 | First missing positive | 3148 |
562 | Most Stones Removed with Same Row or Column LeetCode Solution | 3146 |
563 | Number of Equivalent Domino Pairs Leetcode Solution | 3140 |
564 | Recover Binary Search Tree | 3140 |
565 | Palindrome Permutation LeetCode Solution | 3136 |
566 | Build an Array With Stack Operations Leetcode Solution | 3136 |
567 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3134 |
568 | Count Possible Triangles | 3133 |
569 | LCS (Longest Common Subsequence) of three strings | 3128 |
570 | Find a Sorted Subsequence of size 3 | 3128 |
571 | Smallest Good Base | 3123 |
572 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3122 |
573 | Find maximum length Snake sequence | 3122 |
574 | Merge Two Binary Trees LeetCode Solution | 3121 |
575 | Rectangle Overlap LeetCode Solution | 3117 |
576 | Decode String | 3116 |
577 | Design Skiplist LeetCode Solution | 3114 |
578 | Letter Case Permutation | 3110 |
579 | Minimum Bracket Reversals | 3107 |
580 | Contiguous Array LeetCode Solution | 3101 |
581 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3100 |
582 | Palindrome Partitioning Leetcode Solution | 3094 |
583 | Minimum Height Trees LeetCode Solution | 3093 |
584 | Recover Binary Search Tree Leetcode Solution | 3092 |
585 | Distance Between Bus Stops Leetcode Solution | 3090 |
586 | Guess Number Higher or Lower II | 3090 |
587 | Print all Palindromic Partitions of a String | 3087 |
588 | All Possible Full Binary Trees LeetCode Solution | 3077 |
589 | Largest Subarray with Equal Number of 0’s and 1’s | 3077 |
590 | Minimum number of jumps to reach end | 3074 |
591 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3073 |
592 | Longest Repeated Subsequence | 3072 |
593 | Maximum Depth of N-ary Tree Leetcode Solution | 3069 |
594 | Find the Town Judge LeetCode Solution | 3068 |
595 | Design a Stack With Increment Operation Leetcode Solution | 3064 |
596 | K-th Distinct Element in an Array | 3060 |
597 | Maximum Length of Chain Pairs | 3055 |
598 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3053 |
599 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3049 |
600 | Reorder an Array According to the Given Indexes | 3049 |
601 | Check for Balanced Parentheses in an Expression | 3035 |
602 | Implement Two Stacks in an Array | 3034 |
603 | The Maze III LeetCode Solution | 3032 |
604 | Subarrays with K Different Integers Leetcode Solution | 3021 |
605 | Rearrange Spaces Between Words Leetcode Solution | 3020 |
606 | Sort a String According to Another String | 3020 |
607 | Mean of Array After Removing Some Elements Leetcode Solution | 3018 |
608 | Valid Parentheses Leetcode Solution | 3015 |
609 | Maximize Elements Using Another Array | 3015 |
610 | Maximum Score After Splitting a String Leetcode Solution | 3014 |
611 | Jump Game IV LeetCode Solution | 3010 |
612 | Maximum sum rectangle in a 2D matrix | 3002 |
613 | Count pair with Given Sum | 2992 |
614 | Contains Duplicate | 2985 |
615 | Minimum Jumps to Reach Home LeetCode Solution | 2968 |
616 | Perform String Shifts Leetcode | 2964 |
617 | Convert BST to Min Heap | 2963 |
618 | Word Break | 2963 |
619 | Valid Sudoku | 2961 |
620 | Possible Bipartition LeetCode Solution | 2954 |
621 | Edit Distance LeetCode Solution | 2949 |
622 | Find the First Circular Tour that visits all the Petrol Pumps | 2948 |
623 | Palindrome Permutations of a String | 2947 |
624 | Iterative Method to find Height of Binary Tree | 2943 |
625 | Find the Minimum Element in a Sorted and Rotated Array | 2941 |
626 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2938 |
627 | Heap Sort | 2933 |
628 | Reach a Number LeetCode Solution | 2926 |
629 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2916 |
630 | Best Meeting Point LeetCode Solution | 2913 |
631 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2911 |
632 | Find Largest Value in Each Tree Row LeetCode Solution | 2910 |
633 | Merge Two Balanced Binary Search Trees | 2908 |
634 | Count Sub Islands LeetCode Solution | 2897 |
635 | Palindromic Substrings Leetcode Solution | 2897 |
636 | Number of palindromic paths in a matrix | 2889 |
637 | Merge Overlapping Intervals II | 2886 |
638 | Sorted Linked List to Balanced BST | 2885 |
639 | Brick Wall LeetCode Solution | 2877 |
640 | My Calendar I LeetCode Solution | 2877 |
641 | Palindrome Permutation | 2876 |
642 | Find the Subarray of given length with Least Average | 2876 |
643 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2875 |
644 | Segregate 0s and 1s in an Array | 2874 |
645 | All Unique Triplets that Sum up to a Given Value | 2871 |
646 | Caesar Cipher | 2868 |
647 | Swapping Nodes in a Linked List Leetcode Solution | 2862 |
648 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2859 |
649 | Construct BST from given Preorder Traversal | 2857 |
650 | Huffman Coding | 2851 |
651 | Level order Traversal in Spiral Form | 2849 |
652 | Find Median from data Stream | 2849 |
653 | Pair with given product | 2839 |
654 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2833 |
655 | Partition Problem | 2831 |
656 | Word Pattern | 2826 |
657 | Maximize Sum of Array after K Negations Leetcode Solution | 2822 |
658 | Merge K Sorted Arrays and Print Sorted Output | 2819 |
659 | Find all triplets with zero sum | 2810 |
660 | Validate Binary Search Tree | 2806 |
661 | Count Distinct Elements in Every Window of Size K | 2785 |
662 | Isomorphic Strings LeetCode Solution | 2784 |
663 | Print Fibonacci sequence using 2 variables | 2784 |
664 | Find whether a subarray is in form of a mountain or not | 2784 |
665 | Maximum Frequency Stack Leetcode Solution | 2781 |
666 | Count Good Nodes in Binary Tree LeetCode Solution | 2778 |
667 | Bubble sort using two Stacks | 2777 |
668 | Detect Capital Leetcode Solution | 2774 |
669 | Minimum time required to rot all oranges | 2773 |
670 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2772 |
671 | Find all pairs (a, b) in an array such that a % b = k | 2772 |
672 | Queries on Probability of Even or Odd Number in given Ranges | 2771 |
673 | Add two numbers | 2771 |
674 | Counting Bits | 2765 |
675 | Longest Subarray Having Count of 1s One More than Count of 0s | 2762 |
676 | Range Sum Query 2D – Immutable LeetCode Solution | 2760 |
677 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2760 |
678 | Convert Sorted List to Binary Search Tree | 2758 |
679 | Alien Dictionary | 2758 |
680 | How to Efficiently Implement k Stacks in a Single Array? | 2753 |
681 | Binary Tree Right Side View LeetCode Solution | 2749 |
682 | Split Array Into Consecutive Subsequences | 2748 |
683 | Largest Sum Contiguous Subarray | 2746 |
684 | Find four elements that sum to a given value (Hashmap) | 2745 |
685 | Sort 0s 1s and 2s in an Array | 2742 |
686 | Length of Longest Fibonacci Subsequence | 2740 |
687 | Binary Tree to Binary Search Tree Conversion | 2738 |
688 | Breadth First Search (BFS) for a Graph | 2735 |
689 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2734 |
690 | Rotate Array | 2731 |
691 | Remove brackets from an algebraic string containing + and – operators | 2730 |
692 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2724 |
693 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 2723 |
694 | Partition to K Equal Sum Subsets Leetcode Solution | 2721 |
695 | Print all subarrays with 0 sum | 2715 |
696 | Count ways to reach the nth stair using step 1, 2 or 3 | 2712 |
697 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2711 |
698 | Merge Two Sorted Lists Leetcode | 2700 |
699 | Populating Next Right Pointers in Each Node Leetcode Solution | 2695 |
700 | Remove Palindromic Subsequences Leetcode Solution | 2692 |
701 | Populating Next Right Pointers in Each Node | 2692 |
702 | String comparison containing wildcards | 2682 |
703 | Find pairs with given sum such that elements of pair are in different rows | 2681 |
704 | Partition Equal Subset Sum | 2680 |
705 | Arithmetic Slices II – Subsequence LeetCode Solution | 2677 |
706 | Difference Array | Range update query in O(1) | 2669 |
707 | Happy Number | 2669 |
708 | Topological Sorting | 2664 |
709 | Web Crawler LeetCode Solution | 2663 |
710 | Remove duplicates from sorted array | 2662 |
711 | Concatenation of Array LeetCode Solution | 2656 |
712 | Minimum Sum Path in a Triangle | 2655 |
713 | Queue Reconstruction by Height | 2652 |
714 | Inorder Successor of a node in Binary Tree | 2649 |
715 | Elements Appear more than N/K times in Array | 2647 |
716 | Check if a Linked list of Strings form a Palindrome | 2639 |
717 | Contiguous Array Leetcode | 2636 |
718 | Find All Pairs With a Given Difference | 2635 |
719 | Reverse Nodes in K-Group | 2631 |
720 | Find Duplicate Subtrees | 2626 |
721 | Root to Leaf path with target sum Leetcode Solutions | 2625 |
722 | Increasing Subsequence of Length three with Maximum Product | 2612 |
723 | Check if String Follows Order of Characters by a Pattern or not | 2611 |
724 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2598 |
725 | Swap Kth Node from beginning with Kth Node from End | 2594 |
726 | Longest Common Prefix Using Binary Search II | 2590 |
727 | Container with Most Water | 2581 |
728 | Climbing stairs | 2579 |
729 | Maximum Product Subarray II | 2577 |
730 | Score of Parenthesis LeetCode Solution | 2576 |
731 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2575 |
732 | Count Minimum Steps to Get the given Array | 2572 |
733 | Finding K closest element | 2570 |
734 | Maximum Distance in Array | 2569 |
735 | Symmetric Tree | 2567 |
736 | Given a binary tree, how do you remove all the half nodes? | 2565 |
737 | Pancake Sorting | 2564 |
738 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2557 |
739 | Sum Root to Leaf Numbers LeetCode Solution | 2551 |
740 | Parallel Courses II LeetCode Solution | 2550 |
741 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2550 |
742 | An Interesting Method to generate Binary Numbers from 1 to n | 2548 |
743 | Deletion in a Binary Tree | 2545 |
744 | Check if all levels of two Binary Tree are anagrams or not | 2543 |
745 | Delete Nodes and Return Forest Leetcode Solution | 2540 |
746 | Construct Binary Tree from given Parent Array representation | 2539 |
747 | Longest Increasing Subsequence | 2536 |
748 | Find the first repeating element in an array of integers | 2532 |
749 | Substring With Concatenation Of All Words | 2527 |
750 | Delete Nth node from the end of the given linked list | 2523 |
751 | Count pairs from two linked lists whose sum is equal to a given value | 2523 |
752 | Boundary Traversal of binary tree | 2521 |
753 | Union and Intersection of two Linked Lists | 2519 |
754 | Kill Process LeetCode Solution | 2516 |
755 | MiniMax Algorithm | 2516 |
756 | Sort Array by Increasing Frequency Leetcode Solution | 2509 |
757 | Iterative Depth First Traversal of Graph | 2508 |
758 | Level order traversal using two Queues | 2507 |
759 | BFS vs DFS for Binary Tree | 2506 |
760 | Linked List Cycle | 2505 |
761 | Level of Each node in a Tree from source node | 2505 |
762 | Find K Closest Elements LeetCode Solution | 2502 |
763 | Minimum Size Subarray Sum | 2499 |
764 | Merge K Sorted Linked Lists | 2497 |
765 | Iterative Preorder Traversal | 2488 |
766 | Non-overlapping sum of two sets | 2488 |
767 | Valid Anagrams | 2487 |
768 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2483 |
769 | Find Maximum of Minimum for Every Window Size in a Given Array | 2483 |
770 | Rearrange an Array Such that arr[i] is equal to i | 2482 |
771 | Longest Common Prefix Word by Word Matching | 2482 |
772 | Nested List Weight Sum II LeetCode Solution | 2469 |
773 | Find the Difference Leetcode Solution | 2465 |
774 | Remove Duplicates from Sorted List II | 2462 |
775 | New 21 Game | 2461 |
776 | Matrix Chain Multiplication | 2460 |
777 | Merging Intervals | 2460 |
778 | Verify Preorder Serialization of a Binary Tree | 2455 |
779 | Check if a queue can be sorted into another queue using a stack | 2451 |
780 | Super Ugly Number | 2450 |
781 | Friends Of Appropriate Ages LeetCode Solution | 2446 |
782 | Maximum size subarray sum equals k | 2444 |
783 | Reservoir Sampling | 2442 |
784 | Flatten Binary Tree to Linked List LeetCode Solution | 2438 |
785 | Maximum Product Subarray | 2435 |
786 | Range LCM Queries | 2432 |
787 | Smallest Range II Leetcode Solution | 2427 |
788 | Print a Binary Tree in Vertical Order | 2426 |
789 | Palindrome Partitioning | 2423 |
790 | Reorder Array Using Given Indexes | 2421 |
791 | Balanced Binary Tree | 2420 |
792 | K maximum sums of overlapping contiguous sub-arrays | 2415 |
793 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2408 |
794 | Missing Number | 2407 |
795 | Valid Triangle Number LeetCode Solution | 2398 |
796 | Vertical sum in a given binary tree | 2397 |
797 | Check if Two Expressions With Brackets are Same | 2397 |
798 | Defanging an IP Address LeetCode Solution | 2391 |
799 | Peak Index in a Mountain Array LeetCode Solution | 2390 |
800 | Check if any two intervals overlap among a given set of intervals | 2389 |
801 | Maximum difference between two elements such as larger element comes after smaller | 2387 |
802 | Create Maximum Number | 2386 |
803 | Minimum insertions to form a palindrome with permutations allowed | 2380 |
804 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2379 |
805 | Minimum Distance Between BST Nodes Leetcode Solution | 2372 |
806 | Lowest Common Ancestor | 2368 |
807 | The Painter’s Partition Problem | 2367 |
808 | Find subarray with given sum (Handles Negative Numbers) | 2364 |
809 | Sorting a K Sorted Array | 2361 |
810 | Unique Binary Search Trees LeetCode Solution | 2360 |
811 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2358 |
812 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2358 |
813 | Number Of Longest Increasing Subsequence | 2355 |
814 | Valid Triangle Number LeetCode Solution | 2354 |
815 | Employee Importance LeetCode Solution | 2351 |
816 | Count number of triplets with product equal to given number | 2351 |
817 | Largest Submatrix With Rearrangements LeetCode Solution | 2346 |
818 | Flatten 2D Vector LeetCode Solution | 2345 |
819 | Find K Length Subarray of Maximum Average | 2340 |
820 | Hamming Distance | 2339 |
821 | Check Completeness of a Binary Tree LeetCode Solution | 2335 |
822 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2331 |
823 | Array Nesting Leetcode Solution | 2331 |
824 | Iterative Postorder Traversal Using Two Stacks | 2330 |
825 | Closest Leaf in a Binary Tree LeetCode Solution | 2329 |
826 | Check if two nodes are on the same path in a Tree | 2328 |
827 | Merging Two Sorted Arrays | 2327 |
828 | Find Peak Element | 2323 |
829 | Third Maximum Number Leetcode Solution | 2322 |
830 | Find Common Characters Leetcode Solution | 2321 |
831 | First Bad Version | 2318 |
832 | Find distance between two nodes of a Binary Tree | 2317 |
833 | Tree Traversal (Preorder, Inorder & Postorder) | 2315 |
834 | Print All Distinct Elements of a Given Integer Array | 2311 |
835 | Valid Parenthesis String | 2307 |
836 | Find Element Using Binary Search in Sorted Array | 2304 |
837 | Products of ranges in an array | 2300 |
838 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2299 |
839 | Maximum subsequence sum such that no three are consecutive | 2299 |
840 | Find Smallest Range Containing Elements from k Lists | 2298 |
841 | Newman-Conway Sequence | 2298 |
842 | Diagonal Traversal of Binary Tree | 2297 |
843 | Largest BST Subtree LeetCode Solution | 2294 |
844 | Print all triplets in sorted array that form AP | 2293 |
845 | Sort Elements by Frequency II | 2293 |
846 | Distinct Subsequences | 2289 |
847 | Find Sum of all unique sub-array sum for a given array | 2288 |
848 | Arrange given numbers to form the biggest number | 2286 |
849 | Bottom View of a Binary Tree | 2280 |
850 | Lower Case To Upper Case | 2280 |
851 | Maximum number of segments of lengths a, b and c | 2279 |
852 | Longest Palindromic Subsequence | 2275 |
853 | Largest divisible pairs subset | 2272 |
854 | Range Sum Query using Sparse Table | 2265 |
855 | Stone Game IV LeetCode Solution | 2264 |
856 | Path Sum | 2260 |
857 | Largest subarray with equal number of 0s and 1s | 2259 |
858 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2258 |
859 | Stone Game IV LeetCode Solution | 2257 |
860 | Find Nth Node | 2257 |
861 | Print Right View of a Binary Tree | 2256 |
862 | Number of siblings of a given Node in n-ary Tree | 2256 |
863 | Segment Tree | 2251 |
864 | Contiguous Array | 2240 |
865 | Trapping Rain Water II LeetCode Solution | 2238 |
866 | Find the largest multiple of 3 | 2238 |
867 | Longest Bitonic Subsequence | 2235 |
868 | Four Elements that Sum to Given | 2234 |
869 | Binary array after M range toggle operations | 2232 |
870 | Shuffle an Array | 2232 |
871 | Median of Two Sorted Arrays | 2231 |
872 | Merge Two Sorted Arrays | 2230 |
873 | Isomorphic Strings | 2228 |
874 | Count and Say | 2221 |
875 | Unique Binary Search Trees | 2219 |
876 | Subset Sum Problem in O(sum) space | 2211 |
877 | Permutations of a Given String Using STL | 2205 |
878 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2194 |
879 | Find Largest d in Array such that a + b + c = d | 2194 |
880 | Red-Black Tree Introduction | 2191 |
881 | Maximum Product Subarray | 2190 |
882 | Infix to Postfix | 2189 |
883 | Encoded String With Shortest Length LeetCode Solution | 2187 |
884 | Valid Number | 2185 |
885 | Maximum Sum of 3 Non-Overlapping Subarrays | 2184 |
886 | Find unique character in a string | 2183 |
887 | Averages of Levels in Binary Tree | 2182 |
888 | Next Greater Element in an Array | 2181 |
889 | Maximum Population Year LeetCode Solution | 2180 |
890 | Friends Pairing Problem | 2179 |
891 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2172 |
892 | Transform a BST to Greater sum Tree | 2172 |
893 | Closest Binary Search Tree Value Leetcode Solution | 2164 |
894 | Valid Perfect Square LeetCode Solution | 2164 |
895 | Height of a generic tree from parent array | 2164 |
896 | Insert Delete GetRandom | 2163 |
897 | Count Primes in Ranges | 2162 |
898 | Orderly Queue LeetCode Solution | 2158 |
899 | Write a function to get the intersection point of two Linked Lists | 2158 |
900 | Binary Search Tree Delete Operation | 2142 |
901 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2141 |
902 | The Number of Weak Characters in the Game LeetCode Solution | 2139 |
903 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2137 |
904 | Bold Words in String LeetCode Solution | 2131 |
905 | Shuffle a given Array | 2131 |
906 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2123 |
907 | Serialize and Deserialize Binary Tree | 2121 |
908 | Sentence Screen Fitting LeetCode Solution | 2119 |
909 | Edit Distance | 2116 |
910 | Minimum sum of squares of character counts in a given string after removing k characters | 2111 |
911 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2105 |
912 | Diameter of N-Ary Tree LeetCode Solution | 2099 |
913 | Reorganize String | 2098 |
914 | Swap Nodes In Pairs | 2096 |
915 | Find Minimum In Rotated Sorted Array | 2093 |
916 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2092 |
917 | Convert BST into a Min-Heap without using array | 2090 |
918 | Lowest Common Ancestor in Binary Search Tree | 2086 |
919 | Next greater element | 2085 |
920 | Integer to Roman | 2084 |
921 | Maximum Product Subarray | 2080 |
922 | Next Greater Element II LeetCode Solution | 2069 |
923 | K’th Largest Element in BST when modification to BST is not allowed | 2065 |
924 | Find the smallest binary digit multiple of given number | 2055 |
925 | Total Hamming Distance LeetCode Solution | 2054 |
926 | Advantages of BST over Hash Table | 2052 |
927 | K’th Largest element in BST using constant extra space | 2050 |
928 | Array Queries for multiply replacements and product | 2048 |
929 | Koko Eating Bananas LeetCode Solution | 2038 |
930 | Queries on XOR of greatest odd divisor of the range | 2035 |
931 | Best Meeting Point LeetCode Solution | 2033 |
932 | Write Code to Determine if Two Trees are Identical | 2033 |
933 | Serialize and Deserialize Binary Tree LeetCode Solution | 2029 |
934 | Check if an Array is Stack Sortable | 2026 |
935 | Constant time range add operation on an array | 2024 |
936 | Print n terms of Newman-Conway Sequence | 2023 |
937 | Longest Increasing Consecutive Subsequence | 2022 |
938 | Level Order Traversal of Binary Tree | 2019 |
939 | Number of Orders in the Backlog Leetcode Solution | 2016 |
940 | Image Overlap LeetCode Solution | 2008 |
941 | Maximum Sum Increasing Subsequence | 2006 |
942 | Reverse a Path in BST using Queue | 2005 |
943 | Range Queries for Longest Correct Bracket Subsequence | 2003 |
944 | Clone a Binary Tree with Random Pointers | 2002 |
945 | Power of Two | 2002 |
946 | Moving Stones Until Consecutive Leetcode Solution | 1998 |
947 | Greatest Sum Divisible by Three LeetCode Solution | 1995 |
948 | Check if X can give change to every person in the Queue | 1991 |
949 | Design Underground System Leetcode Solution | 1990 |
950 | Find minimum number of merge operations to make an array palindrome | 1984 |
951 | A program to check if a binary tree is BST or not | 1982 |
952 | Numbers with prime frequencies greater than or equal to k | 1981 |
953 | Find the node with minimum value in a Binary Search Tree | 1981 |
954 | Valid Tic-Tac-Toe State LeetCode Solution | 1980 |
955 | Insert into a Sorted Circular Linked List LeetCode Solution | 1979 |
956 | Count and Toggle Queries on a Binary Array | 1975 |
957 | Design Add and Search Words Data Structure LeetCode Solution | 1970 |
958 | Form minimum number from given sequence | 1968 |
959 | Check if each internal node of a BST has exactly one child | 1965 |
960 | Print Next Greater Number of Q queries | 1965 |
961 | Maximum Array from Two given Arrays Keeping Order Same | 1961 |
962 | Closest Binary Search Tree Value II LeetCode Solution | 1959 |
963 | Factorial Trailing Zeroes LeetCode Solution | 1949 |
964 | Check for Palindrome after every character replacement Query | 1948 |
965 | Count the Pairs at Same Distance as in English Alphabets | 1946 |
966 | Number of elements less than or equal to a given number in a given subarray | 1944 |
967 | Merge two BSTs with limited extra space | 1939 |
968 | Queries for Decimal Values of Subarrays of a Binary Array | 1938 |
969 | Collect maximum points in a grid using two traversals | 1937 |
970 | Largest Plus Sign Leetcode Solution | 1933 |
971 | Graph Cloning | 1926 |
972 | Merge Sort | 1925 |
973 | Maximum difference between first and last indexes of an element in array | 1924 |
974 | Group Shifted Strings Leetcode Solution | 1920 |
975 | Merge Sorted Array | 1919 |
976 | Dividing Array into Pairs With Sum Divisible by K | 1908 |
977 | Priority Queue | 1899 |
978 | Longest Substring Without Repeating Characters Leetcode Solution | 1894 |
979 | Count even length binary sequences with same sum of first and second half bits | 1889 |
980 | Print modified array after multiple array range increment operations | 1883 |
981 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1880 |
982 | Cutting a Rod | 1871 |
983 | Kth Smallest Element in a BST | 1870 |
984 | Form Minimum Number From Given Sequence | 1859 |
985 | Swim in Rising Water LeetCode Solution | 1858 |
986 | Excel Sheet Column Number LeetCode Solution | 1858 |
987 | Find maximum average subarray of k length | 1853 |
988 | Count Pairs Whose Products Exist in Array | 1853 |
989 | Guess The Word | 1848 |
990 | Unique Paths II | 1842 |
991 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1841 |
992 | Minimum Moves to Equal Array Elements LeetCode Solution | 1841 |
993 | Excel Sheet Column Title LeetCode Solution | 1839 |
994 | Binary Search Tree | 1836 |
995 | Print all Possible Ways to Break a String in Bracket Form | 1831 |
996 | How to print maximum number of A’s using given four keys | 1823 |
997 | Palindrome Partitioning | 1822 |
998 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1818 |
999 | Check given array of size n can represent BST of n levels or not | 1816 |
1000 | Binary Search Tree Search and Insertion | 1812 |
1001 | K Empty Slots | 1812 |
1002 | Longest Common Prefix using Character by Character Matching | 1806 |
1003 | Sorted Array to Balanced BST | 1794 |
1004 | Regular Expression Matching | 1794 |
1005 | Sum of Left Leaves LeetCode Solution | 1792 |
1006 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1781 |
1007 | Find postorder traversal of BST from preorder traversal | 1778 |
1008 | Construct Complete Binary Tree from its Linked List Representation | 1755 |
1009 | Queries for Number of Distinct Elements in a Subarray | 1737 |
1010 | Maximum Depth Of Binary Tree | 1737 |
1011 | Maximum weight transformation of a given string | 1733 |
1012 | Find the Town Judge LeetCode Solution | 1729 |
1013 | Binary Tree to Binary Search Tree Conversion using STL set | 1722 |
1014 | Iterative method to find ancestors of a given binary tree | 1718 |
1015 | Symmetric Tree LeetCode Solution Leetcode Solution | 1708 |
1016 | Data Structure Designing | 1700 |
1017 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1699 |
1018 | Random Pick Index LeetCode Solution | 1690 |
1019 | Search in Sorted Rotated Array | 1680 |
1020 | Find Maximum Depth of Nested Parenthesis in a String | 1672 |
1021 | Search an Element in Sorted Rotated Array | 1653 |
1022 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1622 |
1023 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1621 |
1024 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1611 |
1025 | Next Greater Element I Leetcode Solution | 1570 |
1026 | Print Maximum Length Chain of Pairs | 1566 |
1027 | Maximum Binary Tree | 1548 |
1028 | Find k-th smallest element in BST (Order Statistics in BST) | 1535 |
1029 | Flatten Binary Tree to Linked List LeetCode Solution | 1534 |
1030 | Peeking Iterator LeetCode Solution | 1499 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1475 |