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 | 42379 |
2 | Maximum occurring character in a string | 19339 |
3 | Plus One Leetcode Solution | 18612 |
4 | Valid Parentheses LeetCode Solution | 18556 |
5 | 3Sum Leetcode Solution | 16521 |
6 | First Repeating Element | 14748 |
7 | Single Number Leetcode Solution | 14477 |
8 | Merge Sorted Arrays Leetcode Solution | 14418 |
9 | Count Primes Leetcode Solutions | 14046 |
10 | Pow(x, n) Leetcode Solution | 13713 |
11 | Sqrt(x) Leetcode Solution | 13514 |
12 | Meeting Rooms II LeetCode Solution | 12685 |
13 | Concatenation of Array LeetCode Solution | 12353 |
14 | Roman to Integer Leetcode Solution | 11566 |
15 | Search Insert Position Leetcode Solution | 11360 |
16 | Valid Palindrome Leetcode Solution | 11350 |
17 | Contains Duplicate II Leetcode Solution | 11327 |
18 | Palindrome Number LeetCode Solution | 11199 |
19 | Reverse Vowels of a String Leetcode Solution | 10794 |
20 | Jump Game Leetcode Solution | 10769 |
21 | Intersection of Two Arrays II Leetcode Solution | 10646 |
22 | Number of Good Pairs Leetcode Solution | 10552 |
23 | Remove Duplicates from Sorted Array Leetcode Solution | 10493 |
24 | Spiral Matrix LeetCode Solution | 10449 |
25 | Longest Substring Without Repeating Characters LeetCode Solution | 10421 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10396 |
27 | House Robber Leetcode Solution | 10331 |
28 | Add Binary Leetcode Solution | 10224 |
29 | Maximum Subarray Leetcode Solution | 9869 |
30 | Find the Maximum Repeating Number in Array | 9707 |
31 | Number Of 1 bits | 9556 |
32 | Text Justification LeetCode Solution | 9544 |
33 | Jewels and Stones Leetcode Solution | 9399 |
34 | Power of Two Leetcode Solution | 9248 |
35 | Move Zeroes LeetCode Solution | 9239 |
36 | Longest Palindromic Substring LeetCode Solution | 9237 |
37 | Min Stack Leetcode Solution | 9212 |
38 | Permutations Leetcode Solution | 9093 |
39 | Shuffle String Leetcode Solution | 8979 |
40 | Word Search Leetcode Solution | 8874 |
41 | Third Maximum Number Leetcode Solution | 8865 |
42 | Find All Numbers Disappeared in an Array Leetcode Solution | 8863 |
43 | Next Permutation Leetcode Solution | 8842 |
44 | Daily Temperatures Leetcode Solution | 8824 |
45 | Median of Two Sorted Arrays LeetCode Solution | 8756 |
46 | Number of Islands LeetCode Solution | 8708 |
47 | Search in Rotated Sorted Array Leetcode Solution | 8657 |
48 | Kth Missing Positive Number Leetcode Solution | 8640 |
49 | Maximum Profit in Job Scheduling Leetcode Solution | 8622 |
50 | Longest Common Prefix Leetcode Solution | 8589 |
51 | Next Greater Element I Leetcode Solution | 8553 |
52 | Evaluation of Postfix Expression | 8483 |
53 | Frog Jump Leetcode Solution | 8470 |
54 | Find Minimum Distance Between Two Numbers in an Array | 8331 |
55 | Running Sum of 1d Array Leetcode Solution | 8236 |
56 | Rotate Image LeetCode Solution | 8176 |
57 | Multiply Strings Leetcode Solution | 8159 |
58 | Valid Anagram Leetcode Solution | 8148 |
59 | Combination Sum Leetcode Solution | 8112 |
60 | Can Place Flowers LeetCode Solution | 8102 |
61 | Shuffle the Array Leetcode Solution | 8096 |
62 | 3Sum Closest LeetCode Solution | 8058 |
63 | Bulb Switcher LeetCode Solution | 8048 |
64 | House Robber II Leetcode Solution | 8030 |
65 | Count and Say Leetcode Solution | 8008 |
66 | Excel Sheet Column Title Leetcode Solution | 7774 |
67 | Koko Eating Bananas Leetcode Solution | 7745 |
68 | Isomorphic Strings Leetcode Solution | 7739 |
69 | Subarray and Subsequence | 7733 |
70 | Happy Number Leetcode Solution | 7710 |
71 | Count Pairs With Given Sum | 7637 |
72 | Missing Number Leetcode Solution | 7630 |
73 | Product of array except self | 7628 |
74 | Integer to Roman Leetcode Solution | 7618 |
75 | Majority Element Leetcode Solution | 7591 |
76 | Strobogrammatic Number LeetCode Solution | 7568 |
77 | Best Time to Buy and Sell Stock LeetCode Solution | 7516 |
78 | Rotate String LeetCode Solution | 7511 |
79 | Reverse String Without Temporary Variable | 7490 |
80 | Candy LeetCode Solution | 7417 |
81 | Find the Difference Leetcode Solution | 7356 |
82 | Is Subsequence Leetcode Solution | 7350 |
83 | Largest Number Leetcode Solution | 7236 |
84 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7231 |
85 | Find Common Characters Leetcode Solution | 7230 |
86 | String to Integer (atoi) LeetCode Solution | 7161 |
87 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7153 |
88 | Find the Duplicate Number LeetCode Solution | 7144 |
89 | Binary Search LeetCode Solution | 7105 |
90 | Expression Evaluation | 7102 |
91 | A Product Array Puzzle | 7092 |
92 | Set Matrix Zeroes | 7076 |
93 | Summary Ranges Leetcode Solution | 7022 |
94 | Subset Leetcode | 7008 |
95 | Sort Characters By Frequency LeetCode Solution | 6925 |
96 | Find the Town Judge Leetcode Solution | 6922 |
97 | Word Pattern LeetCode Solution | 6898 |
98 | Rabin Karp Algorithm | 6896 |
99 | Balanced Binary Tree Leetcode Solution | 6893 |
100 | Unique Paths Leetcode Solution | 6845 |
101 | Arranging Coins Leetcode Solution | 6807 |
102 | Find the Winner of the Circular Game LeetCode Solution | 6785 |
103 | String Compression LeetCode Solution | 6751 |
104 | Rearrange Positive and Negative Numbers Alternatively in Array | 6728 |
105 | Repeated Substring Pattern LeetCode Solution | 6664 |
106 | Asteroid Collision LeetCode Solution | 6633 |
107 | Smallest window in a string containing all characters of another string | 6622 |
108 | Group Anagrams LeetCode Solution | 6602 |
109 | Sort Colors LeetCode Solution | 6583 |
110 | Best Time to Buy and Sell Stock II Leetcode Solution | 6449 |
111 | Sort Array By Parity LeetCode Solution | 6447 |
112 | Page Replacement Algorithms in Operating Systems | 6423 |
113 | Zigzag Conversion LeetCode Solution | 6400 |
114 | Postfix to Infix Conversion | 6396 |
115 | Divide Two Integers Leetcode Solution | 6340 |
116 | Valid Palindrome II Leetcode Solution | 6333 |
117 | Sum of minimum and maximum elements of all subarrays of size k | 6331 |
118 | Matrix Chain Multiplication using Dynamic Programming | 6315 |
119 | Generate Parentheses Leetcode Solution | 6253 |
120 | Product of Array Except Self LeetCode Solution | 6253 |
121 | Kth largest element in an Array Leetcode Solutions | 6238 |
122 | Reverse Integer Leetcode Solution | 6229 |
123 | Assign Cookies Leetcode Solution | 6220 |
124 | Remove Duplicates from Sorted Array II Leetcode Solution | 6170 |
125 | Bus Routes Leetcode Solution | 6125 |
126 | Merge Two Sorted Lists Leetcode Solutions | 6124 |
127 | Pascal Triangle Leetcode | 6120 |
128 | Number of Provinces Leetcode Solution | 6114 |
129 | Length of Last Word Leetcode Solution | 6094 |
130 | H-Index Leetcode Solution | 6084 |
131 | Linked List Cycle II LeetCode Solution | 6064 |
132 | Decode String Leetcode Solution | 6060 |
133 | Convert array into Zig-Zag fashion | 6013 |
134 | Minimum Steps to reach target by a Knight | 6007 |
135 | Defanging an IP Address Leetcode Solution | 5994 |
136 | Optimal Account Balancing LeetCode Solution | 5971 |
137 | Employee Free Time LeetCode Solution | 5967 |
138 | Minimum Cost For Tickets Leetcode Solution | 5922 |
139 | First element occurring k times in an array | 5887 |
140 | Find the Row with Maximum Number of 1’s | 5856 |
141 | Build Array From Permutation Leetcode Solution | 5842 |
142 | Pascal’s Triangle II Leetcode Solution | 5840 |
143 | Prefix to Infix Conversion | 5820 |
144 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 5772 |
145 | Increasing Triplet Subsequence LeetCode Solution | 5768 |
146 | Implementation of Deque using Doubly Linked List | 5759 |
147 | Island Perimeter Leetcode Solution | 5713 |
148 | Robot Room Cleaner Leetcode Solution | 5707 |
149 | Majority Element II Leetcode Solution | 5672 |
150 | Bellman Ford Algorithm | 5648 |
151 | Max Consecutive Ones Leetcode Solution | 5646 |
152 | Find Pair with Given Difference | 5642 |
153 | K-th Smallest Element in a Sorted Matrix | 5629 |
154 | Merge Sorted Array LeetCode Solution | 5625 |
155 | Swap Nodes in Pairs Leetcode Solutions | 5621 |
156 | Check if the Elements of an Array are Consecutive | 5604 |
157 | Fibonacci Number LeetCode Solution | 5584 |
158 | Guess Number Higher or Lower LeetCode Solution | 5549 |
159 | Design Parking System Leetcode Solution | 5546 |
160 | KMP Algorithm | 5540 |
161 | Find the Missing Number | 5539 |
162 | First negative integer in every window of size k | 5508 |
163 | Add Two Numbers II Leetcode Solution | 5497 |
164 | Delete middle element of a stack | 5488 |
165 | OSI Model | 5485 |
166 | Coin Change 2 Leetcode Solution | 5470 |
167 | Lemonade Change Leetcode Solution | 5466 |
168 | Subarray Sum Equals K LeetCode Solution | 5462 |
169 | Length of the largest subarray with contiguous elements | 5457 |
170 | Subarray Product Less Than K LeetCode Solution | 5443 |
171 | First Unique Character in a String LeetCode Solution | 5438 |
172 | String Compression | 5435 |
173 | Trapping Rain Water Leetcode Solution | 5429 |
174 | Capacity To Ship Packages Within D Days Leetcode Solution | 5403 |
175 | Last Stone Weight | 5402 |
176 | Set Matrix Zeroes Leetcode Solution | 5401 |
177 | Word Ladder LeetCode Solution | 5378 |
178 | Subarray with Given Sum | 5373 |
179 | Find All Duplicates in an Array LeetCode Solution | 5369 |
180 | Palindrome Linked List Leetcode Solution | 5367 |
181 | Monotonic Array LeetCode Solution | 5365 |
182 | Find Smallest Missing Number in a Sorted Array | 5350 |
183 | Form Minimum Number from Given Sequence of D’s and I’s | 5334 |
184 | Repeated Substring Pattern | 5326 |
185 | Combinations Leetcode Solution | 5283 |
186 | Remove Duplicates from Sorted List II LeetCode Solution | 5263 |
187 | Reverse Words in a String III LeetCode Solution | 5238 |
188 | 01 Matrix LeetCode Solution | 5233 |
189 | Same Tree LeetCode Solution | 5224 |
190 | Iterative Implementation of Quick Sort | 5211 |
191 | Valid Perfect Square Leetcode Solution | 5210 |
192 | Continuous Subarray Sum LeetCode Solution | 5198 |
193 | Single Element in a Sorted Array LeetCode Solution | 5178 |
194 | Break a Palindrome LeetCode Solution | 5128 |
195 | Remove Linked List Elements Leetcode Solution | 5125 |
196 | Prefix to Postfix Conversion | 5118 |
197 | Backspace String Compare | 5114 |
198 | Slowest Key Leetcode Solution | 5110 |
199 | Merge k Sorted Lists Leetcode Solution | 5090 |
200 | Combination Sum | 5087 |
201 | Relative Ranks Leetcode Solution | 5056 |
202 | Leetcode Permutations | 5050 |
203 | The K Weakest Rows in a Matrix Leetcode Solution | 5013 |
204 | Rotate List Leetcode Solution | 5004 |
205 | Find the Duplicate Element | 5002 |
206 | Maximum Product of Three Numbers LeetCode Solution | 4989 |
207 | Find Peak Element LeetCode Solution | 4957 |
208 | Second Most Repeated Word in a Sequence | 4950 |
209 | Insert Delete GetRandom O(1) Leetcode Solution | 4939 |
210 | Top K Frequent Elements LeetCode Solution | 4930 |
211 | Printing brackets in Matrix Chain Multiplication Problem | 4929 |
212 | Longest Common Subsequence LeetCode Solution | 4928 |
213 | Kth Largest Element in a Stream Leetcode Solution | 4899 |
214 | Palindrome Number | 4882 |
215 | Cuckoo sequence program | 4877 |
216 | Make The String Great Leetcode Solution | 4857 |
217 | Remove All Occurrences of a Substring LeetCode Solution | 4856 |
218 | Rearrange given Array in Maximum Minimum Form | 4853 |
219 | Container With Most Water LeetCode Solution | 4848 |
220 | Relative Sort Array Leetcode Solution | 4838 |
221 | Subarray Sum Equals k | 4836 |
222 | Convert a Number to Hexadecimal Leetcode Solution | 4830 |
223 | Max Area of Island | 4826 |
224 | Unique Paths II Leetcode Solution | 4816 |
225 | Delete Node in a Linked List Leetcode Solution | 4797 |
226 | Find Leaders in an Array | 4793 |
227 | Permutation in String Leetcode Solution | 4790 |
228 | Check If Two String Arrays are Equivalent Leetcode Solution | 4780 |
229 | Target Sum | 4779 |
230 | Generate all Binary Strings Without Consecutive 1’s | 4776 |
231 | Contains Duplicate LeetCode Solution | 4774 |
232 | Time Based Key-Value Store LeetCode Solution | 4748 |
233 | N-Queens LeetCode Solution | 4743 |
234 | Moving Average from Data Stream Leetcode Solution | 4741 |
235 | Arithmetic Expression Evaluation | 4727 |
236 | Given two unsorted arrays find all pairs whose sum is x | 4703 |
237 | Count Good Nodes in Binary Tree Leetcode Solution | 4697 |
238 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4693 |
239 | Scramble String | 4690 |
240 | Letter Combinations of a Phone Number | 4675 |
241 | Number of Dice Rolls With Target Sum LeetCode Solution | 4669 |
242 | LRU Cache LeetCode Solution | 4654 |
243 | Next Permutation | 4652 |
244 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4631 |
245 | Find Triplet in Array With a Given Sum | 4623 |
246 | Flipping an Image LeetCode Solution | 4608 |
247 | Stone Game LeetCode | 4608 |
248 | Minimum swaps required to bring all elements less than or equal to k together | 4589 |
249 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4585 |
250 | Check If N and Its Double Exist Leetcode Solution | 4581 |
251 | Reverse Only Letters LeetCode Solution | 4577 |
252 | Min Cost Climbing Stairs LeetCode Solution | 4568 |
253 | Remove Minimum Characters so that Two Strings Become Anagrams | 4567 |
254 | Prim’s Algorithm | 4558 |
255 | Find The Duplicate Number | 4539 |
256 | Stock Buy Sell to Maximize Profit | 4538 |
257 | Minimum Knight Moves LeetCode Solution | 4532 |
258 | Student Attendance Record I Leetcode Solution | 4529 |
259 | To Lower Case Leetcode Solution | 4501 |
260 | Top K Frequent Elements | 4486 |
261 | Minimum Operations to convert X to Y | 4475 |
262 | The kth Factor of n Leetcode Solution | 4464 |
263 | Smallest Positive Number Missing in an Unsorted Array | 4455 |
264 | License Key Formatting Leetcode Solution | 4440 |
265 | Reverse words in a string | 4422 |
266 | Maximum Subarray Sum using Divide and Conquer | 4414 |
267 | Min Stack | 4398 |
268 | Maximum Sum Increasing Subsequence | 4387 |
269 | Search Suggestions System LeetCode Solution | 4371 |
270 | Maximum Population Year LeetCode Solution | 4367 |
271 | Single Number | 4349 |
272 | Find the Number Occurring Odd Number of Times in an Array | 4343 |
273 | Sum of Subarray Ranges Leetcode Solution | 4340 |
274 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4338 |
275 | Find Words That Can Be Formed by Characters Leetcode Solution | 4326 |
276 | Reformat Date LeetCode Solution | 4307 |
277 | Top K Frequent Words LeetCode Solution | 4303 |
278 | Longest Common Subsequence | 4288 |
279 | Remove Nth Node From End of List Leetcode Solution | 4268 |
280 | Minimum Path Sum Leetcode Solution | 4261 |
281 | N-th Tribonacci Number Leetcode Solution | 4233 |
282 | Reverse individual words | 4227 |
283 | Intersection of Two Arrays | 4227 |
284 | Maximum Depth of Binary Tree Leetcode Solution | 4221 |
285 | Reveal Cards In Increasing Order Leetcode Solution | 4201 |
286 | Evaluate Division | 4200 |
287 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4198 |
288 | BFS for Disconnected Graph | 4198 |
289 | Maximize Distance to Closest Person LeetCode Solution | 4184 |
290 | Last Stone Weight II LeetCode Solution | 4182 |
291 | House Robber | 4178 |
292 | Remove Duplicates from Sorted List LeetCode Solution | 4175 |
293 | Best Time to Buy and Sell Stock III Leetcode Solution | 4174 |
294 | Minimum Characters to be Added at Front to Make String Palindrome | 4164 |
295 | Diagonal Traverse LeetCode Solution | 4151 |
296 | Find any one of the multiple repeating elements in read only array | 4133 |
297 | Count of index pairs with equal elements in an array | 4125 |
298 | Design A Leaderboard Leetcode Solution | 4123 |
299 | Find if Path Exists in Graph Leetcode Solution | 4122 |
300 | Count Number of Occurrences in a Sorted Array | 4115 |
301 | Length of Longest valid Substring | 4111 |
302 | Sort Elements by Frequency of Occurrences | 4107 |
303 | Binary Tree Inorder Traversal LeetCode Solution | 4103 |
304 | Most Frequent Element in an Array | 4103 |
305 | Minimum number of Merge Operations to make an Array Palindrome | 4064 |
306 | Implement a stack using single queue | 4060 |
307 | Range Sum Query 2D – Immutable Leetcode Solution | 4054 |
308 | Find the Closest Palindrome number | 4028 |
309 | Brightest Position on Street LeetCode Solution | 4026 |
310 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4015 |
311 | Find Leaves of Binary Tree LeetCode Solution | 4003 |
312 | Mobile Numeric Keypad Problem | 3998 |
313 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 3986 |
314 | Invalid Transactions LeetCode Solution | 3981 |
315 | Reverse Nodes in k-Group LeetCode Solution | 3979 |
316 | Reverse Bits | 3974 |
317 | Spiral Matrix II Leetcode Solution | 3971 |
318 | Special Positions in a Binary Matrix Leetcode Solution | 3966 |
319 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 3965 |
320 | Remove All Ones With Row and Column Flips Leetcode Solution | 3963 |
321 | Shortest Word Distance Leetcode Solution | 3957 |
322 | Symmetric Tree Leetcode Solution | 3952 |
323 | Sort Array By Parity II Leetcode Solution | 3952 |
324 | Sudoku Solver | 3943 |
325 | Arrange given Numbers to Form the Biggest Number II | 3929 |
326 | Diagonal Traversal LeetCode Solution | 3921 |
327 | Paint House LeetCode Solution | 3918 |
328 | One Edit Distance LeetCode Solution | 3904 |
329 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3886 |
330 | Maximum Subarray | 3886 |
331 | Find Duplicates in an Array in Most Efficient Way | 3872 |
332 | Remove Invalid Parentheses Leetcode Solution | 3870 |
333 | Rank Transform of an Array Leetcode Solution | 3867 |
334 | Jump Game | 3865 |
335 | Split Linked List in Parts Leetcode Solution | 3852 |
336 | Partition Labels LeetCode Solution | 3846 |
337 | Unique Paths | 3845 |
338 | Construct BST from its given Level Order Traversal | 3842 |
339 | Minimum Moves to Equal Array Elements Leetcode Solution | 3840 |
340 | Alien Dictionary LeetCode Solution | 3839 |
341 | Hamming Distance Leetcode Solution | 3825 |
342 | Largest Rectangle in Histogram LeetCode Solution | 3821 |
343 | Round Robin Scheduling | 3809 |
344 | Tug of War | 3798 |
345 | Minimum operation to make all elements equal in array | 3797 |
346 | Bitwise AND of Numbers Range LeetCode Solution | 3795 |
347 | Maximal Square | 3795 |
348 | Least Number of Unique Integers after K Removals Leetcode Solution | 3791 |
349 | Minimum Depth of Binary Tree Leetcode Solution | 3787 |
350 | Dijkstra Algorithm | 3787 |
351 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3785 |
352 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3783 |
353 | Range Sum of BST LeetCode Solution | 3782 |
354 | The Celebrity Problem | 3782 |
355 | Next Permutation LeetCode Solution | 3771 |
356 | Pair of Positive Negative Values in an Array | 3763 |
357 | Maximum Circular Subarray Sum | 3762 |
358 | String Matching in an Array Leetcode Solution | 3761 |
359 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3758 |
360 | Check whether Strings are K Distance Apart or Not | 3746 |
361 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3744 |
362 | Smallest Subarray with k Distinct Numbers | 3740 |
363 | Given an Array of Pairs Find all Symmetric Pairs in it | 3724 |
364 | Merge Two Sorted Linked Lists | 3724 |
365 | Minimum Time Visiting All Points Leetcode Solution | 3718 |
366 | Minimum Cost to Hire K Workers | 3716 |
367 | Count of Triplets With Sum Less than Given Value | 3716 |
368 | Clone Graph LeetCode Solution | 3710 |
369 | Longest Common Prefix using Trie | 3709 |
370 | K Empty Slots LeetCode | 3704 |
371 | Transpose Graph | 3699 |
372 | Next Greater Element III LeetCode Solution | 3694 |
373 | Sort a stack using a temporary stack | 3687 |
374 | Check if a given array contains duplicate elements within k distance from each other | 3680 |
375 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3678 |
376 | Find minimum difference between any two elements | 3678 |
377 | Implementation of Deque using circular array | 3674 |
378 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3671 |
379 | Robot Bounded In Circle LeetCode Solution | 3664 |
380 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3662 |
381 | Ugly Number II LeetCode Solution | 3656 |
382 | Unique Paths III LeetCode Solution | 3647 |
383 | Postfix to Prefix Conversion | 3640 |
384 | Non-decreasing Array LeetCode Solution | 3632 |
385 | Substring with Concatenation of All Words Leetcode Solution | 3625 |
386 | Validate Stack Sequences LeetCode Solution | 3624 |
387 | Invert Binary Tree LeetCode Solution | 3623 |
388 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3617 |
389 | Invert Binary Tree LeetCode Solution | 3615 |
390 | Sliding Window Technique | 3608 |
391 | Permutation Sequence LeetCode Solution | 3605 |
392 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3602 |
393 | Longest subarray not having more than K distinct elements | 3602 |
394 | Graph Valid Tree LeetCode Solution | 3593 |
395 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3590 |
396 | Find duplicates in a given array when elements are not limited to a range | 3590 |
397 | Missing Element in Sorted Array LeetCode Solution | 3589 |
398 | LRU Cache Implementation | 3588 |
399 | Kth Smallest Element in a BST Leetcode Solution | 3583 |
400 | Find the subarray with least average | 3583 |
401 | Stack Permutations (Check if an array is stack permutation of other) | 3581 |
402 | Design Browser History LeetCode Solution | 3580 |
403 | Find the First and Second Smallest Elements | 3579 |
404 | Longest subsequence such that difference between adjacents is one | 3577 |
405 | First Circular Tour to Visit all the Petrol Bunks | 3577 |
406 | Number of Islands II LeetCode Solution | 3574 |
407 | Find Top K (or Most Frequent) Numbers in a Stream | 3572 |
408 | Path With Maximum Minimum Value LeetCode Solution | 3571 |
409 | Find Maximum Level sum in Binary Tree | 3563 |
410 | Kruskal Algorithm | 3563 |
411 | Stone Game II Leetcode | 3562 |
412 | Common elements in all rows of a given matrix | 3561 |
413 | Queries for counts of array elements with values in given range | 3558 |
414 | Word Search | 3558 |
415 | Toeplitz Matrix | 3558 |
416 | K Closest Points to Origin Leetcode Solution | 3555 |
417 | Sequences of given length where every element is more than or equal to twice of previous | 3552 |
418 | Combination Sum IV LeetCode Solution | 3550 |
419 | Snakes and Ladders LeetCode Solution | 3538 |
420 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3537 |
421 | Partition List Leetcode Solution | 3535 |
422 | Integer Break LeetCode Solution | 3533 |
423 | Recursion | 3533 |
424 | Number Complement Leetcode Solution | 3529 |
425 | Search a 2D Matrix II Leetcode Solution | 3525 |
426 | Number of Smaller Elements on Right Side | 3523 |
427 | Painting Fence Algorithm | 3522 |
428 | Max stack | 3518 |
429 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3511 |
430 | Find the Peak Element from an Array | 3496 |
431 | 3 Sum | 3491 |
432 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3490 |
433 | Odd Even Linked List Leetcode Solution | 3489 |
434 | Minesweeper LeetCode Solution | 3483 |
435 | Sort elements by frequency | 3482 |
436 | Top View of Binary Tree | 3477 |
437 | Priority Queue using doubly linked list | 3472 |
438 | LRU Cache Leetcode Solution | 3468 |
439 | Maximum Consecutive Numbers Present in an Array | 3464 |
440 | Nth Catalan Number | 3464 |
441 | Consecutive Characters LeetCode Solution | 3463 |
442 | Insert Interval Leetcode Solution | 3461 |
443 | Search in a Binary Search Tree Leetcode Solution | 3461 |
444 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3460 |
445 | Rearrange array such that even positioned are greater than odd | 3458 |
446 | Check if Two given Strings are Isomorphic to each other | 3454 |
447 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3444 |
448 | Flood Fill LeetCode | 3439 |
449 | Expression Contains Redundant Bracket or Not | 3407 |
450 | Distance of nearest cell having 1 in a binary matrix | 3398 |
451 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3397 |
452 | Shortest Palindrome | 3396 |
453 | Number of Closed Islands Leetcode Solution | 3393 |
454 | Kth Non-repeating Character | 3392 |
455 | High Five LeetCode Solution | 3388 |
456 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3385 |
457 | Move All the Zeros to the End of the Given Array | 3383 |
458 | Decompress Run-Length Encoded List Leetcode Solution | 3381 |
459 | Minimum Absolute Difference in BST Leetcode Solution | 3381 |
460 | Find a Peak Element II LeetCode Solution | 3377 |
461 | 4Sum | 3374 |
462 | Sliding Window Maximum LeetCode Solution | 3368 |
463 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3367 |
464 | Gold Mine Problem | 3360 |
465 | Spiral Matrix III LeetCode Solution | 3359 |
466 | Insert into a Binary Search Tree Leetcode Solution | 3359 |
467 | Integer to English words | 3353 |
468 | Tiling Problem | 3343 |
469 | Minimum Path Sum | 3342 |
470 | N queen problem | 3339 |
471 | Restore IP Addresses Leetcode Solution | 3335 |
472 | Queries for GCD of all numbers of an array except elements in a given range | 3331 |
473 | Binary Tree Maximum Path Sum LeetCode Solution | 3327 |
474 | Balanced Expression with Replacement | 3327 |
475 | Sorting array using Stacks | 3321 |
476 | Longest Common Prefix using Sorting | 3321 |
477 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3318 |
478 | Coin Change Problem | 3317 |
479 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3313 |
480 | Best Time to Buy and Sell Stock | 3307 |
481 | Trapping Rain Water LeetCode Solution | 3306 |
482 | Count items common to both the lists but with different prices | 3302 |
483 | Sort Colors | 3299 |
484 | Majority Element | 3298 |
485 | Priority Queue in C++ | 3294 |
486 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3293 |
487 | Find Pythagorean Triplets from Array | 3291 |
488 | Sliding Window Median Leetcode Solution | 3287 |
489 | Fibonacci Number LeetCode Solution | 3284 |
490 | Evaluate Reverse Polish Notation LeetCode Solution | 3284 |
491 | Cells with Odd Values in a Matrix LeetCode Solution | 3284 |
492 | Palindrome Substring Queries | 3284 |
493 | Number of Days Between Two Dates LeetCode Solution | 3274 |
494 | The Stock Span Problem | 3269 |
495 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3266 |
496 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3262 |
497 | Interval Tree | 3254 |
498 | Sort an array according to the order defined by another array | 3250 |
499 | Reverse a linked list | 3246 |
500 | Is Graph Bipartite? LeetCode Solution | 3245 |
501 | Path Sum II LeetCode Solution | 3236 |
502 | Largest rectangular sub-matrix whose sum is 0 | 3234 |
503 | Pancake Sorting Problem | 3230 |
504 | Camelcase Matching Leetcode Solution | 3213 |
505 | Find the first Repeating Number in a Given Array | 3213 |
506 | Different Ways to Add Parentheses Leetcode Solution | 3208 |
507 | How to Implement Stack Using Priority Queue or Heap? | 3208 |
508 | Queue using Stacks | 3207 |
509 | Kth ancestor of a node in binary tree | 3205 |
510 | Intersection of Two Linked Lists LeetCode Solution | 3202 |
511 | Custom Sort String Leetcode Solution | 3202 |
512 | Shortest Completing Word Leetcode Solution | 3200 |
513 | Design Hit Counter LeetCode Solution | 3194 |
514 | Sieve of Eratosthenes | 3190 |
515 | Longest Increasing Path in a Matrix LeetCode Solution | 3189 |
516 | Divide Chocolate LeetCode Solution | 3187 |
517 | Find Median from Data Stream LeetCode Solution | 3180 |
518 | Multiplication of Two Matrices | 3176 |
519 | Find a Fixed Point in a Given Array | 3175 |
520 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3174 |
521 | Scramble String LeetCode Solution | 3173 |
522 | Analyze User Website Visit Pattern LeetCode Solution | 3169 |
523 | Count subarrays having total distinct elements same as original array | 3168 |
524 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3167 |
525 | Subset sum problem | 3167 |
526 | Detect a loop in the Linked List | 3159 |
527 | Perfect Squares LeetCode Solution | 3153 |
528 | Fibonacci numbers | 3151 |
529 | Count Submatrices With All Ones LeetCode Solution | 3144 |
530 | Queue based approach for first non-repeating character in a stream | 3137 |
531 | Group Anagrams | 3133 |
532 | Number of Distinct Islands Leetcode Solution | 3131 |
533 | Implement Trie (Prefix Tree) Leetcode Solution | 3131 |
534 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3125 |
535 | Reorder Data in Log Files LeetCode Solution | 3124 |
536 | Path Crossing Leetcode Solution | 3120 |
537 | Monotonic Array Leetcode Solution | 3116 |
538 | Valid Boomerang Leetcode Solution | 3114 |
539 | Generate all Binary Strings from Given Pattern | 3112 |
540 | Find the Lost Element From a Duplicated Array | 3107 |
541 | Champagne Tower LeetCode Solution | 3105 |
542 | Longest Common Prefix using Divide and Conquer | 3103 |
543 | Insert Node in the Sorted Linked List | 3101 |
544 | Maximum Sum of Non Consecutive Elements | 3094 |
545 | Construction of Longest Increasing Subsequence (N log N) | 3086 |
546 | Minimum Height Trees | 3086 |
547 | How to Create Mergable Stack? | 3084 |
548 | Merge Overlapping Intervals | 3078 |
549 | Nearest Exit from Entrance in Maze LeetCode Solution | 3073 |
550 | Sort a stack using recursion | 3072 |
551 | Race Car LeetCode Solution | 3067 |
552 | Decode Ways | 3066 |
553 | Shifting Letters LeetCode Solution | 3065 |
554 | Find if an Expression has Duplicate Parenthesis or Not | 3065 |
555 | Palindrome Permutation LeetCode Solution | 3064 |
556 | Build an Array With Stack Operations Leetcode Solution | 3060 |
557 | Count Possible Triangles | 3056 |
558 | First missing positive | 3052 |
559 | Recover Binary Search Tree | 3051 |
560 | Find a Sorted Subsequence of size 3 | 3047 |
561 | Find maximum length Snake sequence | 3046 |
562 | Decode String | 3046 |
563 | Binary Tree zigzag level order Traversal | 3045 |
564 | Merge Two Binary Trees LeetCode Solution | 3042 |
565 | Smallest Good Base | 3042 |
566 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3040 |
567 | Sliding Window Maximum | 3035 |
568 | LCS (Longest Common Subsequence) of three strings | 3033 |
569 | Most Stones Removed with Same Row or Column LeetCode Solution | 3030 |
570 | Minimum Bracket Reversals | 3027 |
571 | Number of Equivalent Domino Pairs Leetcode Solution | 3025 |
572 | Print all Palindromic Partitions of a String | 3025 |
573 | Letter Case Permutation | 3019 |
574 | Morris Traversal | 3017 |
575 | Rectangle Overlap LeetCode Solution | 3014 |
576 | Minimum Height Trees LeetCode Solution | 3011 |
577 | Maximum Element in an Array which is Increasing and then Decreasing | 3007 |
578 | Largest Subarray with Equal Number of 0’s and 1’s | 3006 |
579 | Palindrome Partitioning Leetcode Solution | 3004 |
580 | Recover Binary Search Tree Leetcode Solution | 3002 |
581 | Implement strStr() LeetCode Solution | 3000 |
582 | Distance Between Bus Stops Leetcode Solution | 2999 |
583 | Minimum number of jumps to reach end | 2995 |
584 | Maximum Number of Ways to Partition an Array LeetCode Solution | 2992 |
585 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 2992 |
586 | Guess Number Higher or Lower II | 2981 |
587 | K-th Distinct Element in an Array | 2979 |
588 | Maximum Length of Chain Pairs | 2979 |
589 | Design a Stack With Increment Operation Leetcode Solution | 2978 |
590 | Find the Town Judge LeetCode Solution | 2977 |
591 | Reorder an Array According to the Given Indexes | 2977 |
592 | Longest Repeated Subsequence | 2976 |
593 | Best Time to Buy and Sell Stock IV LeetCode Solution | 2965 |
594 | Contiguous Array LeetCode Solution | 2963 |
595 | Implement Two Stacks in an Array | 2958 |
596 | Maximum Depth of N-ary Tree Leetcode Solution | 2956 |
597 | Mean of Array After Removing Some Elements Leetcode Solution | 2948 |
598 | Jump Game IV LeetCode Solution | 2941 |
599 | Design Skiplist LeetCode Solution | 2941 |
600 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 2939 |
601 | All Possible Full Binary Trees LeetCode Solution | 2937 |
602 | The Maze III LeetCode Solution | 2937 |
603 | Maximize Elements Using Another Array | 2937 |
604 | Subarrays with K Different Integers Leetcode Solution | 2936 |
605 | Valid Parentheses Leetcode Solution | 2934 |
606 | Check for Balanced Parentheses in an Expression | 2933 |
607 | Rearrange Spaces Between Words Leetcode Solution | 2930 |
608 | Sort a String According to Another String | 2927 |
609 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 2924 |
610 | Maximum sum rectangle in a 2D matrix | 2913 |
611 | Contains Duplicate | 2912 |
612 | Minimum Jumps to Reach Home LeetCode Solution | 2898 |
613 | Boolean Parenthesization Problem | 2883 |
614 | Word Break | 2879 |
615 | Convert BST to Min Heap | 2877 |
616 | Palindrome Permutations of a String | 2877 |
617 | Perform String Shifts Leetcode | 2874 |
618 | Count pair with Given Sum | 2873 |
619 | Iterative Method to find Height of Binary Tree | 2870 |
620 | Valid Sudoku | 2863 |
621 | Maximum Score After Splitting a String Leetcode Solution | 2861 |
622 | Possible Bipartition LeetCode Solution | 2856 |
623 | Edit Distance LeetCode Solution | 2854 |
624 | Find the Minimum Element in a Sorted and Rotated Array | 2853 |
625 | Find the First Circular Tour that visits all the Petrol Pumps | 2842 |
626 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2841 |
627 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2839 |
628 | Reach a Number LeetCode Solution | 2832 |
629 | Best Meeting Point LeetCode Solution | 2821 |
630 | Number of palindromic paths in a matrix | 2817 |
631 | Merge Two Balanced Binary Search Trees | 2815 |
632 | Find Largest Value in Each Tree Row LeetCode Solution | 2804 |
633 | Find the Subarray of given length with Least Average | 2802 |
634 | Segregate 0s and 1s in an Array | 2799 |
635 | Sorted Linked List to Balanced BST | 2799 |
636 | Merge Overlapping Intervals II | 2797 |
637 | Count Sub Islands LeetCode Solution | 2792 |
638 | Brick Wall LeetCode Solution | 2790 |
639 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2790 |
640 | My Calendar I LeetCode Solution | 2789 |
641 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2783 |
642 | Swapping Nodes in a Linked List Leetcode Solution | 2783 |
643 | Caesar Cipher | 2782 |
644 | Heap Sort | 2780 |
645 | Level order Traversal in Spiral Form | 2774 |
646 | Palindromic Substrings Leetcode Solution | 2766 |
647 | Find Median from data Stream | 2760 |
648 | Construct BST from given Preorder Traversal | 2757 |
649 | Merge K Sorted Arrays and Print Sorted Output | 2752 |
650 | Palindrome Permutation | 2750 |
651 | Pair with given product | 2749 |
652 | All Unique Triplets that Sum up to a Given Value | 2748 |
653 | Word Pattern | 2743 |
654 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2735 |
655 | Maximize Sum of Array after K Negations Leetcode Solution | 2726 |
656 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2725 |
657 | Find all triplets with zero sum | 2725 |
658 | Print Fibonacci sequence using 2 variables | 2715 |
659 | Find whether a subarray is in form of a mountain or not | 2714 |
660 | Validate Binary Search Tree | 2714 |
661 | Maximum Frequency Stack Leetcode Solution | 2704 |
662 | Find all pairs (a, b) in an array such that a % b = k | 2702 |
663 | Huffman Coding | 2700 |
664 | Count Distinct Elements in Every Window of Size K | 2698 |
665 | Bubble sort using two Stacks | 2693 |
666 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2693 |
667 | Convert Sorted List to Binary Search Tree | 2689 |
668 | Queries on Probability of Even or Odd Number in given Ranges | 2686 |
669 | Minimum time required to rot all oranges | 2685 |
670 | Add two numbers | 2684 |
671 | Partition Problem | 2684 |
672 | Isomorphic Strings LeetCode Solution | 2681 |
673 | Counting Bits | 2679 |
674 | Longest Subarray Having Count of 1s One More than Count of 0s | 2678 |
675 | Find four elements that sum to a given value (Hashmap) | 2676 |
676 | Length of Longest Fibonacci Subsequence | 2672 |
677 | How to Efficiently Implement k Stacks in a Single Array? | 2670 |
678 | Split Array Into Consecutive Subsequences | 2669 |
679 | Sort 0s 1s and 2s in an Array | 2668 |
680 | Largest Sum Contiguous Subarray | 2667 |
681 | Binary Tree Right Side View LeetCode Solution | 2665 |
682 | Detect Capital Leetcode Solution | 2661 |
683 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2655 |
684 | Rotate Array | 2644 |
685 | Range Sum Query 2D – Immutable LeetCode Solution | 2643 |
686 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 2641 |
687 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2636 |
688 | Print all subarrays with 0 sum | 2636 |
689 | Remove brackets from an algebraic string containing + and – operators | 2636 |
690 | Count Good Nodes in Binary Tree LeetCode Solution | 2635 |
691 | Populating Next Right Pointers in Each Node Leetcode Solution | 2632 |
692 | Remove Palindromic Subsequences Leetcode Solution | 2632 |
693 | Partition to K Equal Sum Subsets Leetcode Solution | 2629 |
694 | Count ways to reach the nth stair using step 1, 2 or 3 | 2625 |
695 | Populating Next Right Pointers in Each Node | 2622 |
696 | Binary Tree to Binary Search Tree Conversion | 2620 |
697 | Merge Two Sorted Lists Leetcode | 2619 |
698 | String comparison containing wildcards | 2615 |
699 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2607 |
700 | Find pairs with given sum such that elements of pair are in different rows | 2607 |
701 | Arithmetic Slices II – Subsequence LeetCode Solution | 2604 |
702 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2586 |
703 | Minimum Sum Path in a Triangle | 2582 |
704 | Happy Number | 2579 |
705 | Alien Dictionary | 2570 |
706 | Check if a Linked list of Strings form a Palindrome | 2569 |
707 | Concatenation of Array LeetCode Solution | 2568 |
708 | Queue Reconstruction by Height | 2568 |
709 | Web Crawler LeetCode Solution | 2566 |
710 | Partition Equal Subset Sum | 2562 |
711 | Inorder Successor of a node in Binary Tree | 2561 |
712 | Find Duplicate Subtrees | 2557 |
713 | Topological Sorting | 2549 |
714 | Contiguous Array Leetcode | 2547 |
715 | Difference Array | Range update query in O(1) | 2546 |
716 | Breadth First Search (BFS) for a Graph | 2544 |
717 | Find All Pairs With a Given Difference | 2541 |
718 | Swap Kth Node from beginning with Kth Node from End | 2540 |
719 | Increasing Subsequence of Length three with Maximum Product | 2538 |
720 | Check if String Follows Order of Characters by a Pattern or not | 2532 |
721 | Root to Leaf path with target sum Leetcode Solutions | 2523 |
722 | Remove duplicates from sorted array | 2516 |
723 | Longest Common Prefix Using Binary Search II | 2515 |
724 | Reverse Nodes in K-Group | 2511 |
725 | Elements Appear more than N/K times in Array | 2508 |
726 | Maximum Product Subarray II | 2506 |
727 | Maximum Distance in Array | 2498 |
728 | Container with Most Water | 2493 |
729 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2492 |
730 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2490 |
731 | Climbing stairs | 2487 |
732 | Count Minimum Steps to Get the given Array | 2479 |
733 | Sum Root to Leaf Numbers LeetCode Solution | 2478 |
734 | An Interesting Method to generate Binary Numbers from 1 to n | 2470 |
735 | Parallel Courses II LeetCode Solution | 2469 |
736 | Substring With Concatenation Of All Words | 2467 |
737 | Finding K closest element | 2466 |
738 | Check if all levels of two Binary Tree are anagrams or not | 2463 |
739 | Symmetric Tree | 2462 |
740 | Pancake Sorting | 2460 |
741 | Delete Nodes and Return Forest Leetcode Solution | 2457 |
742 | Longest Increasing Subsequence | 2455 |
743 | Deletion in a Binary Tree | 2453 |
744 | Score of Parenthesis LeetCode Solution | 2450 |
745 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2449 |
746 | Delete Nth node from the end of the given linked list | 2447 |
747 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2442 |
748 | Given a binary tree, how do you remove all the half nodes? | 2442 |
749 | Boundary Traversal of binary tree | 2436 |
750 | Iterative Depth First Traversal of Graph | 2434 |
751 | Find the first repeating element in an array of integers | 2433 |
752 | MiniMax Algorithm | 2432 |
753 | Linked List Cycle | 2425 |
754 | Sort Array by Increasing Frequency Leetcode Solution | 2424 |
755 | Merge K Sorted Linked Lists | 2424 |
756 | Union and Intersection of two Linked Lists | 2421 |
757 | Non-overlapping sum of two sets | 2421 |
758 | Find K Closest Elements LeetCode Solution | 2418 |
759 | Kill Process LeetCode Solution | 2416 |
760 | Longest Common Prefix Word by Word Matching | 2416 |
761 | Count pairs from two linked lists whose sum is equal to a given value | 2413 |
762 | Minimum Size Subarray Sum | 2413 |
763 | Iterative Preorder Traversal | 2407 |
764 | Construct Binary Tree from given Parent Array representation | 2406 |
765 | New 21 Game | 2401 |
766 | Rearrange an Array Such that arr[i] is equal to i | 2399 |
767 | Find Maximum of Minimum for Every Window Size in a Given Array | 2399 |
768 | Level of Each node in a Tree from source node | 2398 |
769 | Verify Preorder Serialization of a Binary Tree | 2397 |
770 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2392 |
771 | Level order traversal using two Queues | 2387 |
772 | Check if a queue can be sorted into another queue using a stack | 2383 |
773 | Nested List Weight Sum II LeetCode Solution | 2382 |
774 | BFS vs DFS for Binary Tree | 2376 |
775 | Reservoir Sampling | 2372 |
776 | Merging Intervals | 2370 |
777 | Find the Difference Leetcode Solution | 2368 |
778 | Valid Anagrams | 2359 |
779 | Maximum Product Subarray | 2358 |
780 | Maximum size subarray sum equals k | 2358 |
781 | Matrix Chain Multiplication | 2355 |
782 | Range LCM Queries | 2353 |
783 | Remove Duplicates from Sorted List II | 2351 |
784 | Reorder Array Using Given Indexes | 2348 |
785 | Flatten Binary Tree to Linked List LeetCode Solution | 2346 |
786 | Palindrome Partitioning | 2346 |
787 | Smallest Range II Leetcode Solution | 2343 |
788 | Print a Binary Tree in Vertical Order | 2341 |
789 | K maximum sums of overlapping contiguous sub-arrays | 2337 |
790 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2335 |
791 | Super Ugly Number | 2332 |
792 | Vertical sum in a given binary tree | 2331 |
793 | Defanging an IP Address LeetCode Solution | 2325 |
794 | Friends Of Appropriate Ages LeetCode Solution | 2318 |
795 | Valid Triangle Number LeetCode Solution | 2307 |
796 | Balanced Binary Tree | 2307 |
797 | Check if Two Expressions With Brackets are Same | 2306 |
798 | Maximum difference between two elements such as larger element comes after smaller | 2303 |
799 | Missing Number | 2297 |
800 | Check if any two intervals overlap among a given set of intervals | 2296 |
801 | The Painter’s Partition Problem | 2296 |
802 | Minimum Distance Between BST Nodes Leetcode Solution | 2294 |
803 | Flatten 2D Vector LeetCode Solution | 2291 |
804 | Find subarray with given sum (Handles Negative Numbers) | 2291 |
805 | Create Maximum Number | 2291 |
806 | Number Of Longest Increasing Subsequence | 2290 |
807 | Largest Submatrix With Rearrangements LeetCode Solution | 2287 |
808 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2283 |
809 | Employee Importance LeetCode Solution | 2282 |
810 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2280 |
811 | Find K Length Subarray of Maximum Average | 2280 |
812 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2278 |
813 | Lowest Common Ancestor | 2278 |
814 | Count number of triplets with product equal to given number | 2274 |
815 | Unique Binary Search Trees LeetCode Solution | 2272 |
816 | Check if two nodes are on the same path in a Tree | 2258 |
817 | Find Peak Element | 2258 |
818 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2257 |
819 | Peak Index in a Mountain Array LeetCode Solution | 2256 |
820 | Closest Leaf in a Binary Tree LeetCode Solution | 2255 |
821 | Array Nesting Leetcode Solution | 2250 |
822 | Minimum insertions to form a palindrome with permutations allowed | 2250 |
823 | Valid Triangle Number LeetCode Solution | 2244 |
824 | Third Maximum Number Leetcode Solution | 2240 |
825 | Maximum subsequence sum such that no three are consecutive | 2240 |
826 | Find distance between two nodes of a Binary Tree | 2240 |
827 | Find Common Characters Leetcode Solution | 2236 |
828 | Find Smallest Range Containing Elements from k Lists | 2235 |
829 | Hamming Distance | 2235 |
830 | Check Completeness of a Binary Tree LeetCode Solution | 2234 |
831 | Largest BST Subtree LeetCode Solution | 2234 |
832 | Iterative Postorder Traversal Using Two Stacks | 2228 |
833 | Distinct Subsequences | 2225 |
834 | Print all triplets in sorted array that form AP | 2223 |
835 | First Bad Version | 2223 |
836 | Find Sum of all unique sub-array sum for a given array | 2221 |
837 | Print All Distinct Elements of a Given Integer Array | 2218 |
838 | Products of ranges in an array | 2217 |
839 | Sorting a K Sorted Array | 2216 |
840 | Newman-Conway Sequence | 2214 |
841 | Arrange given numbers to form the biggest number | 2213 |
842 | Merging Two Sorted Arrays | 2212 |
843 | Valid Parenthesis String | 2211 |
844 | Sort Elements by Frequency II | 2211 |
845 | Maximum number of segments of lengths a, b and c | 2208 |
846 | Largest divisible pairs subset | 2207 |
847 | Find Element Using Binary Search in Sorted Array | 2205 |
848 | Number of siblings of a given Node in n-ary Tree | 2203 |
849 | Tree Traversal (Preorder, Inorder & Postorder) | 2200 |
850 | Bottom View of a Binary Tree | 2196 |
851 | Longest Palindromic Subsequence | 2195 |
852 | Path Sum | 2189 |
853 | Stone Game IV LeetCode Solution | 2176 |
854 | Find the largest multiple of 3 | 2176 |
855 | Lower Case To Upper Case | 2175 |
856 | Largest subarray with equal number of 0s and 1s | 2170 |
857 | Diagonal Traversal of Binary Tree | 2167 |
858 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2164 |
859 | Print Right View of a Binary Tree | 2163 |
860 | Four Elements that Sum to Given | 2163 |
861 | Merge Two Sorted Arrays | 2160 |
862 | Contiguous Array | 2159 |
863 | Binary array after M range toggle operations | 2156 |
864 | Range Sum Query using Sparse Table | 2155 |
865 | Count and Say | 2155 |
866 | Stone Game IV LeetCode Solution | 2154 |
867 | Shuffle an Array | 2154 |
868 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2151 |
869 | Segment Tree | 2150 |
870 | Subset Sum Problem in O(sum) space | 2141 |
871 | Median of Two Sorted Arrays | 2141 |
872 | Unique Binary Search Trees | 2138 |
873 | Isomorphic Strings | 2137 |
874 | Permutations of a Given String Using STL | 2136 |
875 | Encoded String With Shortest Length LeetCode Solution | 2131 |
876 | Find Largest d in Array such that a + b + c = d | 2130 |
877 | Longest Bitonic Subsequence | 2129 |
878 | Averages of Levels in Binary Tree | 2124 |
879 | Find Nth Node | 2118 |
880 | Next Greater Element in an Array | 2116 |
881 | Red-Black Tree Introduction | 2111 |
882 | Maximum Sum of 3 Non-Overlapping Subarrays | 2111 |
883 | Valid Number | 2111 |
884 | Infix to Postfix | 2110 |
885 | Closest Binary Search Tree Value Leetcode Solution | 2103 |
886 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2103 |
887 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2103 |
888 | Height of a generic tree from parent array | 2097 |
889 | Maximum Product Subarray | 2097 |
890 | Find unique character in a string | 2097 |
891 | Friends Pairing Problem | 2094 |
892 | Transform a BST to Greater sum Tree | 2092 |
893 | Orderly Queue LeetCode Solution | 2087 |
894 | Count Primes in Ranges | 2087 |
895 | Trapping Rain Water II LeetCode Solution | 2074 |
896 | Maximum Population Year LeetCode Solution | 2073 |
897 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2070 |
898 | Valid Perfect Square LeetCode Solution | 2067 |
899 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2062 |
900 | Bold Words in String LeetCode Solution | 2061 |
901 | Write a function to get the intersection point of two Linked Lists | 2056 |
902 | Serialize and Deserialize Binary Tree | 2051 |
903 | Binary Search Tree Delete Operation | 2049 |
904 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2048 |
905 | Minimum sum of squares of character counts in a given string after removing k characters | 2048 |
906 | Shuffle a given Array | 2042 |
907 | Sentence Screen Fitting LeetCode Solution | 2039 |
908 | Insert Delete GetRandom | 2032 |
909 | The Number of Weak Characters in the Game LeetCode Solution | 2030 |
910 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2030 |
911 | Diameter of N-Ary Tree LeetCode Solution | 2028 |
912 | Swap Nodes In Pairs | 2024 |
913 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2022 |
914 | Next greater element | 2018 |
915 | Convert BST into a Min-Heap without using array | 2015 |
916 | Lowest Common Ancestor in Binary Search Tree | 2008 |
917 | Reorganize String | 2008 |
918 | K’th Largest Element in BST when modification to BST is not allowed | 2004 |
919 | Integer to Roman | 1996 |
920 | Maximum Product Subarray | 1990 |
921 | Find Minimum In Rotated Sorted Array | 1990 |
922 | Edit Distance | 1979 |
923 | Array Queries for multiply replacements and product | 1978 |
924 | Advantages of BST over Hash Table | 1977 |
925 | Next Greater Element II LeetCode Solution | 1976 |
926 | Total Hamming Distance LeetCode Solution | 1970 |
927 | Queries on XOR of greatest odd divisor of the range | 1963 |
928 | Constant time range add operation on an array | 1960 |
929 | Koko Eating Bananas LeetCode Solution | 1959 |
930 | Check if an Array is Stack Sortable | 1955 |
931 | Longest Increasing Consecutive Subsequence | 1950 |
932 | Serialize and Deserialize Binary Tree LeetCode Solution | 1949 |
933 | Find the smallest binary digit multiple of given number | 1947 |
934 | Best Meeting Point LeetCode Solution | 1944 |
935 | Print n terms of Newman-Conway Sequence | 1942 |
936 | Maximum Sum Increasing Subsequence | 1942 |
937 | Level Order Traversal of Binary Tree | 1940 |
938 | Clone a Binary Tree with Random Pointers | 1938 |
939 | Power of Two | 1936 |
940 | K’th Largest element in BST using constant extra space | 1932 |
941 | Moving Stones Until Consecutive Leetcode Solution | 1929 |
942 | Image Overlap LeetCode Solution | 1928 |
943 | Reverse a Path in BST using Queue | 1923 |
944 | Numbers with prime frequencies greater than or equal to k | 1922 |
945 | Range Queries for Longest Correct Bracket Subsequence | 1920 |
946 | Design Underground System Leetcode Solution | 1919 |
947 | Write Code to Determine if Two Trees are Identical | 1918 |
948 | Number of Orders in the Backlog Leetcode Solution | 1917 |
949 | Greatest Sum Divisible by Three LeetCode Solution | 1910 |
950 | Count and Toggle Queries on a Binary Array | 1910 |
951 | Valid Tic-Tac-Toe State LeetCode Solution | 1909 |
952 | Check if X can give change to every person in the Queue | 1906 |
953 | A program to check if a binary tree is BST or not | 1904 |
954 | Print Next Greater Number of Q queries | 1900 |
955 | Find the node with minimum value in a Binary Search Tree | 1899 |
956 | Design Add and Search Words Data Structure LeetCode Solution | 1895 |
957 | Insert into a Sorted Circular Linked List LeetCode Solution | 1890 |
958 | Find minimum number of merge operations to make an array palindrome | 1889 |
959 | Closest Binary Search Tree Value II LeetCode Solution | 1887 |
960 | Form minimum number from given sequence | 1887 |
961 | Check for Palindrome after every character replacement Query | 1886 |
962 | Factorial Trailing Zeroes LeetCode Solution | 1884 |
963 | Check if each internal node of a BST has exactly one child | 1884 |
964 | Count the Pairs at Same Distance as in English Alphabets | 1879 |
965 | Merge two BSTs with limited extra space | 1878 |
966 | Number of elements less than or equal to a given number in a given subarray | 1877 |
967 | Maximum Array from Two given Arrays Keeping Order Same | 1875 |
968 | Queries for Decimal Values of Subarrays of a Binary Array | 1873 |
969 | Largest Plus Sign Leetcode Solution | 1869 |
970 | Collect maximum points in a grid using two traversals | 1863 |
971 | Merge Sort | 1863 |
972 | Maximum difference between first and last indexes of an element in array | 1853 |
973 | Dividing Array into Pairs With Sum Divisible by K | 1852 |
974 | Group Shifted Strings Leetcode Solution | 1845 |
975 | Priority Queue | 1833 |
976 | Merge Sorted Array | 1832 |
977 | Longest Substring Without Repeating Characters Leetcode Solution | 1827 |
978 | Print modified array after multiple array range increment operations | 1824 |
979 | Count even length binary sequences with same sum of first and second half bits | 1823 |
980 | Graph Cloning | 1816 |
981 | Cutting a Rod | 1807 |
982 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1799 |
983 | Form Minimum Number From Given Sequence | 1793 |
984 | Swim in Rising Water LeetCode Solution | 1784 |
985 | Find maximum average subarray of k length | 1784 |
986 | Kth Smallest Element in a BST | 1784 |
987 | Count Pairs Whose Products Exist in Array | 1782 |
988 | Excel Sheet Column Number LeetCode Solution | 1778 |
989 | Minimum Moves to Equal Array Elements LeetCode Solution | 1776 |
990 | Unique Paths II | 1766 |
991 | Excel Sheet Column Title LeetCode Solution | 1763 |
992 | Binary Search Tree | 1761 |
993 | Guess The Word | 1760 |
994 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1756 |
995 | Palindrome Partitioning | 1755 |
996 | Print all Possible Ways to Break a String in Bracket Form | 1753 |
997 | K Empty Slots | 1752 |
998 | Check given array of size n can represent BST of n levels or not | 1748 |
999 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1747 |
1000 | Binary Search Tree Search and Insertion | 1746 |
1001 | Longest Common Prefix using Character by Character Matching | 1745 |
1002 | Regular Expression Matching | 1739 |
1003 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1736 |
1004 | Sorted Array to Balanced BST | 1730 |
1005 | How to print maximum number of A’s using given four keys | 1726 |
1006 | Sum of Left Leaves LeetCode Solution | 1711 |
1007 | Find postorder traversal of BST from preorder traversal | 1702 |
1008 | Maximum weight transformation of a given string | 1681 |
1009 | Construct Complete Binary Tree from its Linked List Representation | 1681 |
1010 | Queries for Number of Distinct Elements in a Subarray | 1671 |
1011 | Find the Town Judge LeetCode Solution | 1653 |
1012 | Symmetric Tree LeetCode Solution Leetcode Solution | 1648 |
1013 | Iterative method to find ancestors of a given binary tree | 1648 |
1014 | Maximum Depth Of Binary Tree | 1647 |
1015 | Binary Tree to Binary Search Tree Conversion using STL set | 1639 |
1016 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1638 |
1017 | Random Pick Index LeetCode Solution | 1625 |
1018 | Data Structure Designing | 1621 |
1019 | Search in Sorted Rotated Array | 1613 |
1020 | Find Maximum Depth of Nested Parenthesis in a String | 1594 |
1021 | Search an Element in Sorted Rotated Array | 1576 |
1022 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1553 |
1023 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1546 |
1024 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1541 |
1025 | Next Greater Element I Leetcode Solution | 1499 |
1026 | Maximum Binary Tree | 1485 |
1027 | Print Maximum Length Chain of Pairs | 1475 |
1028 | Flatten Binary Tree to Linked List LeetCode Solution | 1461 |
1029 | Find k-th smallest element in BST (Order Statistics in BST) | 1446 |
1030 | Peeking Iterator LeetCode Solution | 1423 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1409 |