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 | 43198 |
2 | Maximum occurring character in a string | 19590 |
3 | Plus One Leetcode Solution | 18977 |
4 | Valid Parentheses LeetCode Solution | 18927 |
5 | 3Sum Leetcode Solution | 16866 |
6 | Merge Sorted Arrays Leetcode Solution | 14995 |
7 | First Repeating Element | 14992 |
8 | Single Number Leetcode Solution | 14676 |
9 | Count Primes Leetcode Solutions | 14436 |
10 | Pow(x, n) Leetcode Solution | 14040 |
11 | Sqrt(x) Leetcode Solution | 13872 |
12 | Meeting Rooms II LeetCode Solution | 13012 |
13 | Concatenation of Array LeetCode Solution | 12599 |
14 | Roman to Integer Leetcode Solution | 11761 |
15 | Valid Palindrome Leetcode Solution | 11656 |
16 | Contains Duplicate II Leetcode Solution | 11596 |
17 | Search Insert Position Leetcode Solution | 11592 |
18 | Palindrome Number LeetCode Solution | 11408 |
19 | Remove Duplicates from Sorted Array Leetcode Solution | 11171 |
20 | Jump Game Leetcode Solution | 11027 |
21 | Reverse Vowels of a String Leetcode Solution | 10993 |
22 | Intersection of Two Arrays II Leetcode Solution | 10887 |
23 | Longest Substring Without Repeating Characters LeetCode Solution | 10788 |
24 | Number of Good Pairs Leetcode Solution | 10749 |
25 | Spiral Matrix LeetCode Solution | 10667 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10636 |
27 | House Robber Leetcode Solution | 10527 |
28 | Add Binary Leetcode Solution | 10455 |
29 | Maximum Subarray Leetcode Solution | 10091 |
30 | Number Of 1 bits | 9882 |
31 | Find the Maximum Repeating Number in Array | 9831 |
32 | Text Justification LeetCode Solution | 9682 |
33 | Jewels and Stones Leetcode Solution | 9592 |
34 | Move Zeroes LeetCode Solution | 9557 |
35 | Min Stack Leetcode Solution | 9440 |
36 | Power of Two Leetcode Solution | 9419 |
37 | Longest Palindromic Substring LeetCode Solution | 9379 |
38 | Permutations Leetcode Solution | 9234 |
39 | Shuffle String Leetcode Solution | 9233 |
40 | Third Maximum Number Leetcode Solution | 9128 |
41 | Word Search Leetcode Solution | 9090 |
42 | Find All Numbers Disappeared in an Array Leetcode Solution | 9062 |
43 | Daily Temperatures Leetcode Solution | 9036 |
44 | Next Permutation Leetcode Solution | 9027 |
45 | Median of Two Sorted Arrays LeetCode Solution | 8986 |
46 | Evaluation of Postfix Expression | 8958 |
47 | Search in Rotated Sorted Array Leetcode Solution | 8946 |
48 | Number of Islands LeetCode Solution | 8882 |
49 | Kth Missing Positive Number Leetcode Solution | 8828 |
50 | Maximum Profit in Job Scheduling Leetcode Solution | 8810 |
51 | Longest Common Prefix Leetcode Solution | 8805 |
52 | Next Greater Element I Leetcode Solution | 8724 |
53 | Frog Jump Leetcode Solution | 8611 |
54 | Find Minimum Distance Between Two Numbers in an Array | 8472 |
55 | Valid Anagram Leetcode Solution | 8421 |
56 | Running Sum of 1d Array Leetcode Solution | 8383 |
57 | Rotate Image LeetCode Solution | 8374 |
58 | Multiply Strings Leetcode Solution | 8331 |
59 | Shuffle the Array Leetcode Solution | 8323 |
60 | Can Place Flowers LeetCode Solution | 8272 |
61 | Combination Sum Leetcode Solution | 8265 |
62 | Count and Say Leetcode Solution | 8228 |
63 | House Robber II Leetcode Solution | 8220 |
64 | 3Sum Closest LeetCode Solution | 8193 |
65 | Bulb Switcher LeetCode Solution | 8168 |
66 | Excel Sheet Column Title Leetcode Solution | 7970 |
67 | Koko Eating Bananas Leetcode Solution | 7936 |
68 | Isomorphic Strings Leetcode Solution | 7905 |
69 | Happy Number Leetcode Solution | 7904 |
70 | Best Time to Buy and Sell Stock LeetCode Solution | 7896 |
71 | Subarray and Subsequence | 7891 |
72 | Majority Element Leetcode Solution | 7796 |
73 | Count Pairs With Given Sum | 7792 |
74 | Integer to Roman Leetcode Solution | 7781 |
75 | Missing Number Leetcode Solution | 7765 |
76 | Product of array except self | 7733 |
77 | Strobogrammatic Number LeetCode Solution | 7688 |
78 | Rotate String LeetCode Solution | 7673 |
79 | Candy LeetCode Solution | 7663 |
80 | Reverse String Without Temporary Variable | 7595 |
81 | Is Subsequence Leetcode Solution | 7542 |
82 | Find the Difference Leetcode Solution | 7502 |
83 | A Product Array Puzzle | 7486 |
84 | Find the Duplicate Number LeetCode Solution | 7462 |
85 | Largest Number Leetcode Solution | 7448 |
86 | Find Common Characters Leetcode Solution | 7423 |
87 | Expression Evaluation | 7422 |
88 | Binary Search LeetCode Solution | 7416 |
89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7357 |
90 | String to Integer (atoi) LeetCode Solution | 7281 |
91 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7274 |
92 | Subset Leetcode | 7216 |
93 | Set Matrix Zeroes | 7177 |
94 | Summary Ranges Leetcode Solution | 7162 |
95 | Sort Characters By Frequency LeetCode Solution | 7105 |
96 | Rabin Karp Algorithm | 7092 |
97 | Word Pattern LeetCode Solution | 7084 |
98 | Balanced Binary Tree Leetcode Solution | 7063 |
99 | Find the Town Judge Leetcode Solution | 7057 |
100 | Arranging Coins Leetcode Solution | 6995 |
101 | Unique Paths Leetcode Solution | 6991 |
102 | Find the Winner of the Circular Game LeetCode Solution | 6979 |
103 | String Compression LeetCode Solution | 6889 |
104 | Rearrange Positive and Negative Numbers Alternatively in Array | 6880 |
105 | Asteroid Collision LeetCode Solution | 6833 |
106 | Repeated Substring Pattern LeetCode Solution | 6788 |
107 | Group Anagrams LeetCode Solution | 6783 |
108 | Smallest window in a string containing all characters of another string | 6739 |
109 | Sort Colors LeetCode Solution | 6711 |
110 | Page Replacement Algorithms in Operating Systems | 6709 |
111 | Postfix to Infix Conversion | 6690 |
112 | Matrix Chain Multiplication using Dynamic Programming | 6650 |
113 | Best Time to Buy and Sell Stock II Leetcode Solution | 6637 |
114 | Sort Array By Parity LeetCode Solution | 6576 |
115 | Zigzag Conversion LeetCode Solution | 6538 |
116 | Divide Two Integers Leetcode Solution | 6503 |
117 | Valid Palindrome II Leetcode Solution | 6482 |
118 | Kth largest element in an Array Leetcode Solutions | 6460 |
119 | Sum of minimum and maximum elements of all subarrays of size k | 6454 |
120 | Generate Parentheses Leetcode Solution | 6449 |
121 | Reverse Integer Leetcode Solution | 6383 |
122 | Remove Duplicates from Sorted Array II Leetcode Solution | 6365 |
123 | Assign Cookies Leetcode Solution | 6361 |
124 | Product of Array Except Self LeetCode Solution | 6346 |
125 | Length of Last Word Leetcode Solution | 6300 |
126 | Bus Routes Leetcode Solution | 6281 |
127 | Decode String Leetcode Solution | 6267 |
128 | Merge Two Sorted Lists Leetcode Solutions | 6248 |
129 | Number of Provinces Leetcode Solution | 6238 |
130 | Pascal Triangle Leetcode | 6238 |
131 | H-Index Leetcode Solution | 6232 |
132 | Find the Row with Maximum Number of 1’s | 6188 |
133 | Linked List Cycle II LeetCode Solution | 6175 |
134 | Convert array into Zig-Zag fashion | 6147 |
135 | Minimum Cost For Tickets Leetcode Solution | 6141 |
136 | Minimum Steps to reach target by a Knight | 6134 |
137 | Defanging an IP Address Leetcode Solution | 6110 |
138 | Optimal Account Balancing LeetCode Solution | 6106 |
139 | Employee Free Time LeetCode Solution | 6094 |
140 | Prefix to Infix Conversion | 6069 |
141 | Pascal’s Triangle II Leetcode Solution | 5995 |
142 | First element occurring k times in an array | 5969 |
143 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 5961 |
144 | Increasing Triplet Subsequence LeetCode Solution | 5947 |
145 | Build Array From Permutation Leetcode Solution | 5933 |
146 | Implementation of Deque using Doubly Linked List | 5889 |
147 | Merge Sorted Array LeetCode Solution | 5883 |
148 | Majority Element II Leetcode Solution | 5874 |
149 | Robot Room Cleaner Leetcode Solution | 5861 |
150 | Island Perimeter Leetcode Solution | 5840 |
151 | Bellman Ford Algorithm | 5831 |
152 | Max Consecutive Ones Leetcode Solution | 5790 |
153 | Find Pair with Given Difference | 5778 |
154 | Swap Nodes in Pairs Leetcode Solutions | 5767 |
155 | Check if the Elements of an Array are Consecutive | 5754 |
156 | K-th Smallest Element in a Sorted Matrix | 5734 |
157 | OSI Model | 5731 |
158 | Guess Number Higher or Lower LeetCode Solution | 5724 |
159 | Add Two Numbers II Leetcode Solution | 5698 |
160 | Fibonacci Number LeetCode Solution | 5696 |
161 | Set Matrix Zeroes Leetcode Solution | 5673 |
162 | KMP Algorithm | 5673 |
163 | First negative integer in every window of size k | 5666 |
164 | Find the Missing Number | 5657 |
165 | Subarray Sum Equals K LeetCode Solution | 5651 |
166 | Design Parking System Leetcode Solution | 5647 |
167 | Lemonade Change Leetcode Solution | 5641 |
168 | Trapping Rain Water Leetcode Solution | 5632 |
169 | Delete middle element of a stack | 5619 |
170 | First Unique Character in a String LeetCode Solution | 5592 |
171 | Coin Change 2 Leetcode Solution | 5577 |
172 | Word Ladder LeetCode Solution | 5573 |
173 | Subarray Product Less Than K LeetCode Solution | 5566 |
174 | Find All Duplicates in an Array LeetCode Solution | 5558 |
175 | String Compression | 5554 |
176 | Length of the largest subarray with contiguous elements | 5544 |
177 | Monotonic Array LeetCode Solution | 5534 |
178 | Capacity To Ship Packages Within D Days Leetcode Solution | 5533 |
179 | Last Stone Weight | 5529 |
180 | Palindrome Linked List Leetcode Solution | 5516 |
181 | Subarray with Given Sum | 5499 |
182 | Find Smallest Missing Number in a Sorted Array | 5454 |
183 | Repeated Substring Pattern | 5444 |
184 | Form Minimum Number from Given Sequence of D’s and I’s | 5438 |
185 | Combinations Leetcode Solution | 5415 |
186 | Remove Duplicates from Sorted List II LeetCode Solution | 5407 |
187 | 01 Matrix LeetCode Solution | 5390 |
188 | Single Element in a Sorted Array LeetCode Solution | 5377 |
189 | Prefix to Postfix Conversion | 5346 |
190 | Reverse Words in a String III LeetCode Solution | 5342 |
191 | Valid Perfect Square Leetcode Solution | 5336 |
192 | Continuous Subarray Sum LeetCode Solution | 5330 |
193 | Same Tree LeetCode Solution | 5311 |
194 | Iterative Implementation of Quick Sort | 5302 |
195 | Combination Sum | 5274 |
196 | Break a Palindrome LeetCode Solution | 5269 |
197 | Merge k Sorted Lists Leetcode Solution | 5244 |
198 | Remove Linked List Elements Leetcode Solution | 5232 |
199 | Slowest Key Leetcode Solution | 5220 |
200 | Leetcode Permutations | 5217 |
201 | Relative Ranks Leetcode Solution | 5200 |
202 | Backspace String Compare | 5190 |
203 | Top K Frequent Elements LeetCode Solution | 5156 |
204 | Rotate List Leetcode Solution | 5148 |
205 | Maximum Product of Three Numbers LeetCode Solution | 5145 |
206 | Insert Delete GetRandom O(1) Leetcode Solution | 5130 |
207 | Find the Duplicate Element | 5111 |
208 | Find Peak Element LeetCode Solution | 5109 |
209 | The K Weakest Rows in a Matrix Leetcode Solution | 5100 |
210 | Container With Most Water LeetCode Solution | 5090 |
211 | Printing brackets in Matrix Chain Multiplication Problem | 5057 |
212 | Longest Common Subsequence LeetCode Solution | 5038 |
213 | Cuckoo sequence program | 5031 |
214 | Contains Duplicate LeetCode Solution | 5029 |
215 | Second Most Repeated Word in a Sequence | 5018 |
216 | Kth Largest Element in a Stream Leetcode Solution | 5016 |
217 | Palindrome Number | 5000 |
218 | Remove All Occurrences of a Substring LeetCode Solution | 4980 |
219 | Make The String Great Leetcode Solution | 4968 |
220 | Relative Sort Array Leetcode Solution | 4961 |
221 | Subarray Sum Equals k | 4961 |
222 | Permutation in String Leetcode Solution | 4958 |
223 | Rearrange given Array in Maximum Minimum Form | 4951 |
224 | Max Area of Island | 4944 |
225 | Unique Paths II Leetcode Solution | 4938 |
226 | Convert a Number to Hexadecimal Leetcode Solution | 4916 |
227 | Generate all Binary Strings Without Consecutive 1’s | 4909 |
228 | Delete Node in a Linked List Leetcode Solution | 4898 |
229 | Find Leaders in an Array | 4896 |
230 | Arithmetic Expression Evaluation | 4895 |
231 | Target Sum | 4880 |
232 | Check If Two String Arrays are Equivalent Leetcode Solution | 4866 |
233 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4860 |
234 | Time Based Key-Value Store LeetCode Solution | 4853 |
235 | N-Queens LeetCode Solution | 4851 |
236 | Moving Average from Data Stream Leetcode Solution | 4835 |
237 | Scramble String | 4832 |
238 | Number of Dice Rolls With Target Sum LeetCode Solution | 4814 |
239 | Count Good Nodes in Binary Tree Leetcode Solution | 4814 |
240 | Letter Combinations of a Phone Number | 4801 |
241 | Next Permutation | 4800 |
242 | LRU Cache LeetCode Solution | 4798 |
243 | Given two unsorted arrays find all pairs whose sum is x | 4783 |
244 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4776 |
245 | Check If N and Its Double Exist Leetcode Solution | 4766 |
246 | Stone Game LeetCode | 4748 |
247 | Find Triplet in Array With a Given Sum | 4747 |
248 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4710 |
249 | Minimum swaps required to bring all elements less than or equal to k together | 4709 |
250 | Flipping an Image LeetCode Solution | 4706 |
251 | Prim’s Algorithm | 4701 |
252 | Reverse Only Letters LeetCode Solution | 4692 |
253 | Stock Buy Sell to Maximize Profit | 4665 |
254 | Remove Minimum Characters so that Two Strings Become Anagrams | 4661 |
255 | Min Cost Climbing Stairs LeetCode Solution | 4658 |
256 | Find The Duplicate Number | 4646 |
257 | Top K Frequent Elements | 4638 |
258 | Student Attendance Record I Leetcode Solution | 4634 |
259 | Minimum Knight Moves LeetCode Solution | 4633 |
260 | Min Stack | 4597 |
261 | To Lower Case Leetcode Solution | 4580 |
262 | Smallest Positive Number Missing in an Unsorted Array | 4564 |
263 | The kth Factor of n Leetcode Solution | 4563 |
264 | Minimum Operations to convert X to Y | 4560 |
265 | License Key Formatting Leetcode Solution | 4540 |
266 | Reverse words in a string | 4539 |
267 | Maximum Sum Increasing Subsequence | 4531 |
268 | Maximum Subarray Sum using Divide and Conquer | 4520 |
269 | Single Number | 4514 |
270 | Maximum Population Year LeetCode Solution | 4494 |
271 | Search Suggestions System LeetCode Solution | 4459 |
272 | Longest Common Subsequence | 4436 |
273 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4435 |
274 | Top K Frequent Words LeetCode Solution | 4434 |
275 | Remove Nth Node From End of List Leetcode Solution | 4433 |
276 | Reformat Date LeetCode Solution | 4432 |
277 | Find Words That Can Be Formed by Characters Leetcode Solution | 4425 |
278 | Sum of Subarray Ranges Leetcode Solution | 4421 |
279 | Find the Number Occurring Odd Number of Times in an Array | 4418 |
280 | Minimum Path Sum Leetcode Solution | 4377 |
281 | Maximum Depth of Binary Tree Leetcode Solution | 4360 |
282 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4351 |
283 | BFS for Disconnected Graph | 4344 |
284 | N-th Tribonacci Number Leetcode Solution | 4339 |
285 | Reveal Cards In Increasing Order Leetcode Solution | 4338 |
286 | Boolean Parenthesization Problem | 4311 |
287 | Intersection of Two Arrays | 4309 |
288 | Reverse individual words | 4308 |
289 | House Robber | 4290 |
290 | Diagonal Traverse LeetCode Solution | 4283 |
291 | Minimum Characters to be Added at Front to Make String Palindrome | 4279 |
292 | Last Stone Weight II LeetCode Solution | 4275 |
293 | Remove Duplicates from Sorted List LeetCode Solution | 4274 |
294 | Evaluate Division | 4271 |
295 | Maximize Distance to Closest Person LeetCode Solution | 4268 |
296 | Best Time to Buy and Sell Stock III Leetcode Solution | 4256 |
297 | Find any one of the multiple repeating elements in read only array | 4252 |
298 | Binary Tree Inorder Traversal LeetCode Solution | 4246 |
299 | Find if Path Exists in Graph Leetcode Solution | 4241 |
300 | Design A Leaderboard Leetcode Solution | 4238 |
301 | Count Number of Occurrences in a Sorted Array | 4232 |
302 | Count of index pairs with equal elements in an array | 4226 |
303 | Length of Longest valid Substring | 4214 |
304 | Sort Elements by Frequency of Occurrences | 4214 |
305 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4191 |
306 | Most Frequent Element in an Array | 4182 |
307 | Range Sum Query 2D – Immutable Leetcode Solution | 4174 |
308 | Minimum number of Merge Operations to make an Array Palindrome | 4174 |
309 | Reverse Nodes in k-Group LeetCode Solution | 4159 |
310 | Implement a stack using single queue | 4159 |
311 | Brightest Position on Street LeetCode Solution | 4131 |
312 | Find the Closest Palindrome number | 4128 |
313 | Mobile Numeric Keypad Problem | 4122 |
314 | Sudoku Solver | 4118 |
315 | Find Leaves of Binary Tree LeetCode Solution | 4116 |
316 | Remove All Ones With Row and Column Flips Leetcode Solution | 4110 |
317 | Reverse Bits | 4096 |
318 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4095 |
319 | Spiral Matrix II Leetcode Solution | 4087 |
320 | Invalid Transactions LeetCode Solution | 4081 |
321 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4076 |
322 | Special Positions in a Binary Matrix Leetcode Solution | 4063 |
323 | Symmetric Tree Leetcode Solution | 4054 |
324 | Shortest Word Distance Leetcode Solution | 4052 |
325 | Sort Array By Parity II Leetcode Solution | 4040 |
326 | Paint House LeetCode Solution | 4039 |
327 | Split Linked List in Parts Leetcode Solution | 4037 |
328 | Maximum Subarray | 4026 |
329 | Diagonal Traversal LeetCode Solution | 4016 |
330 | Arrange given Numbers to Form the Biggest Number II | 4013 |
331 | One Edit Distance LeetCode Solution | 4007 |
332 | Find Duplicates in an Array in Most Efficient Way | 3989 |
333 | Remove Invalid Parentheses Leetcode Solution | 3977 |
334 | Largest Rectangle in Histogram LeetCode Solution | 3972 |
335 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3963 |
336 | Rank Transform of an Array Leetcode Solution | 3959 |
337 | Round Robin Scheduling | 3959 |
338 | Jump Game | 3956 |
339 | Unique Paths | 3955 |
340 | Dijkstra Algorithm | 3955 |
341 | Partition Labels LeetCode Solution | 3948 |
342 | Hamming Distance Leetcode Solution | 3942 |
343 | Alien Dictionary LeetCode Solution | 3933 |
344 | Minimum Moves to Equal Array Elements Leetcode Solution | 3932 |
345 | Maximal Square | 3913 |
346 | Construct BST from its given Level Order Traversal | 3901 |
347 | String Matching in an Array Leetcode Solution | 3898 |
348 | Range Sum of BST LeetCode Solution | 3896 |
349 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3895 |
350 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3894 |
351 | Tug of War | 3892 |
352 | Bitwise AND of Numbers Range LeetCode Solution | 3885 |
353 | Minimum operation to make all elements equal in array | 3883 |
354 | Next Permutation LeetCode Solution | 3877 |
355 | The Celebrity Problem | 3876 |
356 | Minimum Depth of Binary Tree Leetcode Solution | 3874 |
357 | Least Number of Unique Integers after K Removals Leetcode Solution | 3872 |
358 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3869 |
359 | Longest Common Prefix using Trie | 3851 |
360 | Pair of Positive Negative Values in an Array | 3847 |
361 | Merge Two Sorted Linked Lists | 3841 |
362 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3835 |
363 | Maximum Circular Subarray Sum | 3832 |
364 | Smallest Subarray with k Distinct Numbers | 3827 |
365 | Given an Array of Pairs Find all Symmetric Pairs in it | 3822 |
366 | Check whether Strings are K Distance Apart or Not | 3816 |
367 | Unique Paths III LeetCode Solution | 3813 |
368 | K Empty Slots LeetCode | 3810 |
369 | Transpose Graph | 3809 |
370 | Minimum Cost to Hire K Workers | 3809 |
371 | Postfix to Prefix Conversion | 3809 |
372 | Minimum Time Visiting All Points Leetcode Solution | 3803 |
373 | Clone Graph LeetCode Solution | 3797 |
374 | Robot Bounded In Circle LeetCode Solution | 3796 |
375 | Count of Triplets With Sum Less than Given Value | 3794 |
376 | Validate Stack Sequences LeetCode Solution | 3793 |
377 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3788 |
378 | Next Greater Element III LeetCode Solution | 3779 |
379 | Find minimum difference between any two elements | 3779 |
380 | Check if a given array contains duplicate elements within k distance from each other | 3776 |
381 | Substring with Concatenation of All Words Leetcode Solution | 3775 |
382 | Ugly Number II LeetCode Solution | 3768 |
383 | Invert Binary Tree LeetCode Solution | 3761 |
384 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3761 |
385 | Sort a stack using a temporary stack | 3759 |
386 | Implementation of Deque using circular array | 3758 |
387 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3753 |
388 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3752 |
389 | Kruskal Algorithm | 3740 |
390 | Invert Binary Tree LeetCode Solution | 3734 |
391 | Recursion | 3731 |
392 | Permutation Sequence LeetCode Solution | 3726 |
393 | Non-decreasing Array LeetCode Solution | 3719 |
394 | Graph Valid Tree LeetCode Solution | 3710 |
395 | Design Browser History LeetCode Solution | 3704 |
396 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3702 |
397 | Sliding Window Technique | 3699 |
398 | Find the subarray with least average | 3698 |
399 | LRU Cache Implementation | 3696 |
400 | Word Search | 3693 |
401 | Kth Smallest Element in a BST Leetcode Solution | 3691 |
402 | Missing Element in Sorted Array LeetCode Solution | 3687 |
403 | Longest subarray not having more than K distinct elements | 3675 |
404 | Longest subsequence such that difference between adjacents is one | 3675 |
405 | Stack Permutations (Check if an array is stack permutation of other) | 3675 |
406 | Toeplitz Matrix | 3674 |
407 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3673 |
408 | Find duplicates in a given array when elements are not limited to a range | 3673 |
409 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3672 |
410 | Find the First and Second Smallest Elements | 3668 |
411 | Partition List Leetcode Solution | 3667 |
412 | Path With Maximum Minimum Value LeetCode Solution | 3659 |
413 | 3 Sum | 3653 |
414 | Number of Islands II LeetCode Solution | 3652 |
415 | Find Top K (or Most Frequent) Numbers in a Stream | 3647 |
416 | Common elements in all rows of a given matrix | 3646 |
417 | K Closest Points to Origin Leetcode Solution | 3643 |
418 | Stone Game II Leetcode | 3641 |
419 | First Circular Tour to Visit all the Petrol Bunks | 3635 |
420 | Max stack | 3631 |
421 | Find Maximum Level sum in Binary Tree | 3629 |
422 | Queries for counts of array elements with values in given range | 3627 |
423 | Number Complement Leetcode Solution | 3626 |
424 | Sequences of given length where every element is more than or equal to twice of previous | 3623 |
425 | Combination Sum IV LeetCode Solution | 3619 |
426 | Number of Smaller Elements on Right Side | 3618 |
427 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3614 |
428 | Integer Break LeetCode Solution | 3614 |
429 | Snakes and Ladders LeetCode Solution | 3612 |
430 | Search a 2D Matrix II Leetcode Solution | 3611 |
431 | Top View of Binary Tree | 3609 |
432 | Minesweeper LeetCode Solution | 3606 |
433 | Find the Peak Element from an Array | 3587 |
434 | LRU Cache Leetcode Solution | 3586 |
435 | Painting Fence Algorithm | 3586 |
436 | Priority Queue using doubly linked list | 3585 |
437 | Nth Catalan Number | 3581 |
438 | Odd Even Linked List Leetcode Solution | 3576 |
439 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3575 |
440 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3567 |
441 | Sort elements by frequency | 3566 |
442 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3559 |
443 | Insert Interval Leetcode Solution | 3559 |
444 | High Five LeetCode Solution | 3553 |
445 | Check if Two given Strings are Isomorphic to each other | 3549 |
446 | Rearrange array such that even positioned are greater than odd | 3545 |
447 | Flood Fill LeetCode | 3540 |
448 | Maximum Consecutive Numbers Present in an Array | 3538 |
449 | Search in a Binary Search Tree Leetcode Solution | 3532 |
450 | Consecutive Characters LeetCode Solution | 3529 |
451 | Shortest Palindrome | 3522 |
452 | Sliding Window Maximum LeetCode Solution | 3512 |
453 | Distance of nearest cell having 1 in a binary matrix | 3509 |
454 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3499 |
455 | 4Sum | 3494 |
456 | Fibonacci Number LeetCode Solution | 3490 |
457 | Expression Contains Redundant Bracket or Not | 3489 |
458 | Move All the Zeros to the End of the Given Array | 3489 |
459 | Tiling Problem | 3488 |
460 | Count items common to both the lists but with different prices | 3473 |
461 | Spiral Matrix III LeetCode Solution | 3471 |
462 | Number of Closed Islands Leetcode Solution | 3470 |
463 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3467 |
464 | Gold Mine Problem | 3466 |
465 | Minimum Absolute Difference in BST Leetcode Solution | 3464 |
466 | Kth Non-repeating Character | 3459 |
467 | Find a Peak Element II LeetCode Solution | 3458 |
468 | Insert into a Binary Search Tree Leetcode Solution | 3457 |
469 | Decompress Run-Length Encoded List Leetcode Solution | 3455 |
470 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3450 |
471 | Integer to English words | 3449 |
472 | Queries for GCD of all numbers of an array except elements in a given range | 3438 |
473 | Restore IP Addresses Leetcode Solution | 3437 |
474 | Evaluate Reverse Polish Notation LeetCode Solution | 3435 |
475 | N queen problem | 3435 |
476 | Minimum Path Sum | 3434 |
477 | Trapping Rain Water LeetCode Solution | 3429 |
478 | Longest Common Prefix using Sorting | 3427 |
479 | Coin Change Problem | 3426 |
480 | Balanced Expression with Replacement | 3424 |
481 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3408 |
482 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3408 |
483 | Interval Tree | 3407 |
484 | Sorting array using Stacks | 3405 |
485 | Sliding Window Median Leetcode Solution | 3404 |
486 | Binary Tree Maximum Path Sum LeetCode Solution | 3402 |
487 | Sort an array according to the order defined by another array | 3394 |
488 | Cells with Odd Values in a Matrix LeetCode Solution | 3388 |
489 | Sort Colors | 3387 |
490 | Majority Element | 3377 |
491 | Best Time to Buy and Sell Stock | 3373 |
492 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3372 |
493 | Find Pythagorean Triplets from Array | 3368 |
494 | Palindrome Substring Queries | 3366 |
495 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3364 |
496 | Number of Days Between Two Dates LeetCode Solution | 3362 |
497 | Reverse a linked list | 3361 |
498 | Priority Queue in C++ | 3357 |
499 | Path Sum II LeetCode Solution | 3344 |
500 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3342 |
501 | The Stock Span Problem | 3341 |
502 | Subset sum problem | 3330 |
503 | Find Median from Data Stream LeetCode Solution | 3328 |
504 | Is Graph Bipartite? LeetCode Solution | 3319 |
505 | Queue using Stacks | 3318 |
506 | Largest rectangular sub-matrix whose sum is 0 | 3312 |
507 | Camelcase Matching Leetcode Solution | 3309 |
508 | Intersection of Two Linked Lists LeetCode Solution | 3303 |
509 | Sieve of Eratosthenes | 3303 |
510 | Design Hit Counter LeetCode Solution | 3301 |
511 | How to Implement Stack Using Priority Queue or Heap? | 3301 |
512 | Find the first Repeating Number in a Given Array | 3300 |
513 | Custom Sort String Leetcode Solution | 3295 |
514 | Kth ancestor of a node in binary tree | 3291 |
515 | Pancake Sorting Problem | 3290 |
516 | Different Ways to Add Parentheses Leetcode Solution | 3289 |
517 | Fibonacci numbers | 3285 |
518 | Analyze User Website Visit Pattern LeetCode Solution | 3278 |
519 | Multiplication of Two Matrices | 3278 |
520 | Divide Chocolate LeetCode Solution | 3276 |
521 | Longest Increasing Path in a Matrix LeetCode Solution | 3274 |
522 | Shortest Completing Word Leetcode Solution | 3271 |
523 | Scramble String LeetCode Solution | 3261 |
524 | Path Crossing Leetcode Solution | 3261 |
525 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3256 |
526 | Count Submatrices With All Ones LeetCode Solution | 3250 |
527 | Perfect Squares LeetCode Solution | 3250 |
528 | Count subarrays having total distinct elements same as original array | 3248 |
529 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3246 |
530 | Group Anagrams | 3245 |
531 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3242 |
532 | Find a Fixed Point in a Given Array | 3242 |
533 | Monotonic Array Leetcode Solution | 3236 |
534 | Queue based approach for first non-repeating character in a stream | 3227 |
535 | Detect a loop in the Linked List | 3226 |
536 | Implement Trie (Prefix Tree) Leetcode Solution | 3221 |
537 | Shifting Letters LeetCode Solution | 3204 |
538 | Number of Distinct Islands Leetcode Solution | 3203 |
539 | Merge Overlapping Intervals | 3203 |
540 | Minimum Height Trees | 3202 |
541 | Reorder Data in Log Files LeetCode Solution | 3198 |
542 | Construction of Longest Increasing Subsequence (N log N) | 3196 |
543 | How to Create Mergable Stack? | 3193 |
544 | Nearest Exit from Entrance in Maze LeetCode Solution | 3187 |
545 | Valid Boomerang Leetcode Solution | 3187 |
546 | Generate all Binary Strings from Given Pattern | 3187 |
547 | Champagne Tower LeetCode Solution | 3182 |
548 | Longest Common Prefix using Divide and Conquer | 3179 |
549 | Race Car LeetCode Solution | 3169 |
550 | Find the Lost Element From a Duplicated Array | 3168 |
551 | Sort a stack using recursion | 3167 |
552 | Insert Node in the Sorted Linked List | 3167 |
553 | Decode Ways | 3166 |
554 | Maximum Sum of Non Consecutive Elements | 3161 |
555 | Sliding Window Maximum | 3160 |
556 | Binary Tree zigzag level order Traversal | 3157 |
557 | Implement strStr() LeetCode Solution | 3154 |
558 | Maximum Element in an Array which is Increasing and then Decreasing | 3152 |
559 | Find if an Expression has Duplicate Parenthesis or Not | 3147 |
560 | First missing positive | 3145 |
561 | Most Stones Removed with Same Row or Column LeetCode Solution | 3143 |
562 | Recover Binary Search Tree | 3136 |
563 | Morris Traversal | 3135 |
564 | Number of Equivalent Domino Pairs Leetcode Solution | 3134 |
565 | Palindrome Permutation LeetCode Solution | 3133 |
566 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3132 |
567 | Build an Array With Stack Operations Leetcode Solution | 3132 |
568 | LCS (Longest Common Subsequence) of three strings | 3127 |
569 | Count Possible Triangles | 3127 |
570 | Find a Sorted Subsequence of size 3 | 3124 |
571 | Smallest Good Base | 3121 |
572 | Find maximum length Snake sequence | 3120 |
573 | Merge Two Binary Trees LeetCode Solution | 3116 |
574 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3115 |
575 | Decode String | 3112 |
576 | Rectangle Overlap LeetCode Solution | 3111 |
577 | Design Skiplist LeetCode Solution | 3104 |
578 | Letter Case Permutation | 3100 |
579 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3096 |
580 | Minimum Bracket Reversals | 3096 |
581 | Contiguous Array LeetCode Solution | 3093 |
582 | Palindrome Partitioning Leetcode Solution | 3091 |
583 | Minimum Height Trees LeetCode Solution | 3090 |
584 | Recover Binary Search Tree Leetcode Solution | 3089 |
585 | Guess Number Higher or Lower II | 3087 |
586 | Distance Between Bus Stops Leetcode Solution | 3085 |
587 | Print all Palindromic Partitions of a String | 3084 |
588 | Largest Subarray with Equal Number of 0’s and 1’s | 3074 |
589 | Minimum number of jumps to reach end | 3071 |
590 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3070 |
591 | All Possible Full Binary Trees LeetCode Solution | 3069 |
592 | Longest Repeated Subsequence | 3067 |
593 | Find the Town Judge LeetCode Solution | 3063 |
594 | Maximum Depth of N-ary Tree Leetcode Solution | 3063 |
595 | Design a Stack With Increment Operation Leetcode Solution | 3059 |
596 | K-th Distinct Element in an Array | 3052 |
597 | Maximum Length of Chain Pairs | 3052 |
598 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3050 |
599 | Reorder an Array According to the Given Indexes | 3046 |
600 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3041 |
601 | Implement Two Stacks in an Array | 3032 |
602 | Check for Balanced Parentheses in an Expression | 3025 |
603 | The Maze III LeetCode Solution | 3023 |
604 | Sort a String According to Another String | 3018 |
605 | Subarrays with K Different Integers Leetcode Solution | 3016 |
606 | Mean of Array After Removing Some Elements Leetcode Solution | 3014 |
607 | Valid Parentheses Leetcode Solution | 3013 |
608 | Rearrange Spaces Between Words Leetcode Solution | 3013 |
609 | Maximize Elements Using Another Array | 3013 |
610 | Jump Game IV LeetCode Solution | 3009 |
611 | Maximum Score After Splitting a String Leetcode Solution | 3006 |
612 | Maximum sum rectangle in a 2D matrix | 2999 |
613 | Count pair with Given Sum | 2992 |
614 | Contains Duplicate | 2979 |
615 | Minimum Jumps to Reach Home LeetCode Solution | 2964 |
616 | Word Break | 2960 |
617 | Convert BST to Min Heap | 2959 |
618 | Perform String Shifts Leetcode | 2959 |
619 | Valid Sudoku | 2956 |
620 | Edit Distance LeetCode Solution | 2946 |
621 | Find the First Circular Tour that visits all the Petrol Pumps | 2946 |
622 | Palindrome Permutations of a String | 2943 |
623 | Possible Bipartition LeetCode Solution | 2941 |
624 | Iterative Method to find Height of Binary Tree | 2941 |
625 | Find the Minimum Element in a Sorted and Rotated Array | 2928 |
626 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2927 |
627 | Heap Sort | 2926 |
628 | Reach a Number LeetCode Solution | 2922 |
629 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2913 |
630 | Best Meeting Point LeetCode Solution | 2906 |
631 | Find Largest Value in Each Tree Row LeetCode Solution | 2905 |
632 | Merge Two Balanced Binary Search Trees | 2904 |
633 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2902 |
634 | Count Sub Islands LeetCode Solution | 2894 |
635 | Palindromic Substrings Leetcode Solution | 2887 |
636 | Number of palindromic paths in a matrix | 2885 |
637 | Merge Overlapping Intervals II | 2883 |
638 | Sorted Linked List to Balanced BST | 2881 |
639 | Brick Wall LeetCode Solution | 2875 |
640 | Find the Subarray of given length with Least Average | 2872 |
641 | Segregate 0s and 1s in an Array | 2871 |
642 | My Calendar I LeetCode Solution | 2870 |
643 | Palindrome Permutation | 2870 |
644 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2869 |
645 | All Unique Triplets that Sum up to a Given Value | 2869 |
646 | Caesar Cipher | 2863 |
647 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2856 |
648 | Construct BST from given Preorder Traversal | 2854 |
649 | Swapping Nodes in a Linked List Leetcode Solution | 2852 |
650 | Find Median from data Stream | 2847 |
651 | Level order Traversal in Spiral Form | 2843 |
652 | Huffman Coding | 2841 |
653 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2828 |
654 | Pair with given product | 2828 |
655 | Partition Problem | 2827 |
656 | Maximize Sum of Array after K Negations Leetcode Solution | 2817 |
657 | Word Pattern | 2816 |
658 | Merge K Sorted Arrays and Print Sorted Output | 2813 |
659 | Find all triplets with zero sum | 2805 |
660 | Validate Binary Search Tree | 2800 |
661 | Print Fibonacci sequence using 2 variables | 2781 |
662 | Find whether a subarray is in form of a mountain or not | 2781 |
663 | Count Distinct Elements in Every Window of Size K | 2781 |
664 | Maximum Frequency Stack Leetcode Solution | 2776 |
665 | Bubble sort using two Stacks | 2772 |
666 | Count Good Nodes in Binary Tree LeetCode Solution | 2771 |
667 | Detect Capital Leetcode Solution | 2771 |
668 | Minimum time required to rot all oranges | 2770 |
669 | Queries on Probability of Even or Odd Number in given Ranges | 2768 |
670 | Add two numbers | 2768 |
671 | Isomorphic Strings LeetCode Solution | 2767 |
672 | Find all pairs (a, b) in an array such that a % b = k | 2767 |
673 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2760 |
674 | Range Sum Query 2D – Immutable LeetCode Solution | 2758 |
675 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2757 |
676 | Convert Sorted List to Binary Search Tree | 2756 |
677 | Counting Bits | 2755 |
678 | Longest Subarray Having Count of 1s One More than Count of 0s | 2754 |
679 | How to Efficiently Implement k Stacks in a Single Array? | 2752 |
680 | Alien Dictionary | 2751 |
681 | Binary Tree Right Side View LeetCode Solution | 2746 |
682 | Largest Sum Contiguous Subarray | 2744 |
683 | Find four elements that sum to a given value (Hashmap) | 2743 |
684 | Split Array Into Consecutive Subsequences | 2742 |
685 | Length of Longest Fibonacci Subsequence | 2738 |
686 | Sort 0s 1s and 2s in an Array | 2738 |
687 | Binary Tree to Binary Search Tree Conversion | 2736 |
688 | Remove brackets from an algebraic string containing + and – operators | 2727 |
689 | Rotate Array | 2723 |
690 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2722 |
691 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 2722 |
692 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2720 |
693 | Partition to K Equal Sum Subsets Leetcode Solution | 2714 |
694 | Print all subarrays with 0 sum | 2709 |
695 | Breadth First Search (BFS) for a Graph | 2706 |
696 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2703 |
697 | Merge Two Sorted Lists Leetcode | 2697 |
698 | Count ways to reach the nth stair using step 1, 2 or 3 | 2696 |
699 | Populating Next Right Pointers in Each Node Leetcode Solution | 2691 |
700 | Populating Next Right Pointers in Each Node | 2690 |
701 | Remove Palindromic Subsequences Leetcode Solution | 2689 |
702 | Find pairs with given sum such that elements of pair are in different rows | 2679 |
703 | String comparison containing wildcards | 2679 |
704 | Partition Equal Subset Sum | 2674 |
705 | Arithmetic Slices II – Subsequence LeetCode Solution | 2673 |
706 | Web Crawler LeetCode Solution | 2662 |
707 | Happy Number | 2662 |
708 | Difference Array | Range update query in O(1) | 2661 |
709 | Remove duplicates from sorted array | 2657 |
710 | Topological Sorting | 2656 |
711 | Concatenation of Array LeetCode Solution | 2648 |
712 | Minimum Sum Path in a Triangle | 2648 |
713 | Queue Reconstruction by Height | 2648 |
714 | Elements Appear more than N/K times in Array | 2646 |
715 | Inorder Successor of a node in Binary Tree | 2644 |
716 | Check if a Linked list of Strings form a Palindrome | 2636 |
717 | Find All Pairs With a Given Difference | 2631 |
718 | Contiguous Array Leetcode | 2628 |
719 | Reverse Nodes in K-Group | 2627 |
720 | Root to Leaf path with target sum Leetcode Solutions | 2620 |
721 | Find Duplicate Subtrees | 2619 |
722 | Increasing Subsequence of Length three with Maximum Product | 2608 |
723 | Check if String Follows Order of Characters by a Pattern or not | 2606 |
724 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2596 |
725 | Swap Kth Node from beginning with Kth Node from End | 2591 |
726 | Longest Common Prefix Using Binary Search II | 2584 |
727 | Score of Parenthesis LeetCode Solution | 2575 |
728 | Maximum Product Subarray II | 2575 |
729 | Climbing stairs | 2574 |
730 | Container with Most Water | 2573 |
731 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2571 |
732 | Finding K closest element | 2568 |
733 | Count Minimum Steps to Get the given Array | 2568 |
734 | Maximum Distance in Array | 2565 |
735 | Symmetric Tree | 2560 |
736 | Pancake Sorting | 2559 |
737 | Given a binary tree, how do you remove all the half nodes? | 2558 |
738 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2555 |
739 | Parallel Courses II LeetCode Solution | 2549 |
740 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2547 |
741 | Sum Root to Leaf Numbers LeetCode Solution | 2546 |
742 | An Interesting Method to generate Binary Numbers from 1 to n | 2540 |
743 | Delete Nodes and Return Forest Leetcode Solution | 2538 |
744 | Check if all levels of two Binary Tree are anagrams or not | 2537 |
745 | Deletion in a Binary Tree | 2533 |
746 | Longest Increasing Subsequence | 2532 |
747 | Construct Binary Tree from given Parent Array representation | 2529 |
748 | Find the first repeating element in an array of integers | 2526 |
749 | Substring With Concatenation Of All Words | 2524 |
750 | Delete Nth node from the end of the given linked list | 2521 |
751 | Count pairs from two linked lists whose sum is equal to a given value | 2520 |
752 | Boundary Traversal of binary tree | 2517 |
753 | Union and Intersection of two Linked Lists | 2513 |
754 | MiniMax Algorithm | 2513 |
755 | Kill Process LeetCode Solution | 2510 |
756 | Level order traversal using two Queues | 2505 |
757 | Sort Array by Increasing Frequency Leetcode Solution | 2504 |
758 | Level of Each node in a Tree from source node | 2502 |
759 | Iterative Depth First Traversal of Graph | 2500 |
760 | Linked List Cycle | 2499 |
761 | BFS vs DFS for Binary Tree | 2499 |
762 | Find K Closest Elements LeetCode Solution | 2495 |
763 | Minimum Size Subarray Sum | 2494 |
764 | Merge K Sorted Linked Lists | 2493 |
765 | Iterative Preorder Traversal | 2485 |
766 | Non-overlapping sum of two sets | 2485 |
767 | Longest Common Prefix Word by Word Matching | 2481 |
768 | Valid Anagrams | 2479 |
769 | Rearrange an Array Such that arr[i] is equal to i | 2478 |
770 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2476 |
771 | Find Maximum of Minimum for Every Window Size in a Given Array | 2476 |
772 | Nested List Weight Sum II LeetCode Solution | 2464 |
773 | Find the Difference Leetcode Solution | 2461 |
774 | New 21 Game | 2458 |
775 | Matrix Chain Multiplication | 2457 |
776 | Merging Intervals | 2455 |
777 | Verify Preorder Serialization of a Binary Tree | 2451 |
778 | Remove Duplicates from Sorted List II | 2450 |
779 | Check if a queue can be sorted into another queue using a stack | 2448 |
780 | Super Ugly Number | 2448 |
781 | Maximum size subarray sum equals k | 2442 |
782 | Friends Of Appropriate Ages LeetCode Solution | 2441 |
783 | Reservoir Sampling | 2437 |
784 | Maximum Product Subarray | 2434 |
785 | Flatten Binary Tree to Linked List LeetCode Solution | 2430 |
786 | Range LCM Queries | 2429 |
787 | Smallest Range II Leetcode Solution | 2422 |
788 | Palindrome Partitioning | 2419 |
789 | Reorder Array Using Given Indexes | 2417 |
790 | Print a Binary Tree in Vertical Order | 2414 |
791 | Balanced Binary Tree | 2413 |
792 | K maximum sums of overlapping contiguous sub-arrays | 2411 |
793 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2404 |
794 | Missing Number | 2401 |
795 | Check if Two Expressions With Brackets are Same | 2396 |
796 | Vertical sum in a given binary tree | 2395 |
797 | Valid Triangle Number LeetCode Solution | 2394 |
798 | Defanging an IP Address LeetCode Solution | 2386 |
799 | Peak Index in a Mountain Array LeetCode Solution | 2385 |
800 | Check if any two intervals overlap among a given set of intervals | 2385 |
801 | Maximum difference between two elements such as larger element comes after smaller | 2383 |
802 | Create Maximum Number | 2382 |
803 | Minimum insertions to form a palindrome with permutations allowed | 2376 |
804 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2367 |
805 | Minimum Distance Between BST Nodes Leetcode Solution | 2366 |
806 | Find subarray with given sum (Handles Negative Numbers) | 2360 |
807 | The Painter’s Partition Problem | 2359 |
808 | Lowest Common Ancestor | 2359 |
809 | Unique Binary Search Trees LeetCode Solution | 2356 |
810 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2356 |
811 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2355 |
812 | Valid Triangle Number LeetCode Solution | 2350 |
813 | Count number of triplets with product equal to given number | 2349 |
814 | Number Of Longest Increasing Subsequence | 2349 |
815 | Employee Importance LeetCode Solution | 2348 |
816 | Sorting a K Sorted Array | 2346 |
817 | Flatten 2D Vector LeetCode Solution | 2344 |
818 | Largest Submatrix With Rearrangements LeetCode Solution | 2344 |
819 | Find K Length Subarray of Maximum Average | 2332 |
820 | Check Completeness of a Binary Tree LeetCode Solution | 2330 |
821 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2329 |
822 | Hamming Distance | 2327 |
823 | Array Nesting Leetcode Solution | 2326 |
824 | Iterative Postorder Traversal Using Two Stacks | 2326 |
825 | Closest Leaf in a Binary Tree LeetCode Solution | 2325 |
826 | Check if two nodes are on the same path in a Tree | 2324 |
827 | Find Peak Element | 2322 |
828 | Merging Two Sorted Arrays | 2322 |
829 | Third Maximum Number Leetcode Solution | 2319 |
830 | Find Common Characters Leetcode Solution | 2316 |
831 | Find distance between two nodes of a Binary Tree | 2311 |
832 | First Bad Version | 2311 |
833 | Print All Distinct Elements of a Given Integer Array | 2308 |
834 | Valid Parenthesis String | 2306 |
835 | Tree Traversal (Preorder, Inorder & Postorder) | 2302 |
836 | Find Element Using Binary Search in Sorted Array | 2302 |
837 | Products of ranges in an array | 2298 |
838 | Maximum subsequence sum such that no three are consecutive | 2296 |
839 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2294 |
840 | Find Smallest Range Containing Elements from k Lists | 2294 |
841 | Diagonal Traversal of Binary Tree | 2294 |
842 | Largest BST Subtree LeetCode Solution | 2292 |
843 | Newman-Conway Sequence | 2292 |
844 | Print all triplets in sorted array that form AP | 2288 |
845 | Distinct Subsequences | 2287 |
846 | Find Sum of all unique sub-array sum for a given array | 2283 |
847 | Sort Elements by Frequency II | 2283 |
848 | Arrange given numbers to form the biggest number | 2282 |
849 | Bottom View of a Binary Tree | 2279 |
850 | Lower Case To Upper Case | 2277 |
851 | Maximum number of segments of lengths a, b and c | 2275 |
852 | Longest Palindromic Subsequence | 2273 |
853 | Largest divisible pairs subset | 2270 |
854 | Range Sum Query using Sparse Table | 2261 |
855 | Stone Game IV LeetCode Solution | 2260 |
856 | Largest subarray with equal number of 0s and 1s | 2257 |
857 | Path Sum | 2256 |
858 | Number of siblings of a given Node in n-ary Tree | 2255 |
859 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2254 |
860 | Print Right View of a Binary Tree | 2254 |
861 | Stone Game IV LeetCode Solution | 2252 |
862 | Find Nth Node | 2246 |
863 | Segment Tree | 2240 |
864 | Contiguous Array | 2234 |
865 | Four Elements that Sum to Given | 2233 |
866 | Find the largest multiple of 3 | 2232 |
867 | Shuffle an Array | 2228 |
868 | Binary array after M range toggle operations | 2227 |
869 | Median of Two Sorted Arrays | 2226 |
870 | Merge Two Sorted Arrays | 2226 |
871 | Longest Bitonic Subsequence | 2225 |
872 | Trapping Rain Water II LeetCode Solution | 2224 |
873 | Isomorphic Strings | 2222 |
874 | Count and Say | 2220 |
875 | Unique Binary Search Trees | 2215 |
876 | Subset Sum Problem in O(sum) space | 2207 |
877 | Permutations of a Given String Using STL | 2201 |
878 | Find Largest d in Array such that a + b + c = d | 2192 |
879 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2190 |
880 | Encoded String With Shortest Length LeetCode Solution | 2186 |
881 | Red-Black Tree Introduction | 2186 |
882 | Maximum Product Subarray | 2186 |
883 | Valid Number | 2184 |
884 | Infix to Postfix | 2184 |
885 | Maximum Sum of 3 Non-Overlapping Subarrays | 2182 |
886 | Find unique character in a string | 2181 |
887 | Averages of Levels in Binary Tree | 2178 |
888 | Next Greater Element in an Array | 2177 |
889 | Maximum Population Year LeetCode Solution | 2171 |
890 | Transform a BST to Greater sum Tree | 2170 |
891 | Friends Pairing Problem | 2169 |
892 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2169 |
893 | Height of a generic tree from parent array | 2162 |
894 | Closest Binary Search Tree Value Leetcode Solution | 2161 |
895 | Valid Perfect Square LeetCode Solution | 2156 |
896 | Count Primes in Ranges | 2156 |
897 | Write a function to get the intersection point of two Linked Lists | 2155 |
898 | Orderly Queue LeetCode Solution | 2152 |
899 | Insert Delete GetRandom | 2138 |
900 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2137 |
901 | Binary Search Tree Delete Operation | 2137 |
902 | The Number of Weak Characters in the Game LeetCode Solution | 2134 |
903 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2133 |
904 | Bold Words in String LeetCode Solution | 2126 |
905 | Shuffle a given Array | 2125 |
906 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2121 |
907 | Serialize and Deserialize Binary Tree | 2118 |
908 | Sentence Screen Fitting LeetCode Solution | 2114 |
909 | Minimum sum of squares of character counts in a given string after removing k characters | 2108 |
910 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2103 |
911 | Edit Distance | 2100 |
912 | Diameter of N-Ary Tree LeetCode Solution | 2096 |
913 | Swap Nodes In Pairs | 2095 |
914 | Reorganize String | 2095 |
915 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2090 |
916 | Find Minimum In Rotated Sorted Array | 2088 |
917 | Convert BST into a Min-Heap without using array | 2087 |
918 | Lowest Common Ancestor in Binary Search Tree | 2082 |
919 | Integer to Roman | 2082 |
920 | Next greater element | 2080 |
921 | Maximum Product Subarray | 2076 |
922 | K’th Largest Element in BST when modification to BST is not allowed | 2062 |
923 | Next Greater Element II LeetCode Solution | 2059 |
924 | Find the smallest binary digit multiple of given number | 2052 |
925 | Total Hamming Distance LeetCode Solution | 2051 |
926 | Advantages of BST over Hash Table | 2051 |
927 | Array Queries for multiply replacements and product | 2045 |
928 | K’th Largest element in BST using constant extra space | 2045 |
929 | Queries on XOR of greatest odd divisor of the range | 2032 |
930 | Best Meeting Point LeetCode Solution | 2031 |
931 | Koko Eating Bananas LeetCode Solution | 2031 |
932 | Write Code to Determine if Two Trees are Identical | 2031 |
933 | Serialize and Deserialize Binary Tree LeetCode Solution | 2025 |
934 | Longest Increasing Consecutive Subsequence | 2020 |
935 | Constant time range add operation on an array | 2019 |
936 | Check if an Array is Stack Sortable | 2019 |
937 | Print n terms of Newman-Conway Sequence | 2018 |
938 | Level Order Traversal of Binary Tree | 2015 |
939 | Number of Orders in the Backlog Leetcode Solution | 2011 |
940 | Reverse a Path in BST using Queue | 2004 |
941 | Image Overlap LeetCode Solution | 2001 |
942 | Range Queries for Longest Correct Bracket Subsequence | 2001 |
943 | Power of Two | 1999 |
944 | Maximum Sum Increasing Subsequence | 1998 |
945 | Clone a Binary Tree with Random Pointers | 1997 |
946 | Moving Stones Until Consecutive Leetcode Solution | 1994 |
947 | Greatest Sum Divisible by Three LeetCode Solution | 1993 |
948 | Design Underground System Leetcode Solution | 1987 |
949 | Check if X can give change to every person in the Queue | 1987 |
950 | Find minimum number of merge operations to make an array palindrome | 1982 |
951 | A program to check if a binary tree is BST or not | 1979 |
952 | Insert into a Sorted Circular Linked List LeetCode Solution | 1977 |
953 | Numbers with prime frequencies greater than or equal to k | 1977 |
954 | Valid Tic-Tac-Toe State LeetCode Solution | 1975 |
955 | Find the node with minimum value in a Binary Search Tree | 1974 |
956 | Count and Toggle Queries on a Binary Array | 1969 |
957 | Form minimum number from given sequence | 1967 |
958 | Design Add and Search Words Data Structure LeetCode Solution | 1965 |
959 | Check if each internal node of a BST has exactly one child | 1962 |
960 | Print Next Greater Number of Q queries | 1962 |
961 | Maximum Array from Two given Arrays Keeping Order Same | 1959 |
962 | Closest Binary Search Tree Value II LeetCode Solution | 1956 |
963 | Factorial Trailing Zeroes LeetCode Solution | 1946 |
964 | Check for Palindrome after every character replacement Query | 1942 |
965 | Count the Pairs at Same Distance as in English Alphabets | 1942 |
966 | Number of elements less than or equal to a given number in a given subarray | 1939 |
967 | Merge two BSTs with limited extra space | 1938 |
968 | Collect maximum points in a grid using two traversals | 1934 |
969 | Queries for Decimal Values of Subarrays of a Binary Array | 1933 |
970 | Largest Plus Sign Leetcode Solution | 1930 |
971 | Graph Cloning | 1923 |
972 | Merge Sort | 1922 |
973 | Maximum difference between first and last indexes of an element in array | 1921 |
974 | Merge Sorted Array | 1917 |
975 | Group Shifted Strings Leetcode Solution | 1916 |
976 | Dividing Array into Pairs With Sum Divisible by K | 1907 |
977 | Priority Queue | 1893 |
978 | Longest Substring Without Repeating Characters Leetcode Solution | 1887 |
979 | Count even length binary sequences with same sum of first and second half bits | 1886 |
980 | Print modified array after multiple array range increment operations | 1882 |
981 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1879 |
982 | Cutting a Rod | 1868 |
983 | Kth Smallest Element in a BST | 1865 |
984 | Form Minimum Number From Given Sequence | 1857 |
985 | Swim in Rising Water LeetCode Solution | 1856 |
986 | Excel Sheet Column Number LeetCode Solution | 1856 |
987 | Count Pairs Whose Products Exist in Array | 1849 |
988 | Find maximum average subarray of k length | 1847 |
989 | Guess The Word | 1844 |
990 | Minimum Moves to Equal Array Elements LeetCode Solution | 1840 |
991 | Unique Paths II | 1839 |
992 | Excel Sheet Column Title LeetCode Solution | 1838 |
993 | Binary Search Tree | 1834 |
994 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1828 |
995 | Print all Possible Ways to Break a String in Bracket Form | 1824 |
996 | How to print maximum number of A’s using given four keys | 1819 |
997 | Palindrome Partitioning | 1819 |
998 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1816 |
999 | Check given array of size n can represent BST of n levels or not | 1814 |
1000 | Binary Search Tree Search and Insertion | 1809 |
1001 | K Empty Slots | 1809 |
1002 | Longest Common Prefix using Character by Character Matching | 1803 |
1003 | Sorted Array to Balanced BST | 1794 |
1004 | Regular Expression Matching | 1791 |
1005 | Sum of Left Leaves LeetCode Solution | 1789 |
1006 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1778 |
1007 | Find postorder traversal of BST from preorder traversal | 1774 |
1008 | Construct Complete Binary Tree from its Linked List Representation | 1752 |
1009 | Maximum Depth Of Binary Tree | 1734 |
1010 | Queries for Number of Distinct Elements in a Subarray | 1733 |
1011 | Maximum weight transformation of a given string | 1731 |
1012 | Find the Town Judge LeetCode Solution | 1724 |
1013 | Binary Tree to Binary Search Tree Conversion using STL set | 1717 |
1014 | Iterative method to find ancestors of a given binary tree | 1716 |
1015 | Symmetric Tree LeetCode Solution Leetcode Solution | 1706 |
1016 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1698 |
1017 | Data Structure Designing | 1697 |
1018 | Random Pick Index LeetCode Solution | 1687 |
1019 | Search in Sorted Rotated Array | 1677 |
1020 | Find Maximum Depth of Nested Parenthesis in a String | 1669 |
1021 | Search an Element in Sorted Rotated Array | 1652 |
1022 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1620 |
1023 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1614 |
1024 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1607 |
1025 | Next Greater Element I Leetcode Solution | 1568 |
1026 | Print Maximum Length Chain of Pairs | 1563 |
1027 | Maximum Binary Tree | 1546 |
1028 | Flatten Binary Tree to Linked List LeetCode Solution | 1529 |
1029 | Find k-th smallest element in BST (Order Statistics in BST) | 1528 |
1030 | Peeking Iterator LeetCode Solution | 1492 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1471 |