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 | 43523 |
2 | Maximum occurring character in a string | 19706 |
3 | Plus One Leetcode Solution | 19222 |
4 | Valid Parentheses LeetCode Solution | 19143 |
5 | 3Sum Leetcode Solution | 17066 |
6 | Merge Sorted Arrays Leetcode Solution | 15236 |
7 | First Repeating Element | 15115 |
8 | Single Number Leetcode Solution | 14810 |
9 | Count Primes Leetcode Solutions | 14625 |
10 | Pow(x, n) Leetcode Solution | 14255 |
11 | Sqrt(x) Leetcode Solution | 14105 |
12 | Meeting Rooms II LeetCode Solution | 13192 |
13 | Concatenation of Array LeetCode Solution | 12734 |
14 | Roman to Integer Leetcode Solution | 11916 |
15 | Valid Palindrome Leetcode Solution | 11798 |
16 | Contains Duplicate II Leetcode Solution | 11720 |
17 | Search Insert Position Leetcode Solution | 11716 |
18 | Palindrome Number LeetCode Solution | 11526 |
19 | Remove Duplicates from Sorted Array Leetcode Solution | 11406 |
20 | Jump Game Leetcode Solution | 11135 |
21 | Reverse Vowels of a String Leetcode Solution | 11122 |
22 | Intersection of Two Arrays II Leetcode Solution | 11012 |
23 | Longest Substring Without Repeating Characters LeetCode Solution | 10989 |
24 | Number of Good Pairs Leetcode Solution | 10863 |
25 | Spiral Matrix LeetCode Solution | 10800 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10732 |
27 | House Robber Leetcode Solution | 10679 |
28 | Add Binary Leetcode Solution | 10577 |
29 | Maximum Subarray Leetcode Solution | 10199 |
30 | Number Of 1 bits | 10032 |
31 | Find the Maximum Repeating Number in Array | 9918 |
32 | Text Justification LeetCode Solution | 9801 |
33 | Move Zeroes LeetCode Solution | 9749 |
34 | Jewels and Stones Leetcode Solution | 9709 |
35 | Min Stack Leetcode Solution | 9584 |
36 | Power of Two Leetcode Solution | 9512 |
37 | Longest Palindromic Substring LeetCode Solution | 9457 |
38 | Shuffle String Leetcode Solution | 9404 |
39 | Permutations Leetcode Solution | 9345 |
40 | Evaluation of Postfix Expression | 9259 |
41 | Third Maximum Number Leetcode Solution | 9252 |
42 | Find All Numbers Disappeared in an Array Leetcode Solution | 9214 |
43 | Word Search Leetcode Solution | 9213 |
44 | Daily Temperatures Leetcode Solution | 9196 |
45 | Median of Two Sorted Arrays LeetCode Solution | 9132 |
46 | Next Permutation Leetcode Solution | 9124 |
47 | Search in Rotated Sorted Array Leetcode Solution | 9065 |
48 | Number of Islands LeetCode Solution | 8998 |
49 | Maximum Profit in Job Scheduling Leetcode Solution | 8955 |
50 | Kth Missing Positive Number Leetcode Solution | 8948 |
51 | Longest Common Prefix Leetcode Solution | 8891 |
52 | Next Greater Element I Leetcode Solution | 8870 |
53 | Frog Jump Leetcode Solution | 8706 |
54 | Valid Anagram Leetcode Solution | 8584 |
55 | Find Minimum Distance Between Two Numbers in an Array | 8550 |
56 | Rotate Image LeetCode Solution | 8492 |
57 | Running Sum of 1d Array Leetcode Solution | 8478 |
58 | Shuffle the Array Leetcode Solution | 8448 |
59 | Multiply Strings Leetcode Solution | 8434 |
60 | Can Place Flowers LeetCode Solution | 8400 |
61 | Combination Sum Leetcode Solution | 8390 |
62 | Count and Say Leetcode Solution | 8369 |
63 | House Robber II Leetcode Solution | 8339 |
64 | 3Sum Closest LeetCode Solution | 8274 |
65 | Bulb Switcher LeetCode Solution | 8259 |
66 | Koko Eating Bananas Leetcode Solution | 8095 |
67 | Best Time to Buy and Sell Stock LeetCode Solution | 8083 |
68 | Excel Sheet Column Title Leetcode Solution | 8061 |
69 | Happy Number Leetcode Solution | 8033 |
70 | Isomorphic Strings Leetcode Solution | 8013 |
71 | Subarray and Subsequence | 8000 |
72 | Majority Element Leetcode Solution | 7919 |
73 | Count Pairs With Given Sum | 7894 |
74 | Integer to Roman Leetcode Solution | 7863 |
75 | Missing Number Leetcode Solution | 7856 |
76 | Candy LeetCode Solution | 7844 |
77 | Product of array except self | 7839 |
78 | Rotate String LeetCode Solution | 7795 |
79 | Strobogrammatic Number LeetCode Solution | 7754 |
80 | A Product Array Puzzle | 7708 |
81 | Reverse String Without Temporary Variable | 7665 |
82 | Is Subsequence Leetcode Solution | 7634 |
83 | Find the Difference Leetcode Solution | 7608 |
84 | Find the Duplicate Number LeetCode Solution | 7593 |
85 | Binary Search LeetCode Solution | 7576 |
86 | Expression Evaluation | 7569 |
87 | Find Common Characters Leetcode Solution | 7533 |
88 | Largest Number Leetcode Solution | 7524 |
89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7442 |
90 | String to Integer (atoi) LeetCode Solution | 7381 |
91 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7365 |
92 | Subset Leetcode | 7331 |
93 | Summary Ranges Leetcode Solution | 7281 |
94 | Set Matrix Zeroes | 7269 |
95 | Rabin Karp Algorithm | 7249 |
96 | Word Pattern LeetCode Solution | 7214 |
97 | Sort Characters By Frequency LeetCode Solution | 7206 |
98 | Balanced Binary Tree Leetcode Solution | 7175 |
99 | Find the Town Judge Leetcode Solution | 7137 |
100 | Arranging Coins Leetcode Solution | 7087 |
101 | Unique Paths Leetcode Solution | 7079 |
102 | Find the Winner of the Circular Game LeetCode Solution | 7065 |
103 | Rearrange Positive and Negative Numbers Alternatively in Array | 6983 |
104 | String Compression LeetCode Solution | 6972 |
105 | Asteroid Collision LeetCode Solution | 6945 |
106 | Group Anagrams LeetCode Solution | 6928 |
107 | Postfix to Infix Conversion | 6902 |
108 | Repeated Substring Pattern LeetCode Solution | 6876 |
109 | Page Replacement Algorithms in Operating Systems | 6847 |
110 | Smallest window in a string containing all characters of another string | 6829 |
111 | Sort Colors LeetCode Solution | 6787 |
112 | Matrix Chain Multiplication using Dynamic Programming | 6778 |
113 | Best Time to Buy and Sell Stock II Leetcode Solution | 6758 |
114 | Sort Array By Parity LeetCode Solution | 6639 |
115 | Zigzag Conversion LeetCode Solution | 6628 |
116 | Divide Two Integers Leetcode Solution | 6596 |
117 | Generate Parentheses Leetcode Solution | 6585 |
118 | Kth largest element in an Array Leetcode Solutions | 6576 |
119 | Valid Palindrome II Leetcode Solution | 6571 |
120 | Sum of minimum and maximum elements of all subarrays of size k | 6560 |
121 | Assign Cookies Leetcode Solution | 6485 |
122 | Reverse Integer Leetcode Solution | 6458 |
123 | Remove Duplicates from Sorted Array II Leetcode Solution | 6452 |
124 | Length of Last Word Leetcode Solution | 6419 |
125 | Product of Array Except Self LeetCode Solution | 6415 |
126 | Decode String Leetcode Solution | 6408 |
127 | Find the Row with Maximum Number of 1’s | 6405 |
128 | Pascal Triangle Leetcode | 6353 |
129 | Bus Routes Leetcode Solution | 6345 |
130 | H-Index Leetcode Solution | 6343 |
131 | Number of Provinces Leetcode Solution | 6334 |
132 | Merge Two Sorted Lists Leetcode Solutions | 6316 |
133 | Linked List Cycle II LeetCode Solution | 6242 |
134 | Convert array into Zig-Zag fashion | 6233 |
135 | Minimum Cost For Tickets Leetcode Solution | 6225 |
136 | Minimum Steps to reach target by a Knight | 6224 |
137 | Defanging an IP Address Leetcode Solution | 6216 |
138 | Prefix to Infix Conversion | 6211 |
139 | Optimal Account Balancing LeetCode Solution | 6205 |
140 | Employee Free Time LeetCode Solution | 6196 |
141 | Pascal’s Triangle II Leetcode Solution | 6110 |
142 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 6069 |
143 | Increasing Triplet Subsequence LeetCode Solution | 6043 |
144 | First element occurring k times in an array | 6042 |
145 | Merge Sorted Array LeetCode Solution | 6013 |
146 | Build Array From Permutation Leetcode Solution | 6005 |
147 | Implementation of Deque using Doubly Linked List | 6001 |
148 | Majority Element II Leetcode Solution | 5977 |
149 | Island Perimeter Leetcode Solution | 5976 |
150 | Robot Room Cleaner Leetcode Solution | 5955 |
151 | Max Consecutive Ones Leetcode Solution | 5911 |
152 | Bellman Ford Algorithm | 5906 |
153 | Swap Nodes in Pairs Leetcode Solutions | 5862 |
154 | Find Pair with Given Difference | 5862 |
155 | Check if the Elements of an Array are Consecutive | 5854 |
156 | OSI Model | 5851 |
157 | Set Matrix Zeroes Leetcode Solution | 5844 |
158 | Guess Number Higher or Lower LeetCode Solution | 5829 |
159 | K-th Smallest Element in a Sorted Matrix | 5818 |
160 | KMP Algorithm | 5811 |
161 | Add Two Numbers II Leetcode Solution | 5805 |
162 | Find the Missing Number | 5783 |
163 | Fibonacci Number LeetCode Solution | 5765 |
164 | First negative integer in every window of size k | 5760 |
165 | Trapping Rain Water Leetcode Solution | 5748 |
166 | Lemonade Change Leetcode Solution | 5744 |
167 | Subarray Sum Equals K LeetCode Solution | 5743 |
168 | Design Parking System Leetcode Solution | 5733 |
169 | Delete middle element of a stack | 5701 |
170 | First Unique Character in a String LeetCode Solution | 5695 |
171 | Word Ladder LeetCode Solution | 5674 |
172 | Find All Duplicates in an Array LeetCode Solution | 5653 |
173 | Coin Change 2 Leetcode Solution | 5650 |
174 | Length of the largest subarray with contiguous elements | 5641 |
175 | String Compression | 5641 |
176 | Subarray Product Less Than K LeetCode Solution | 5639 |
177 | Last Stone Weight | 5638 |
178 | Monotonic Array LeetCode Solution | 5628 |
179 | Subarray with Given Sum | 5628 |
180 | Capacity To Ship Packages Within D Days Leetcode Solution | 5626 |
181 | Palindrome Linked List Leetcode Solution | 5601 |
182 | Repeated Substring Pattern | 5550 |
183 | Form Minimum Number from Given Sequence of D’s and I’s | 5528 |
184 | Find Smallest Missing Number in a Sorted Array | 5528 |
185 | Single Element in a Sorted Array LeetCode Solution | 5512 |
186 | Combinations Leetcode Solution | 5484 |
187 | 01 Matrix LeetCode Solution | 5482 |
188 | Remove Duplicates from Sorted List II LeetCode Solution | 5476 |
189 | Prefix to Postfix Conversion | 5466 |
190 | Continuous Subarray Sum LeetCode Solution | 5427 |
191 | Reverse Words in a String III LeetCode Solution | 5415 |
192 | Valid Perfect Square Leetcode Solution | 5412 |
193 | Iterative Implementation of Quick Sort | 5388 |
194 | Same Tree LeetCode Solution | 5379 |
195 | Break a Palindrome LeetCode Solution | 5367 |
196 | Combination Sum | 5365 |
197 | Leetcode Permutations | 5338 |
198 | Merge k Sorted Lists Leetcode Solution | 5329 |
199 | Remove Linked List Elements Leetcode Solution | 5314 |
200 | Slowest Key Leetcode Solution | 5286 |
201 | Top K Frequent Elements LeetCode Solution | 5276 |
202 | Relative Ranks Leetcode Solution | 5273 |
203 | Backspace String Compare | 5269 |
204 | Maximum Product of Three Numbers LeetCode Solution | 5250 |
205 | Rotate List Leetcode Solution | 5239 |
206 | Insert Delete GetRandom O(1) Leetcode Solution | 5234 |
207 | Container With Most Water LeetCode Solution | 5229 |
208 | Find Peak Element LeetCode Solution | 5216 |
209 | Find the Duplicate Element | 5199 |
210 | Contains Duplicate LeetCode Solution | 5186 |
211 | The K Weakest Rows in a Matrix Leetcode Solution | 5167 |
212 | Boolean Parenthesization Problem | 5167 |
213 | Printing brackets in Matrix Chain Multiplication Problem | 5142 |
214 | Cuckoo sequence program | 5133 |
215 | Second Most Repeated Word in a Sequence | 5110 |
216 | Longest Common Subsequence LeetCode Solution | 5107 |
217 | Palindrome Number | 5098 |
218 | Kth Largest Element in a Stream Leetcode Solution | 5091 |
219 | Subarray Sum Equals k | 5075 |
220 | Remove All Occurrences of a Substring LeetCode Solution | 5059 |
221 | Permutation in String Leetcode Solution | 5042 |
222 | Relative Sort Array Leetcode Solution | 5040 |
223 | Rearrange given Array in Maximum Minimum Form | 5037 |
224 | Make The String Great Leetcode Solution | 5035 |
225 | Max Area of Island | 5017 |
226 | Find Leaders in an Array | 5011 |
227 | Unique Paths II Leetcode Solution | 5008 |
228 | Arithmetic Expression Evaluation | 5001 |
229 | Generate all Binary Strings Without Consecutive 1’s | 4999 |
230 | Convert a Number to Hexadecimal Leetcode Solution | 4995 |
231 | Delete Node in a Linked List Leetcode Solution | 4982 |
232 | Target Sum | 4970 |
233 | Check If Two String Arrays are Equivalent Leetcode Solution | 4960 |
234 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4954 |
235 | N-Queens LeetCode Solution | 4949 |
236 | Moving Average from Data Stream Leetcode Solution | 4947 |
237 | Time Based Key-Value Store LeetCode Solution | 4938 |
238 | Scramble String | 4926 |
239 | Letter Combinations of a Phone Number | 4910 |
240 | Count Good Nodes in Binary Tree Leetcode Solution | 4904 |
241 | Next Permutation | 4904 |
242 | Number of Dice Rolls With Target Sum LeetCode Solution | 4903 |
243 | LRU Cache LeetCode Solution | 4890 |
244 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4856 |
245 | Check If N and Its Double Exist Leetcode Solution | 4855 |
246 | Stone Game LeetCode | 4847 |
247 | Given two unsorted arrays find all pairs whose sum is x | 4846 |
248 | Find Triplet in Array With a Given Sum | 4835 |
249 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4801 |
250 | Flipping an Image LeetCode Solution | 4798 |
251 | Prim’s Algorithm | 4780 |
252 | Minimum swaps required to bring all elements less than or equal to k together | 4773 |
253 | Reverse Only Letters LeetCode Solution | 4749 |
254 | Top K Frequent Elements | 4749 |
255 | Remove Minimum Characters so that Two Strings Become Anagrams | 4747 |
256 | Find The Duplicate Number | 4738 |
257 | Stock Buy Sell to Maximize Profit | 4735 |
258 | Min Cost Climbing Stairs LeetCode Solution | 4725 |
259 | Minimum Knight Moves LeetCode Solution | 4716 |
260 | Min Stack | 4715 |
261 | Student Attendance Record I Leetcode Solution | 4712 |
262 | Minimum Operations to convert X to Y | 4657 |
263 | To Lower Case Leetcode Solution | 4656 |
264 | Single Number | 4651 |
265 | Maximum Sum Increasing Subsequence | 4648 |
266 | Smallest Positive Number Missing in an Unsorted Array | 4646 |
267 | The kth Factor of n Leetcode Solution | 4636 |
268 | Maximum Subarray Sum using Divide and Conquer | 4626 |
269 | Reverse words in a string | 4614 |
270 | License Key Formatting Leetcode Solution | 4613 |
271 | Maximum Population Year LeetCode Solution | 4599 |
272 | Longest Common Subsequence | 4542 |
273 | Search Suggestions System LeetCode Solution | 4533 |
274 | Remove Nth Node From End of List Leetcode Solution | 4531 |
275 | Top K Frequent Words LeetCode Solution | 4524 |
276 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4516 |
277 | Find the Number Occurring Odd Number of Times in an Array | 4507 |
278 | Reformat Date LeetCode Solution | 4501 |
279 | Sum of Subarray Ranges Leetcode Solution | 4491 |
280 | Find Words That Can Be Formed by Characters Leetcode Solution | 4484 |
281 | BFS for Disconnected Graph | 4479 |
282 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4446 |
283 | Minimum Path Sum Leetcode Solution | 4446 |
284 | Maximum Depth of Binary Tree Leetcode Solution | 4434 |
285 | Reveal Cards In Increasing Order Leetcode Solution | 4412 |
286 | N-th Tribonacci Number Leetcode Solution | 4410 |
287 | Intersection of Two Arrays | 4387 |
288 | Diagonal Traverse LeetCode Solution | 4377 |
289 | Reverse individual words | 4373 |
290 | House Robber | 4372 |
291 | Evaluate Division | 4361 |
292 | Best Time to Buy and Sell Stock III Leetcode Solution | 4354 |
293 | Maximize Distance to Closest Person LeetCode Solution | 4352 |
294 | Find any one of the multiple repeating elements in read only array | 4350 |
295 | Last Stone Weight II LeetCode Solution | 4349 |
296 | Minimum Characters to be Added at Front to Make String Palindrome | 4343 |
297 | Design A Leaderboard Leetcode Solution | 4321 |
298 | Remove Duplicates from Sorted List LeetCode Solution | 4318 |
299 | Sort Elements by Frequency of Occurrences | 4318 |
300 | Binary Tree Inorder Traversal LeetCode Solution | 4317 |
301 | Find if Path Exists in Graph Leetcode Solution | 4316 |
302 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4315 |
303 | Count of index pairs with equal elements in an array | 4307 |
304 | Count Number of Occurrences in a Sorted Array | 4306 |
305 | Length of Longest valid Substring | 4288 |
306 | Range Sum Query 2D – Immutable Leetcode Solution | 4285 |
307 | Reverse Nodes in k-Group LeetCode Solution | 4273 |
308 | Most Frequent Element in an Array | 4266 |
309 | Minimum number of Merge Operations to make an Array Palindrome | 4254 |
310 | Implement a stack using single queue | 4241 |
311 | Sudoku Solver | 4238 |
312 | Remove All Ones With Row and Column Flips Leetcode Solution | 4237 |
313 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4218 |
314 | Brightest Position on Street LeetCode Solution | 4207 |
315 | Mobile Numeric Keypad Problem | 4201 |
316 | Find the Closest Palindrome number | 4200 |
317 | Spiral Matrix II Leetcode Solution | 4191 |
318 | Split Linked List in Parts Leetcode Solution | 4178 |
319 | Find Leaves of Binary Tree LeetCode Solution | 4177 |
320 | Reverse Bits | 4171 |
321 | Special Positions in a Binary Matrix Leetcode Solution | 4170 |
322 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4162 |
323 | Invalid Transactions LeetCode Solution | 4149 |
324 | Symmetric Tree Leetcode Solution | 4138 |
325 | Paint House LeetCode Solution | 4131 |
326 | Shortest Word Distance Leetcode Solution | 4131 |
327 | Maximum Subarray | 4127 |
328 | Sort Array By Parity II Leetcode Solution | 4105 |
329 | Arrange given Numbers to Form the Biggest Number II | 4097 |
330 | Diagonal Traversal LeetCode Solution | 4081 |
331 | Round Robin Scheduling | 4075 |
332 | Find Duplicates in an Array in Most Efficient Way | 4075 |
333 | One Edit Distance LeetCode Solution | 4074 |
334 | Largest Rectangle in Histogram LeetCode Solution | 4061 |
335 | Remove Invalid Parentheses Leetcode Solution | 4044 |
336 | Dijkstra Algorithm | 4044 |
337 | Rank Transform of an Array Leetcode Solution | 4039 |
338 | Hamming Distance Leetcode Solution | 4037 |
339 | Jump Game | 4031 |
340 | Partition Labels LeetCode Solution | 4025 |
341 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 4024 |
342 | Alien Dictionary LeetCode Solution | 4023 |
343 | Unique Paths | 4020 |
344 | Tug of War | 4001 |
345 | Maximal Square | 3997 |
346 | Minimum Moves to Equal Array Elements Leetcode Solution | 3996 |
347 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3984 |
348 | String Matching in an Array Leetcode Solution | 3978 |
349 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3972 |
350 | Construct BST from its given Level Order Traversal | 3967 |
351 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3964 |
352 | Range Sum of BST LeetCode Solution | 3963 |
353 | The Celebrity Problem | 3963 |
354 | Next Permutation LeetCode Solution | 3959 |
355 | Minimum operation to make all elements equal in array | 3956 |
356 | Bitwise AND of Numbers Range LeetCode Solution | 3950 |
357 | Least Number of Unique Integers after K Removals Leetcode Solution | 3947 |
358 | Minimum Depth of Binary Tree Leetcode Solution | 3940 |
359 | Merge Two Sorted Linked Lists | 3926 |
360 | Longest Common Prefix using Trie | 3925 |
361 | Pair of Positive Negative Values in an Array | 3924 |
362 | Validate Stack Sequences LeetCode Solution | 3923 |
363 | Unique Paths III LeetCode Solution | 3919 |
364 | Postfix to Prefix Conversion | 3915 |
365 | Maximum Circular Subarray Sum | 3912 |
366 | Smallest Subarray with k Distinct Numbers | 3911 |
367 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3910 |
368 | Given an Array of Pairs Find all Symmetric Pairs in it | 3905 |
369 | Transpose Graph | 3891 |
370 | Check whether Strings are K Distance Apart or Not | 3890 |
371 | Minimum Time Visiting All Points Leetcode Solution | 3889 |
372 | Count of Triplets With Sum Less than Given Value | 3884 |
373 | Minimum Cost to Hire K Workers | 3876 |
374 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3870 |
375 | Substring with Concatenation of All Words Leetcode Solution | 3869 |
376 | Robot Bounded In Circle LeetCode Solution | 3866 |
377 | K Empty Slots LeetCode | 3866 |
378 | Next Greater Element III LeetCode Solution | 3865 |
379 | Invert Binary Tree LeetCode Solution | 3863 |
380 | Recursion | 3859 |
381 | Find minimum difference between any two elements | 3857 |
382 | Clone Graph LeetCode Solution | 3854 |
383 | Check if a given array contains duplicate elements within k distance from each other | 3851 |
384 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3841 |
385 | Ugly Number II LeetCode Solution | 3840 |
386 | Kruskal Algorithm | 3831 |
387 | Implementation of Deque using circular array | 3828 |
388 | Sort a stack using a temporary stack | 3825 |
389 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3820 |
390 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3812 |
391 | Non-decreasing Array LeetCode Solution | 3807 |
392 | Invert Binary Tree LeetCode Solution | 3795 |
393 | Permutation Sequence LeetCode Solution | 3793 |
394 | Toeplitz Matrix | 3789 |
395 | Stack Permutations (Check if an array is stack permutation of other) | 3787 |
396 | Graph Valid Tree LeetCode Solution | 3783 |
397 | LRU Cache Implementation | 3782 |
398 | Longest subsequence such that difference between adjacents is one | 3780 |
399 | Find the subarray with least average | 3779 |
400 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3778 |
401 | Word Search | 3769 |
402 | Sliding Window Technique | 3769 |
403 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3768 |
404 | Kth Smallest Element in a BST Leetcode Solution | 3763 |
405 | Design Browser History LeetCode Solution | 3760 |
406 | Longest subarray not having more than K distinct elements | 3760 |
407 | 3 Sum | 3758 |
408 | Find the First and Second Smallest Elements | 3758 |
409 | Missing Element in Sorted Array LeetCode Solution | 3751 |
410 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3743 |
411 | Find duplicates in a given array when elements are not limited to a range | 3739 |
412 | Partition List Leetcode Solution | 3730 |
413 | Number of Islands II LeetCode Solution | 3724 |
414 | Priority Queue using doubly linked list | 3721 |
415 | Common elements in all rows of a given matrix | 3718 |
416 | Path With Maximum Minimum Value LeetCode Solution | 3716 |
417 | Find Top K (or Most Frequent) Numbers in a Stream | 3715 |
418 | Queries for counts of array elements with values in given range | 3713 |
419 | Number Complement Leetcode Solution | 3711 |
420 | Stone Game II Leetcode | 3709 |
421 | First Circular Tour to Visit all the Petrol Bunks | 3707 |
422 | K Closest Points to Origin Leetcode Solution | 3706 |
423 | Top View of Binary Tree | 3701 |
424 | Number of Smaller Elements on Right Side | 3699 |
425 | Minesweeper LeetCode Solution | 3697 |
426 | Max stack | 3696 |
427 | Find Maximum Level sum in Binary Tree | 3696 |
428 | Search a 2D Matrix II Leetcode Solution | 3688 |
429 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3687 |
430 | Sequences of given length where every element is more than or equal to twice of previous | 3687 |
431 | LRU Cache Leetcode Solution | 3679 |
432 | Combination Sum IV LeetCode Solution | 3679 |
433 | Find the Peak Element from an Array | 3678 |
434 | Integer Break LeetCode Solution | 3675 |
435 | Snakes and Ladders LeetCode Solution | 3668 |
436 | Nth Catalan Number | 3668 |
437 | High Five LeetCode Solution | 3660 |
438 | Painting Fence Algorithm | 3659 |
439 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3657 |
440 | Sort elements by frequency | 3650 |
441 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3636 |
442 | Odd Even Linked List Leetcode Solution | 3633 |
443 | Insert Interval Leetcode Solution | 3628 |
444 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3623 |
445 | Maximum Consecutive Numbers Present in an Array | 3617 |
446 | Fibonacci Number LeetCode Solution | 3616 |
447 | Rearrange array such that even positioned are greater than odd | 3615 |
448 | Check if Two given Strings are Isomorphic to each other | 3615 |
449 | Flood Fill LeetCode | 3613 |
450 | Shortest Palindrome | 3611 |
451 | Sliding Window Maximum LeetCode Solution | 3606 |
452 | Consecutive Characters LeetCode Solution | 3605 |
453 | 4Sum | 3602 |
454 | Search in a Binary Search Tree Leetcode Solution | 3599 |
455 | Distance of nearest cell having 1 in a binary matrix | 3592 |
456 | Count items common to both the lists but with different prices | 3586 |
457 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3574 |
458 | Tiling Problem | 3574 |
459 | Move All the Zeros to the End of the Given Array | 3571 |
460 | Gold Mine Problem | 3557 |
461 | Number of Closed Islands Leetcode Solution | 3555 |
462 | Expression Contains Redundant Bracket or Not | 3554 |
463 | Spiral Matrix III LeetCode Solution | 3552 |
464 | Kth Non-repeating Character | 3552 |
465 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3550 |
466 | Insert into a Binary Search Tree Leetcode Solution | 3549 |
467 | Minimum Absolute Difference in BST Leetcode Solution | 3543 |
468 | Find a Peak Element II LeetCode Solution | 3538 |
469 | Coin Change Problem | 3524 |
470 | Queries for GCD of all numbers of an array except elements in a given range | 3521 |
471 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3520 |
472 | Integer to English words | 3519 |
473 | Minimum Path Sum | 3515 |
474 | N queen problem | 3515 |
475 | Sliding Window Median Leetcode Solution | 3511 |
476 | Decompress Run-Length Encoded List Leetcode Solution | 3511 |
477 | Evaluate Reverse Polish Notation LeetCode Solution | 3508 |
478 | Restore IP Addresses Leetcode Solution | 3507 |
479 | Trapping Rain Water LeetCode Solution | 3505 |
480 | Longest Common Prefix using Sorting | 3501 |
481 | Interval Tree | 3494 |
482 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3489 |
483 | Balanced Expression with Replacement | 3487 |
484 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3482 |
485 | Sorting array using Stacks | 3479 |
486 | Sort an array according to the order defined by another array | 3479 |
487 | Sort Colors | 3475 |
488 | Binary Tree Maximum Path Sum LeetCode Solution | 3474 |
489 | Find Pythagorean Triplets from Array | 3462 |
490 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3455 |
491 | Majority Element | 3454 |
492 | Cells with Odd Values in a Matrix LeetCode Solution | 3448 |
493 | Best Time to Buy and Sell Stock | 3444 |
494 | Reverse a linked list | 3444 |
495 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3442 |
496 | Palindrome Substring Queries | 3436 |
497 | Subset sum problem | 3427 |
498 | Number of Days Between Two Dates LeetCode Solution | 3426 |
499 | Priority Queue in C++ | 3423 |
500 | The Stock Span Problem | 3416 |
501 | Find Median from Data Stream LeetCode Solution | 3413 |
502 | Fibonacci numbers | 3411 |
503 | Path Sum II LeetCode Solution | 3408 |
504 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3406 |
505 | Queue using Stacks | 3401 |
506 | Sieve of Eratosthenes | 3399 |
507 | Find the first Repeating Number in a Given Array | 3395 |
508 | Path Crossing Leetcode Solution | 3392 |
509 | Camelcase Matching Leetcode Solution | 3385 |
510 | Is Graph Bipartite? LeetCode Solution | 3381 |
511 | Intersection of Two Linked Lists LeetCode Solution | 3374 |
512 | Largest rectangular sub-matrix whose sum is 0 | 3374 |
513 | Kth ancestor of a node in binary tree | 3373 |
514 | Multiplication of Two Matrices | 3372 |
515 | Design Hit Counter LeetCode Solution | 3368 |
516 | How to Implement Stack Using Priority Queue or Heap? | 3362 |
517 | Pancake Sorting Problem | 3357 |
518 | Divide Chocolate LeetCode Solution | 3351 |
519 | Longest Increasing Path in a Matrix LeetCode Solution | 3351 |
520 | Analyze User Website Visit Pattern LeetCode Solution | 3350 |
521 | Custom Sort String Leetcode Solution | 3349 |
522 | Shortest Completing Word Leetcode Solution | 3349 |
523 | Different Ways to Add Parentheses Leetcode Solution | 3339 |
524 | Monotonic Array Leetcode Solution | 3336 |
525 | Count Submatrices With All Ones LeetCode Solution | 3332 |
526 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3327 |
527 | Count subarrays having total distinct elements same as original array | 3323 |
528 | Group Anagrams | 3320 |
529 | Find a Fixed Point in a Given Array | 3319 |
530 | Scramble String LeetCode Solution | 3310 |
531 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3310 |
532 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3307 |
533 | Perfect Squares LeetCode Solution | 3305 |
534 | Detect a loop in the Linked List | 3297 |
535 | Generate all Binary Strings from Given Pattern | 3293 |
536 | Shifting Letters LeetCode Solution | 3292 |
537 | Merge Overlapping Intervals | 3284 |
538 | Queue based approach for first non-repeating character in a stream | 3283 |
539 | Minimum Height Trees | 3282 |
540 | Construction of Longest Increasing Subsequence (N log N) | 3281 |
541 | Implement Trie (Prefix Tree) Leetcode Solution | 3279 |
542 | Implement strStr() LeetCode Solution | 3274 |
543 | Valid Boomerang Leetcode Solution | 3273 |
544 | Number of Distinct Islands Leetcode Solution | 3272 |
545 | Nearest Exit from Entrance in Maze LeetCode Solution | 3266 |
546 | Decode Ways | 3264 |
547 | Reorder Data in Log Files LeetCode Solution | 3258 |
548 | How to Create Mergable Stack? | 3258 |
549 | Race Car LeetCode Solution | 3254 |
550 | Champagne Tower LeetCode Solution | 3246 |
551 | Sort a stack using recursion | 3245 |
552 | Sliding Window Maximum | 3243 |
553 | Morris Traversal | 3240 |
554 | Binary Tree zigzag level order Traversal | 3240 |
555 | Maximum Element in an Array which is Increasing and then Decreasing | 3240 |
556 | Longest Common Prefix using Divide and Conquer | 3239 |
557 | Maximum Sum of Non Consecutive Elements | 3239 |
558 | Find the Lost Element From a Duplicated Array | 3234 |
559 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3233 |
560 | Number of Equivalent Domino Pairs Leetcode Solution | 3229 |
561 | LCS (Longest Common Subsequence) of three strings | 3223 |
562 | Insert Node in the Sorted Linked List | 3221 |
563 | Most Stones Removed with Same Row or Column LeetCode Solution | 3220 |
564 | Find if an Expression has Duplicate Parenthesis or Not | 3219 |
565 | Find maximum length Snake sequence | 3212 |
566 | Count Possible Triangles | 3212 |
567 | First missing positive | 3211 |
568 | Build an Array With Stack Operations Leetcode Solution | 3210 |
569 | Recover Binary Search Tree | 3210 |
570 | Palindrome Permutation LeetCode Solution | 3207 |
571 | Design Skiplist LeetCode Solution | 3197 |
572 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3197 |
573 | Letter Case Permutation | 3196 |
574 | Decode String | 3195 |
575 | Smallest Good Base | 3191 |
576 | Find a Sorted Subsequence of size 3 | 3190 |
577 | Rectangle Overlap LeetCode Solution | 3182 |
578 | Minimum Bracket Reversals | 3180 |
579 | Merge Two Binary Trees LeetCode Solution | 3175 |
580 | Contiguous Array LeetCode Solution | 3174 |
581 | Longest Repeated Subsequence | 3166 |
582 | Distance Between Bus Stops Leetcode Solution | 3165 |
583 | Guess Number Higher or Lower II | 3165 |
584 | All Possible Full Binary Trees LeetCode Solution | 3164 |
585 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3164 |
586 | Largest Subarray with Equal Number of 0’s and 1’s | 3155 |
587 | Recover Binary Search Tree Leetcode Solution | 3154 |
588 | Palindrome Partitioning Leetcode Solution | 3153 |
589 | Find the Town Judge LeetCode Solution | 3149 |
590 | Maximum Length of Chain Pairs | 3149 |
591 | Maximum Depth of N-ary Tree Leetcode Solution | 3148 |
592 | Minimum Height Trees LeetCode Solution | 3146 |
593 | Print all Palindromic Partitions of a String | 3145 |
594 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3140 |
595 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3135 |
596 | Minimum number of jumps to reach end | 3134 |
597 | Design a Stack With Increment Operation Leetcode Solution | 3130 |
598 | K-th Distinct Element in an Array | 3125 |
599 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3115 |
600 | Rearrange Spaces Between Words Leetcode Solution | 3111 |
601 | Check for Balanced Parentheses in an Expression | 3106 |
602 | Valid Parentheses Leetcode Solution | 3105 |
603 | The Maze III LeetCode Solution | 3103 |
604 | Reorder an Array According to the Given Indexes | 3102 |
605 | Implement Two Stacks in an Array | 3101 |
606 | Subarrays with K Different Integers Leetcode Solution | 3094 |
607 | Mean of Array After Removing Some Elements Leetcode Solution | 3084 |
608 | Maximize Elements Using Another Array | 3082 |
609 | Sort a String According to Another String | 3082 |
610 | Maximum Score After Splitting a String Leetcode Solution | 3073 |
611 | Jump Game IV LeetCode Solution | 3061 |
612 | Maximum sum rectangle in a 2D matrix | 3057 |
613 | Count pair with Given Sum | 3054 |
614 | Contains Duplicate | 3048 |
615 | Find the First Circular Tour that visits all the Petrol Pumps | 3046 |
616 | Valid Sudoku | 3038 |
617 | Perform String Shifts Leetcode | 3038 |
618 | Convert BST to Min Heap | 3034 |
619 | Word Break | 3028 |
620 | Possible Bipartition LeetCode Solution | 3023 |
621 | Edit Distance LeetCode Solution | 3023 |
622 | Minimum Jumps to Reach Home LeetCode Solution | 3022 |
623 | Iterative Method to find Height of Binary Tree | 3016 |
624 | Heap Sort | 3015 |
625 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 3011 |
626 | A Space Optimized DP solution for 0-1 Knapsack Problem | 3010 |
627 | Palindrome Permutations of a String | 3006 |
628 | Find the Minimum Element in a Sorted and Rotated Array | 3006 |
629 | Find Largest Value in Each Tree Row LeetCode Solution | 2993 |
630 | Reach a Number LeetCode Solution | 2983 |
631 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2979 |
632 | Best Meeting Point LeetCode Solution | 2977 |
633 | Count Sub Islands LeetCode Solution | 2973 |
634 | Merge Overlapping Intervals II | 2972 |
635 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2970 |
636 | Palindrome Permutation | 2968 |
637 | Palindromic Substrings Leetcode Solution | 2966 |
638 | Number of palindromic paths in a matrix | 2964 |
639 | Merge Two Balanced Binary Search Trees | 2958 |
640 | Find the Subarray of given length with Least Average | 2948 |
641 | My Calendar I LeetCode Solution | 2947 |
642 | Segregate 0s and 1s in an Array | 2947 |
643 | Sorted Linked List to Balanced BST | 2945 |
644 | All Unique Triplets that Sum up to a Given Value | 2943 |
645 | Caesar Cipher | 2938 |
646 | Huffman Coding | 2933 |
647 | Pair with given product | 2932 |
648 | Brick Wall LeetCode Solution | 2926 |
649 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2922 |
650 | Level order Traversal in Spiral Form | 2920 |
651 | Construct BST from given Preorder Traversal | 2918 |
652 | Find Median from data Stream | 2916 |
653 | Word Pattern | 2913 |
654 | Swapping Nodes in a Linked List Leetcode Solution | 2912 |
655 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2901 |
656 | Partition Problem | 2897 |
657 | Find all triplets with zero sum | 2896 |
658 | Merge K Sorted Arrays and Print Sorted Output | 2879 |
659 | Count Good Nodes in Binary Tree LeetCode Solution | 2878 |
660 | Maximize Sum of Array after K Negations Leetcode Solution | 2873 |
661 | Print Fibonacci sequence using 2 variables | 2870 |
662 | Validate Binary Search Tree | 2866 |
663 | Minimum time required to rot all oranges | 2855 |
664 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2853 |
665 | Add two numbers | 2852 |
666 | Alien Dictionary | 2850 |
667 | Isomorphic Strings LeetCode Solution | 2848 |
668 | Find whether a subarray is in form of a mountain or not | 2848 |
669 | Count Distinct Elements in Every Window of Size K | 2846 |
670 | Queries on Probability of Even or Odd Number in given Ranges | 2841 |
671 | Detect Capital Leetcode Solution | 2840 |
672 | Find all pairs (a, b) in an array such that a % b = k | 2836 |
673 | Sort 0s 1s and 2s in an Array | 2835 |
674 | Longest Subarray Having Count of 1s One More than Count of 0s | 2834 |
675 | Largest Sum Contiguous Subarray | 2834 |
676 | How to Efficiently Implement k Stacks in a Single Array? | 2834 |
677 | Convert Sorted List to Binary Search Tree | 2834 |
678 | Maximum Frequency Stack Leetcode Solution | 2831 |
679 | Bubble sort using two Stacks | 2829 |
680 | Split Array Into Consecutive Subsequences | 2824 |
681 | Range Sum Query 2D – Immutable LeetCode Solution | 2823 |
682 | Binary Tree Right Side View LeetCode Solution | 2821 |
683 | Counting Bits | 2821 |
684 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2818 |
685 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2812 |
686 | Find four elements that sum to a given value (Hashmap) | 2811 |
687 | Rotate Array | 2808 |
688 | Length of Longest Fibonacci Subsequence | 2807 |
689 | Breadth First Search (BFS) for a Graph | 2804 |
690 | Remove brackets from an algebraic string containing + and – operators | 2802 |
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 | 2796 |
692 | Binary Tree to Binary Search Tree Conversion | 2795 |
693 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2792 |
694 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2789 |
695 | Count ways to reach the nth stair using step 1, 2 or 3 | 2785 |
696 | Partition to K Equal Sum Subsets Leetcode Solution | 2776 |
697 | Print all subarrays with 0 sum | 2768 |
698 | Remove Palindromic Subsequences Leetcode Solution | 2767 |
699 | Merge Two Sorted Lists Leetcode | 2767 |
700 | Populating Next Right Pointers in Each Node | 2762 |
701 | Difference Array | Range update query in O(1) | 2758 |
702 | Populating Next Right Pointers in Each Node Leetcode Solution | 2749 |
703 | Find pairs with given sum such that elements of pair are in different rows | 2743 |
704 | Partition Equal Subset Sum | 2742 |
705 | Topological Sorting | 2742 |
706 | Happy Number | 2736 |
707 | String comparison containing wildcards | 2736 |
708 | Minimum Sum Path in a Triangle | 2735 |
709 | Remove duplicates from sorted array | 2735 |
710 | Arithmetic Slices II – Subsequence LeetCode Solution | 2732 |
711 | Elements Appear more than N/K times in Array | 2721 |
712 | Contiguous Array Leetcode | 2720 |
713 | Check if a Linked list of Strings form a Palindrome | 2719 |
714 | Concatenation of Array LeetCode Solution | 2718 |
715 | Queue Reconstruction by Height | 2715 |
716 | Web Crawler LeetCode Solution | 2713 |
717 | Find All Pairs With a Given Difference | 2710 |
718 | Inorder Successor of a node in Binary Tree | 2706 |
719 | Find Duplicate Subtrees | 2696 |
720 | Root to Leaf path with target sum Leetcode Solutions | 2684 |
721 | Reverse Nodes in K-Group | 2684 |
722 | Increasing Subsequence of Length three with Maximum Product | 2677 |
723 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2668 |
724 | Check if String Follows Order of Characters by a Pattern or not | 2667 |
725 | Score of Parenthesis LeetCode Solution | 2658 |
726 | Finding K closest element | 2658 |
727 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2651 |
728 | Swap Kth Node from beginning with Kth Node from End | 2651 |
729 | Symmetric Tree | 2650 |
730 | Given a binary tree, how do you remove all the half nodes? | 2648 |
731 | Maximum Distance in Array | 2646 |
732 | Pancake Sorting | 2642 |
733 | Longest Common Prefix Using Binary Search II | 2641 |
734 | Climbing stairs | 2638 |
735 | Longest Increasing Subsequence | 2633 |
736 | Container with Most Water | 2633 |
737 | Maximum Product Subarray II | 2633 |
738 | An Interesting Method to generate Binary Numbers from 1 to n | 2632 |
739 | Count Minimum Steps to Get the given Array | 2631 |
740 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2629 |
741 | Construct Binary Tree from given Parent Array representation | 2629 |
742 | Deletion in a Binary Tree | 2618 |
743 | Sum Root to Leaf Numbers LeetCode Solution | 2609 |
744 | Parallel Courses II LeetCode Solution | 2607 |
745 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2607 |
746 | Check if all levels of two Binary Tree are anagrams or not | 2607 |
747 | Find the first repeating element in an array of integers | 2607 |
748 | Delete Nodes and Return Forest Leetcode Solution | 2605 |
749 | Union and Intersection of two Linked Lists | 2602 |
750 | Delete Nth node from the end of the given linked list | 2596 |
751 | Substring With Concatenation Of All Words | 2593 |
752 | MiniMax Algorithm | 2593 |
753 | Boundary Traversal of binary tree | 2588 |
754 | Level order traversal using two Queues | 2585 |
755 | Kill Process LeetCode Solution | 2583 |
756 | Count pairs from two linked lists whose sum is equal to a given value | 2582 |
757 | Level of Each node in a Tree from source node | 2575 |
758 | BFS vs DFS for Binary Tree | 2570 |
759 | Sort Array by Increasing Frequency Leetcode Solution | 2569 |
760 | Non-overlapping sum of two sets | 2569 |
761 | Iterative Depth First Traversal of Graph | 2567 |
762 | Minimum Size Subarray Sum | 2567 |
763 | Linked List Cycle | 2564 |
764 | Find K Closest Elements LeetCode Solution | 2563 |
765 | Valid Anagrams | 2560 |
766 | Rearrange an Array Such that arr[i] is equal to i | 2558 |
767 | Merge K Sorted Linked Lists | 2558 |
768 | Find Maximum of Minimum for Every Window Size in a Given Array | 2550 |
769 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2549 |
770 | New 21 Game | 2545 |
771 | Iterative Preorder Traversal | 2541 |
772 | Longest Common Prefix Word by Word Matching | 2540 |
773 | Nested List Weight Sum II LeetCode Solution | 2538 |
774 | Remove Duplicates from Sorted List II | 2536 |
775 | Find the Difference Leetcode Solution | 2532 |
776 | Maximum size subarray sum equals k | 2527 |
777 | Matrix Chain Multiplication | 2526 |
778 | Range LCM Queries | 2524 |
779 | Merging Intervals | 2523 |
780 | Super Ugly Number | 2514 |
781 | Reservoir Sampling | 2514 |
782 | Maximum Product Subarray | 2507 |
783 | Verify Preorder Serialization of a Binary Tree | 2504 |
784 | Friends Of Appropriate Ages LeetCode Solution | 2501 |
785 | Palindrome Partitioning | 2500 |
786 | K maximum sums of overlapping contiguous sub-arrays | 2499 |
787 | Reorder Array Using Given Indexes | 2497 |
788 | Balanced Binary Tree | 2494 |
789 | Check if a queue can be sorted into another queue using a stack | 2492 |
790 | Print a Binary Tree in Vertical Order | 2492 |
791 | Smallest Range II Leetcode Solution | 2487 |
792 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2487 |
793 | Flatten Binary Tree to Linked List LeetCode Solution | 2486 |
794 | Missing Number | 2484 |
795 | Check if any two intervals overlap among a given set of intervals | 2470 |
796 | Create Maximum Number | 2465 |
797 | Defanging an IP Address LeetCode Solution | 2463 |
798 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2461 |
799 | Vertical sum in a given binary tree | 2458 |
800 | Valid Triangle Number LeetCode Solution | 2456 |
801 | The Painter’s Partition Problem | 2455 |
802 | Check if Two Expressions With Brackets are Same | 2455 |
803 | Peak Index in a Mountain Array LeetCode Solution | 2452 |
804 | Sorting a K Sorted Array | 2452 |
805 | Lowest Common Ancestor | 2447 |
806 | Maximum difference between two elements such as larger element comes after smaller | 2447 |
807 | Minimum insertions to form a palindrome with permutations allowed | 2443 |
808 | Minimum Distance Between BST Nodes Leetcode Solution | 2436 |
809 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2435 |
810 | Unique Binary Search Trees LeetCode Solution | 2433 |
811 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2429 |
812 | Find subarray with given sum (Handles Negative Numbers) | 2425 |
813 | Count number of triplets with product equal to given number | 2425 |
814 | Hamming Distance | 2422 |
815 | Largest Submatrix With Rearrangements LeetCode Solution | 2421 |
816 | Number Of Longest Increasing Subsequence | 2421 |
817 | Tree Traversal (Preorder, Inorder & Postorder) | 2417 |
818 | Find K Length Subarray of Maximum Average | 2412 |
819 | Valid Triangle Number LeetCode Solution | 2411 |
820 | Check if two nodes are on the same path in a Tree | 2405 |
821 | Flatten 2D Vector LeetCode Solution | 2404 |
822 | First Bad Version | 2401 |
823 | Find Common Characters Leetcode Solution | 2398 |
824 | Closest Leaf in a Binary Tree LeetCode Solution | 2396 |
825 | Employee Importance LeetCode Solution | 2395 |
826 | Find distance between two nodes of a Binary Tree | 2392 |
827 | Check Completeness of a Binary Tree LeetCode Solution | 2391 |
828 | Third Maximum Number Leetcode Solution | 2390 |
829 | Iterative Postorder Traversal Using Two Stacks | 2389 |
830 | Array Nesting Leetcode Solution | 2387 |
831 | Merging Two Sorted Arrays | 2387 |
832 | Find Peak Element | 2385 |
833 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2377 |
834 | Sort Elements by Frequency II | 2377 |
835 | Products of ranges in an array | 2375 |
836 | Find Element Using Binary Search in Sorted Array | 2374 |
837 | Newman-Conway Sequence | 2373 |
838 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2372 |
839 | Print all triplets in sorted array that form AP | 2371 |
840 | Valid Parenthesis String | 2370 |
841 | Find Smallest Range Containing Elements from k Lists | 2368 |
842 | Maximum subsequence sum such that no three are consecutive | 2367 |
843 | Diagonal Traversal of Binary Tree | 2364 |
844 | Largest BST Subtree LeetCode Solution | 2362 |
845 | Print All Distinct Elements of a Given Integer Array | 2362 |
846 | Arrange given numbers to form the biggest number | 2358 |
847 | Maximum number of segments of lengths a, b and c | 2357 |
848 | Longest Bitonic Subsequence | 2353 |
849 | Find Sum of all unique sub-array sum for a given array | 2351 |
850 | Distinct Subsequences | 2350 |
851 | Longest Palindromic Subsequence | 2349 |
852 | Print Right View of a Binary Tree | 2347 |
853 | Range Sum Query using Sparse Table | 2341 |
854 | Stone Game IV LeetCode Solution | 2339 |
855 | Bottom View of a Binary Tree | 2337 |
856 | Lower Case To Upper Case | 2336 |
857 | Find Nth Node | 2334 |
858 | Largest subarray with equal number of 0s and 1s | 2330 |
859 | Segment Tree | 2330 |
860 | Largest divisible pairs subset | 2324 |
861 | Path Sum | 2322 |
862 | Contiguous Array | 2319 |
863 | Trapping Rain Water II LeetCode Solution | 2317 |
864 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2317 |
865 | Number of siblings of a given Node in n-ary Tree | 2316 |
866 | Stone Game IV LeetCode Solution | 2310 |
867 | Subset Sum Problem in O(sum) space | 2309 |
868 | Shuffle an Array | 2309 |
869 | Four Elements that Sum to Given | 2309 |
870 | Binary array after M range toggle operations | 2300 |
871 | Merge Two Sorted Arrays | 2299 |
872 | Median of Two Sorted Arrays | 2297 |
873 | Find the largest multiple of 3 | 2295 |
874 | Isomorphic Strings | 2289 |
875 | Unique Binary Search Trees | 2283 |
876 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2279 |
877 | Count and Say | 2279 |
878 | Permutations of a Given String Using STL | 2279 |
879 | Red-Black Tree Introduction | 2273 |
880 | Maximum Population Year LeetCode Solution | 2266 |
881 | Valid Number | 2259 |
882 | Find Largest d in Array such that a + b + c = d | 2258 |
883 | Infix to Postfix | 2253 |
884 | Next Greater Element in an Array | 2253 |
885 | Maximum Product Subarray | 2250 |
886 | Encoded String With Shortest Length LeetCode Solution | 2246 |
887 | Friends Pairing Problem | 2246 |
888 | Maximum Sum of 3 Non-Overlapping Subarrays | 2241 |
889 | Insert Delete GetRandom | 2238 |
890 | Find unique character in a string | 2238 |
891 | Averages of Levels in Binary Tree | 2236 |
892 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2235 |
893 | Transform a BST to Greater sum Tree | 2235 |
894 | Write a function to get the intersection point of two Linked Lists | 2232 |
895 | Count Primes in Ranges | 2228 |
896 | Closest Binary Search Tree Value Leetcode Solution | 2226 |
897 | Valid Perfect Square LeetCode Solution | 2220 |
898 | Height of a generic tree from parent array | 2220 |
899 | Orderly Queue LeetCode Solution | 2216 |
900 | The Number of Weak Characters in the Game LeetCode Solution | 2212 |
901 | Binary Search Tree Delete Operation | 2212 |
902 | Shuffle a given Array | 2207 |
903 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2206 |
904 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2205 |
905 | Sentence Screen Fitting LeetCode Solution | 2198 |
906 | Edit Distance | 2187 |
907 | Serialize and Deserialize Binary Tree | 2185 |
908 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2183 |
909 | Bold Words in String LeetCode Solution | 2181 |
910 | Minimum sum of squares of character counts in a given string after removing k characters | 2180 |
911 | Reorganize String | 2174 |
912 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2167 |
913 | Diameter of N-Ary Tree LeetCode Solution | 2159 |
914 | Convert BST into a Min-Heap without using array | 2159 |
915 | Find Minimum In Rotated Sorted Array | 2158 |
916 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2156 |
917 | Next greater element | 2155 |
918 | Integer to Roman | 2151 |
919 | Swap Nodes In Pairs | 2147 |
920 | Lowest Common Ancestor in Binary Search Tree | 2145 |
921 | Maximum Product Subarray | 2139 |
922 | Next Greater Element II LeetCode Solution | 2128 |
923 | Advantages of BST over Hash Table | 2126 |
924 | Array Queries for multiply replacements and product | 2124 |
925 | Find the smallest binary digit multiple of given number | 2121 |
926 | K’th Largest Element in BST when modification to BST is not allowed | 2120 |
927 | K’th Largest element in BST using constant extra space | 2115 |
928 | Koko Eating Bananas LeetCode Solution | 2112 |
929 | Total Hamming Distance LeetCode Solution | 2109 |
930 | Best Meeting Point LeetCode Solution | 2103 |
931 | Print n terms of Newman-Conway Sequence | 2102 |
932 | Write Code to Determine if Two Trees are Identical | 2101 |
933 | Longest Increasing Consecutive Subsequence | 2098 |
934 | Check if an Array is Stack Sortable | 2094 |
935 | Constant time range add operation on an array | 2090 |
936 | Level Order Traversal of Binary Tree | 2089 |
937 | Serialize and Deserialize Binary Tree LeetCode Solution | 2087 |
938 | Queries on XOR of greatest odd divisor of the range | 2084 |
939 | Maximum Sum Increasing Subsequence | 2078 |
940 | Image Overlap LeetCode Solution | 2073 |
941 | Range Queries for Longest Correct Bracket Subsequence | 2073 |
942 | Number of Orders in the Backlog Leetcode Solution | 2070 |
943 | Power of Two | 2066 |
944 | Reverse a Path in BST using Queue | 2065 |
945 | Moving Stones Until Consecutive Leetcode Solution | 2064 |
946 | Clone a Binary Tree with Random Pointers | 2063 |
947 | Greatest Sum Divisible by Three LeetCode Solution | 2057 |
948 | Check if X can give change to every person in the Queue | 2055 |
949 | Find minimum number of merge operations to make an array palindrome | 2054 |
950 | Find the node with minimum value in a Binary Search Tree | 2051 |
951 | Design Underground System Leetcode Solution | 2050 |
952 | Valid Tic-Tac-Toe State LeetCode Solution | 2046 |
953 | A program to check if a binary tree is BST or not | 2044 |
954 | Numbers with prime frequencies greater than or equal to k | 2042 |
955 | Insert into a Sorted Circular Linked List LeetCode Solution | 2035 |
956 | Check if each internal node of a BST has exactly one child | 2034 |
957 | Count and Toggle Queries on a Binary Array | 2032 |
958 | Form minimum number from given sequence | 2027 |
959 | Factorial Trailing Zeroes LeetCode Solution | 2023 |
960 | Design Add and Search Words Data Structure LeetCode Solution | 2020 |
961 | Maximum Array from Two given Arrays Keeping Order Same | 2019 |
962 | Print Next Greater Number of Q queries | 2015 |
963 | Closest Binary Search Tree Value II LeetCode Solution | 2012 |
964 | Number of elements less than or equal to a given number in a given subarray | 2012 |
965 | Collect maximum points in a grid using two traversals | 2012 |
966 | Count the Pairs at Same Distance as in English Alphabets | 2009 |
967 | Graph Cloning | 2004 |
968 | Check for Palindrome after every character replacement Query | 2002 |
969 | Merge two BSTs with limited extra space | 1999 |
970 | Maximum difference between first and last indexes of an element in array | 1997 |
971 | Queries for Decimal Values of Subarrays of a Binary Array | 1994 |
972 | Largest Plus Sign Leetcode Solution | 1992 |
973 | Group Shifted Strings Leetcode Solution | 1990 |
974 | Merge Sorted Array | 1987 |
975 | Merge Sort | 1975 |
976 | Priority Queue | 1972 |
977 | Dividing Array into Pairs With Sum Divisible by K | 1963 |
978 | Longest Substring Without Repeating Characters Leetcode Solution | 1957 |
979 | Count even length binary sequences with same sum of first and second half bits | 1951 |
980 | Kth Smallest Element in a BST | 1949 |
981 | Cutting a Rod | 1941 |
982 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1941 |
983 | Print modified array after multiple array range increment operations | 1939 |
984 | Form Minimum Number From Given Sequence | 1936 |
985 | Minimum Moves to Equal Array Elements LeetCode Solution | 1932 |
986 | Excel Sheet Column Number LeetCode Solution | 1922 |
987 | Swim in Rising Water LeetCode Solution | 1915 |
988 | Count Pairs Whose Products Exist in Array | 1914 |
989 | Guess The Word | 1914 |
990 | Find maximum average subarray of k length | 1910 |
991 | Unique Paths II | 1907 |
992 | Excel Sheet Column Title LeetCode Solution | 1903 |
993 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1897 |
994 | Print all Possible Ways to Break a String in Bracket Form | 1891 |
995 | Binary Search Tree | 1889 |
996 | How to print maximum number of A’s using given four keys | 1887 |
997 | Palindrome Partitioning | 1885 |
998 | K Empty Slots | 1876 |
999 | Check given array of size n can represent BST of n levels or not | 1872 |
1000 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1866 |
1001 | Binary Search Tree Search and Insertion | 1866 |
1002 | Find postorder traversal of BST from preorder traversal | 1854 |
1003 | Longest Common Prefix using Character by Character Matching | 1854 |
1004 | Regular Expression Matching | 1850 |
1005 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1846 |
1006 | Sorted Array to Balanced BST | 1846 |
1007 | Sum of Left Leaves LeetCode Solution | 1843 |
1008 | Construct Complete Binary Tree from its Linked List Representation | 1813 |
1009 | Queries for Number of Distinct Elements in a Subarray | 1798 |
1010 | Maximum Depth Of Binary Tree | 1797 |
1011 | Maximum weight transformation of a given string | 1787 |
1012 | Find the Town Judge LeetCode Solution | 1783 |
1013 | Iterative method to find ancestors of a given binary tree | 1776 |
1014 | Binary Tree to Binary Search Tree Conversion using STL set | 1761 |
1015 | Symmetric Tree LeetCode Solution Leetcode Solution | 1755 |
1016 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1751 |
1017 | Find Maximum Depth of Nested Parenthesis in a String | 1747 |
1018 | Random Pick Index LeetCode Solution | 1746 |
1019 | Data Structure Designing | 1746 |
1020 | Search in Sorted Rotated Array | 1740 |
1021 | Search an Element in Sorted Rotated Array | 1709 |
1022 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1690 |
1023 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1676 |
1024 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1669 |
1025 | Next Greater Element I Leetcode Solution | 1646 |
1026 | Print Maximum Length Chain of Pairs | 1625 |
1027 | Maximum Binary Tree | 1604 |
1028 | Flatten Binary Tree to Linked List LeetCode Solution | 1597 |
1029 | Find k-th smallest element in BST (Order Statistics in BST) | 1595 |
1030 | Peeking Iterator LeetCode Solution | 1577 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1535 |