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 | 43526 |
2 | Maximum occurring character in a string | 19712 |
3 | Plus One Leetcode Solution | 19225 |
4 | Valid Parentheses LeetCode Solution | 19143 |
5 | 3Sum Leetcode Solution | 17069 |
6 | Merge Sorted Arrays Leetcode Solution | 15239 |
7 | First Repeating Element | 15120 |
8 | Single Number Leetcode Solution | 14810 |
9 | Count Primes Leetcode Solutions | 14626 |
10 | Pow(x, n) Leetcode Solution | 14255 |
11 | Sqrt(x) Leetcode Solution | 14109 |
12 | Meeting Rooms II LeetCode Solution | 13197 |
13 | Concatenation of Array LeetCode Solution | 12738 |
14 | Roman to Integer Leetcode Solution | 11920 |
15 | Valid Palindrome Leetcode Solution | 11802 |
16 | Contains Duplicate II Leetcode Solution | 11723 |
17 | Search Insert Position Leetcode Solution | 11719 |
18 | Palindrome Number LeetCode Solution | 11528 |
19 | Remove Duplicates from Sorted Array Leetcode Solution | 11408 |
20 | Jump Game Leetcode Solution | 11137 |
21 | Reverse Vowels of a String Leetcode Solution | 11122 |
22 | Intersection of Two Arrays II Leetcode Solution | 11014 |
23 | Longest Substring Without Repeating Characters LeetCode Solution | 10993 |
24 | Number of Good Pairs Leetcode Solution | 10865 |
25 | Spiral Matrix LeetCode Solution | 10800 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10733 |
27 | House Robber Leetcode Solution | 10679 |
28 | Add Binary Leetcode Solution | 10578 |
29 | Maximum Subarray Leetcode Solution | 10200 |
30 | Number Of 1 bits | 10038 |
31 | Find the Maximum Repeating Number in Array | 9926 |
32 | Text Justification LeetCode Solution | 9807 |
33 | Move Zeroes LeetCode Solution | 9750 |
34 | Jewels and Stones Leetcode Solution | 9713 |
35 | Min Stack Leetcode Solution | 9586 |
36 | Power of Two Leetcode Solution | 9513 |
37 | Longest Palindromic Substring LeetCode Solution | 9458 |
38 | Shuffle String Leetcode Solution | 9407 |
39 | Permutations Leetcode Solution | 9348 |
40 | Evaluation of Postfix Expression | 9259 |
41 | Third Maximum Number Leetcode Solution | 9255 |
42 | Word Search Leetcode Solution | 9218 |
43 | Find All Numbers Disappeared in an Array Leetcode Solution | 9214 |
44 | Daily Temperatures Leetcode Solution | 9198 |
45 | Median of Two Sorted Arrays LeetCode Solution | 9134 |
46 | Next Permutation Leetcode Solution | 9128 |
47 | Search in Rotated Sorted Array Leetcode Solution | 9069 |
48 | Number of Islands LeetCode Solution | 9002 |
49 | Maximum Profit in Job Scheduling Leetcode Solution | 8956 |
50 | Kth Missing Positive Number Leetcode Solution | 8950 |
51 | Longest Common Prefix Leetcode Solution | 8897 |
52 | Next Greater Element I Leetcode Solution | 8872 |
53 | Frog Jump Leetcode Solution | 8710 |
54 | Valid Anagram Leetcode Solution | 8588 |
55 | Find Minimum Distance Between Two Numbers in an Array | 8557 |
56 | Rotate Image LeetCode Solution | 8492 |
57 | Running Sum of 1d Array Leetcode Solution | 8481 |
58 | Shuffle the Array Leetcode Solution | 8449 |
59 | Multiply Strings Leetcode Solution | 8437 |
60 | Can Place Flowers LeetCode Solution | 8405 |
61 | Combination Sum Leetcode Solution | 8394 |
62 | Count and Say Leetcode Solution | 8370 |
63 | House Robber II Leetcode Solution | 8343 |
64 | 3Sum Closest LeetCode Solution | 8274 |
65 | Bulb Switcher LeetCode Solution | 8260 |
66 | Koko Eating Bananas Leetcode Solution | 8096 |
67 | Best Time to Buy and Sell Stock LeetCode Solution | 8089 |
68 | Excel Sheet Column Title Leetcode Solution | 8061 |
69 | Happy Number Leetcode Solution | 8033 |
70 | Isomorphic Strings Leetcode Solution | 8017 |
71 | Subarray and Subsequence | 8006 |
72 | Majority Element Leetcode Solution | 7925 |
73 | Count Pairs With Given Sum | 7897 |
74 | Integer to Roman Leetcode Solution | 7864 |
75 | Missing Number Leetcode Solution | 7856 |
76 | Candy LeetCode Solution | 7845 |
77 | Product of array except self | 7844 |
78 | Rotate String LeetCode Solution | 7796 |
79 | Strobogrammatic Number LeetCode Solution | 7754 |
80 | A Product Array Puzzle | 7714 |
81 | Reverse String Without Temporary Variable | 7667 |
82 | Is Subsequence Leetcode Solution | 7636 |
83 | Find the Difference Leetcode Solution | 7611 |
84 | Find the Duplicate Number LeetCode Solution | 7595 |
85 | Binary Search LeetCode Solution | 7578 |
86 | Expression Evaluation | 7571 |
87 | Find Common Characters Leetcode Solution | 7536 |
88 | Largest Number Leetcode Solution | 7525 |
89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7442 |
90 | String to Integer (atoi) LeetCode Solution | 7384 |
91 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7365 |
92 | Subset Leetcode | 7335 |
93 | Summary Ranges Leetcode Solution | 7285 |
94 | Set Matrix Zeroes | 7271 |
95 | Rabin Karp Algorithm | 7252 |
96 | Word Pattern LeetCode Solution | 7218 |
97 | Sort Characters By Frequency LeetCode Solution | 7212 |
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 | 7069 |
103 | Rearrange Positive and Negative Numbers Alternatively in Array | 6988 |
104 | String Compression LeetCode Solution | 6974 |
105 | Asteroid Collision LeetCode Solution | 6945 |
106 | Group Anagrams LeetCode Solution | 6931 |
107 | Postfix to Infix Conversion | 6905 |
108 | Repeated Substring Pattern LeetCode Solution | 6880 |
109 | Page Replacement Algorithms in Operating Systems | 6847 |
110 | Smallest window in a string containing all characters of another string | 6834 |
111 | Sort Colors LeetCode Solution | 6790 |
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 | 6641 |
115 | Zigzag Conversion LeetCode Solution | 6629 |
116 | Divide Two Integers Leetcode Solution | 6597 |
117 | Generate Parentheses Leetcode Solution | 6588 |
118 | Kth largest element in an Array Leetcode Solutions | 6578 |
119 | Valid Palindrome II Leetcode Solution | 6573 |
120 | Sum of minimum and maximum elements of all subarrays of size k | 6561 |
121 | Assign Cookies Leetcode Solution | 6487 |
122 | Reverse Integer Leetcode Solution | 6461 |
123 | Remove Duplicates from Sorted Array II Leetcode Solution | 6454 |
124 | Length of Last Word Leetcode Solution | 6422 |
125 | Product of Array Except Self LeetCode Solution | 6416 |
126 | Decode String Leetcode Solution | 6414 |
127 | Find the Row with Maximum Number of 1’s | 6411 |
128 | Pascal Triangle Leetcode | 6359 |
129 | Bus Routes Leetcode Solution | 6347 |
130 | H-Index Leetcode Solution | 6346 |
131 | Number of Provinces Leetcode Solution | 6334 |
132 | Merge Two Sorted Lists Leetcode Solutions | 6320 |
133 | Linked List Cycle II LeetCode Solution | 6245 |
134 | Convert array into Zig-Zag fashion | 6236 |
135 | Minimum Steps to reach target by a Knight | 6227 |
136 | Minimum Cost For Tickets Leetcode Solution | 6225 |
137 | Defanging an IP Address Leetcode Solution | 6218 |
138 | Prefix to Infix Conversion | 6213 |
139 | Optimal Account Balancing LeetCode Solution | 6208 |
140 | Employee Free Time LeetCode Solution | 6198 |
141 | Pascal’s Triangle II Leetcode Solution | 6110 |
142 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 6072 |
143 | First element occurring k times in an array | 6047 |
144 | Increasing Triplet Subsequence LeetCode Solution | 6044 |
145 | Merge Sorted Array LeetCode Solution | 6016 |
146 | Build Array From Permutation Leetcode Solution | 6005 |
147 | Implementation of Deque using Doubly Linked List | 6004 |
148 | Island Perimeter Leetcode Solution | 5979 |
149 | Majority Element II Leetcode Solution | 5978 |
150 | Robot Room Cleaner Leetcode Solution | 5957 |
151 | Max Consecutive Ones Leetcode Solution | 5915 |
152 | Bellman Ford Algorithm | 5908 |
153 | Find Pair with Given Difference | 5871 |
154 | Swap Nodes in Pairs Leetcode Solutions | 5868 |
155 | Check if the Elements of an Array are Consecutive | 5860 |
156 | OSI Model | 5852 |
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 | 5821 |
160 | KMP Algorithm | 5815 |
161 | Add Two Numbers II Leetcode Solution | 5806 |
162 | Find the Missing Number | 5788 |
163 | Fibonacci Number LeetCode Solution | 5766 |
164 | First negative integer in every window of size k | 5762 |
165 | Trapping Rain Water Leetcode Solution | 5757 |
166 | Lemonade Change Leetcode Solution | 5751 |
167 | Subarray Sum Equals K LeetCode Solution | 5745 |
168 | Design Parking System Leetcode Solution | 5735 |
169 | Delete middle element of a stack | 5708 |
170 | First Unique Character in a String LeetCode Solution | 5699 |
171 | Word Ladder LeetCode Solution | 5676 |
172 | Find All Duplicates in an Array LeetCode Solution | 5655 |
173 | Coin Change 2 Leetcode Solution | 5654 |
174 | Subarray with Given Sum | 5646 |
175 | String Compression | 5645 |
176 | Length of the largest subarray with contiguous elements | 5644 |
177 | Last Stone Weight | 5643 |
178 | Subarray Product Less Than K LeetCode Solution | 5641 |
179 | Monotonic Array LeetCode Solution | 5630 |
180 | Capacity To Ship Packages Within D Days Leetcode Solution | 5627 |
181 | Palindrome Linked List Leetcode Solution | 5605 |
182 | Repeated Substring Pattern | 5554 |
183 | Find Smallest Missing Number in a Sorted Array | 5535 |
184 | Form Minimum Number from Given Sequence of D’s and I’s | 5532 |
185 | Single Element in a Sorted Array LeetCode Solution | 5518 |
186 | 01 Matrix LeetCode Solution | 5485 |
187 | Combinations Leetcode Solution | 5484 |
188 | Remove Duplicates from Sorted List II LeetCode Solution | 5478 |
189 | Prefix to Postfix Conversion | 5467 |
190 | Continuous Subarray Sum LeetCode Solution | 5430 |
191 | Reverse Words in a String III LeetCode Solution | 5419 |
192 | Valid Perfect Square Leetcode Solution | 5414 |
193 | Iterative Implementation of Quick Sort | 5389 |
194 | Same Tree LeetCode Solution | 5381 |
195 | Break a Palindrome LeetCode Solution | 5371 |
196 | Combination Sum | 5369 |
197 | Leetcode Permutations | 5341 |
198 | Merge k Sorted Lists Leetcode Solution | 5331 |
199 | Remove Linked List Elements Leetcode Solution | 5319 |
200 | Slowest Key Leetcode Solution | 5289 |
201 | Top K Frequent Elements LeetCode Solution | 5280 |
202 | Relative Ranks Leetcode Solution | 5275 |
203 | Backspace String Compare | 5272 |
204 | Maximum Product of Three Numbers LeetCode Solution | 5250 |
205 | Rotate List Leetcode Solution | 5240 |
206 | Insert Delete GetRandom O(1) Leetcode Solution | 5239 |
207 | Container With Most Water LeetCode Solution | 5231 |
208 | Find Peak Element LeetCode Solution | 5218 |
209 | Find the Duplicate Element | 5201 |
210 | Contains Duplicate LeetCode Solution | 5191 |
211 | Boolean Parenthesization Problem | 5179 |
212 | The K Weakest Rows in a Matrix Leetcode Solution | 5171 |
213 | Printing brackets in Matrix Chain Multiplication Problem | 5143 |
214 | Cuckoo sequence program | 5135 |
215 | Longest Common Subsequence LeetCode Solution | 5111 |
216 | Second Most Repeated Word in a Sequence | 5110 |
217 | Palindrome Number | 5100 |
218 | Kth Largest Element in a Stream Leetcode Solution | 5095 |
219 | Subarray Sum Equals k | 5080 |
220 | Remove All Occurrences of a Substring LeetCode Solution | 5062 |
221 | Permutation in String Leetcode Solution | 5045 |
222 | Rearrange given Array in Maximum Minimum Form | 5041 |
223 | Relative Sort Array Leetcode Solution | 5040 |
224 | Make The String Great Leetcode Solution | 5039 |
225 | Max Area of Island | 5021 |
226 | Find Leaders in an Array | 5017 |
227 | Unique Paths II Leetcode Solution | 5010 |
228 | Generate all Binary Strings Without Consecutive 1’s | 5005 |
229 | Arithmetic Expression Evaluation | 5004 |
230 | Convert a Number to Hexadecimal Leetcode Solution | 4998 |
231 | Delete Node in a Linked List Leetcode Solution | 4985 |
232 | Target Sum | 4973 |
233 | Check If Two String Arrays are Equivalent Leetcode Solution | 4963 |
234 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4955 |
235 | N-Queens LeetCode Solution | 4952 |
236 | Moving Average from Data Stream Leetcode Solution | 4949 |
237 | Time Based Key-Value Store LeetCode Solution | 4942 |
238 | Scramble String | 4929 |
239 | Letter Combinations of a Phone Number | 4914 |
240 | Next Permutation | 4906 |
241 | Number of Dice Rolls With Target Sum LeetCode Solution | 4904 |
242 | Count Good Nodes in Binary Tree Leetcode Solution | 4904 |
243 | LRU Cache LeetCode Solution | 4892 |
244 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4858 |
245 | Check If N and Its Double Exist Leetcode Solution | 4857 |
246 | Stone Game LeetCode | 4853 |
247 | Given two unsorted arrays find all pairs whose sum is x | 4849 |
248 | Find Triplet in Array With a Given Sum | 4839 |
249 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4804 |
250 | Flipping an Image LeetCode Solution | 4803 |
251 | Prim’s Algorithm | 4782 |
252 | Minimum swaps required to bring all elements less than or equal to k together | 4776 |
253 | Reverse Only Letters LeetCode Solution | 4751 |
254 | Top K Frequent Elements | 4750 |
255 | Remove Minimum Characters so that Two Strings Become Anagrams | 4750 |
256 | Find The Duplicate Number | 4741 |
257 | Stock Buy Sell to Maximize Profit | 4738 |
258 | Min Cost Climbing Stairs LeetCode Solution | 4725 |
259 | Minimum Knight Moves LeetCode Solution | 4717 |
260 | Min Stack | 4715 |
261 | Student Attendance Record I Leetcode Solution | 4712 |
262 | To Lower Case Leetcode Solution | 4662 |
263 | Single Number | 4660 |
264 | Minimum Operations to convert X to Y | 4657 |
265 | Smallest Positive Number Missing in an Unsorted Array | 4653 |
266 | Maximum Sum Increasing Subsequence | 4651 |
267 | The kth Factor of n Leetcode Solution | 4636 |
268 | Maximum Subarray Sum using Divide and Conquer | 4628 |
269 | Reverse words in a string | 4618 |
270 | License Key Formatting Leetcode Solution | 4615 |
271 | Maximum Population Year LeetCode Solution | 4601 |
272 | Longest Common Subsequence | 4546 |
273 | Remove Nth Node From End of List Leetcode Solution | 4535 |
274 | Search Suggestions System LeetCode Solution | 4533 |
275 | Top K Frequent Words LeetCode Solution | 4529 |
276 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4517 |
277 | Find the Number Occurring Odd Number of Times in an Array | 4509 |
278 | Reformat Date LeetCode Solution | 4503 |
279 | Sum of Subarray Ranges Leetcode Solution | 4493 |
280 | Find Words That Can Be Formed by Characters Leetcode Solution | 4487 |
281 | BFS for Disconnected Graph | 4482 |
282 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4448 |
283 | Minimum Path Sum Leetcode Solution | 4447 |
284 | Maximum Depth of Binary Tree Leetcode Solution | 4438 |
285 | Reveal Cards In Increasing Order Leetcode Solution | 4414 |
286 | N-th Tribonacci Number Leetcode Solution | 4410 |
287 | Intersection of Two Arrays | 4390 |
288 | Diagonal Traverse LeetCode Solution | 4377 |
289 | House Robber | 4377 |
290 | Reverse individual words | 4376 |
291 | Evaluate Division | 4363 |
292 | Best Time to Buy and Sell Stock III Leetcode Solution | 4356 |
293 | Maximize Distance to Closest Person LeetCode Solution | 4354 |
294 | Find any one of the multiple repeating elements in read only array | 4353 |
295 | Last Stone Weight II LeetCode Solution | 4351 |
296 | Minimum Characters to be Added at Front to Make String Palindrome | 4346 |
297 | Sort Elements by Frequency of Occurrences | 4326 |
298 | Design A Leaderboard Leetcode Solution | 4321 |
299 | Remove Duplicates from Sorted List LeetCode Solution | 4319 |
300 | Find if Path Exists in Graph Leetcode Solution | 4318 |
301 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4317 |
302 | Binary Tree Inorder Traversal LeetCode Solution | 4317 |
303 | Count Number of Occurrences in a Sorted Array | 4311 |
304 | Count of index pairs with equal elements in an array | 4307 |
305 | Length of Longest valid Substring | 4297 |
306 | Range Sum Query 2D – Immutable Leetcode Solution | 4287 |
307 | Reverse Nodes in k-Group LeetCode Solution | 4276 |
308 | Most Frequent Element in an Array | 4273 |
309 | Minimum number of Merge Operations to make an Array Palindrome | 4259 |
310 | Remove All Ones With Row and Column Flips Leetcode Solution | 4243 |
311 | Implement a stack using single queue | 4243 |
312 | Sudoku Solver | 4242 |
313 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4220 |
314 | Brightest Position on Street LeetCode Solution | 4210 |
315 | Find the Closest Palindrome number | 4205 |
316 | Mobile Numeric Keypad Problem | 4201 |
317 | Spiral Matrix II Leetcode Solution | 4192 |
318 | Split Linked List in Parts Leetcode Solution | 4178 |
319 | Find Leaves of Binary Tree LeetCode Solution | 4177 |
320 | Reverse Bits | 4175 |
321 | Special Positions in a Binary Matrix Leetcode Solution | 4171 |
322 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4164 |
323 | Invalid Transactions LeetCode Solution | 4151 |
324 | Symmetric Tree Leetcode Solution | 4138 |
325 | Shortest Word Distance Leetcode Solution | 4136 |
326 | Paint House LeetCode Solution | 4133 |
327 | Maximum Subarray | 4127 |
328 | Sort Array By Parity II Leetcode Solution | 4109 |
329 | Arrange given Numbers to Form the Biggest Number II | 4105 |
330 | Diagonal Traversal LeetCode Solution | 4081 |
331 | Find Duplicates in an Array in Most Efficient Way | 4078 |
332 | One Edit Distance LeetCode Solution | 4077 |
333 | Round Robin Scheduling | 4075 |
334 | Largest Rectangle in Histogram LeetCode Solution | 4061 |
335 | Remove Invalid Parentheses Leetcode Solution | 4048 |
336 | Dijkstra Algorithm | 4047 |
337 | Rank Transform of an Array Leetcode Solution | 4042 |
338 | Hamming Distance Leetcode Solution | 4038 |
339 | Jump Game | 4034 |
340 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 4027 |
341 | Alien Dictionary LeetCode Solution | 4027 |
342 | Partition Labels LeetCode Solution | 4026 |
343 | Unique Paths | 4021 |
344 | Tug of War | 4008 |
345 | Minimum Moves to Equal Array Elements Leetcode Solution | 3998 |
346 | Maximal Square | 3998 |
347 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3986 |
348 | String Matching in an Array Leetcode Solution | 3982 |
349 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3975 |
350 | Construct BST from its given Level Order Traversal | 3974 |
351 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3967 |
352 | The Celebrity Problem | 3967 |
353 | Range Sum of BST LeetCode Solution | 3963 |
354 | Next Permutation LeetCode Solution | 3960 |
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 | 3950 |
358 | Minimum Depth of Binary Tree Leetcode Solution | 3940 |
359 | Merge Two Sorted Linked Lists | 3930 |
360 | Pair of Positive Negative Values in an Array | 3928 |
361 | Validate Stack Sequences LeetCode Solution | 3927 |
362 | Longest Common Prefix using Trie | 3926 |
363 | Unique Paths III LeetCode Solution | 3921 |
364 | Postfix to Prefix Conversion | 3915 |
365 | Smallest Subarray with k Distinct Numbers | 3913 |
366 | Maximum Circular Subarray Sum | 3913 |
367 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3912 |
368 | Given an Array of Pairs Find all Symmetric Pairs in it | 3908 |
369 | Transpose Graph | 3894 |
370 | Minimum Time Visiting All Points Leetcode Solution | 3892 |
371 | Check whether Strings are K Distance Apart or Not | 3890 |
372 | Count of Triplets With Sum Less than Given Value | 3889 |
373 | Minimum Cost to Hire K Workers | 3878 |
374 | Substring with Concatenation of All Words Leetcode Solution | 3872 |
375 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3872 |
376 | K Empty Slots LeetCode | 3871 |
377 | Robot Bounded In Circle LeetCode Solution | 3868 |
378 | Next Greater Element III LeetCode Solution | 3866 |
379 | Recursion | 3864 |
380 | Invert Binary Tree LeetCode Solution | 3863 |
381 | Clone Graph LeetCode Solution | 3860 |
382 | Find minimum difference between any two elements | 3860 |
383 | Check if a given array contains duplicate elements within k distance from each other | 3855 |
384 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3844 |
385 | Ugly Number II LeetCode Solution | 3842 |
386 | Kruskal Algorithm | 3834 |
387 | Implementation of Deque using circular array | 3830 |
388 | Sort a stack using a temporary stack | 3828 |
389 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3822 |
390 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3814 |
391 | Non-decreasing Array LeetCode Solution | 3810 |
392 | Invert Binary Tree LeetCode Solution | 3795 |
393 | Toeplitz Matrix | 3795 |
394 | Permutation Sequence LeetCode Solution | 3793 |
395 | Graph Valid Tree LeetCode Solution | 3788 |
396 | Stack Permutations (Check if an array is stack permutation of other) | 3788 |
397 | Longest subsequence such that difference between adjacents is one | 3782 |
398 | LRU Cache Implementation | 3782 |
399 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3779 |
400 | Find the subarray with least average | 3779 |
401 | Sliding Window Technique | 3774 |
402 | Word Search | 3773 |
403 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3769 |
404 | Longest subarray not having more than K distinct elements | 3764 |
405 | Find the First and Second Smallest Elements | 3764 |
406 | Kth Smallest Element in a BST Leetcode Solution | 3763 |
407 | Design Browser History LeetCode Solution | 3761 |
408 | 3 Sum | 3760 |
409 | Missing Element in Sorted Array LeetCode Solution | 3753 |
410 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3744 |
411 | Find duplicates in a given array when elements are not limited to a range | 3742 |
412 | Partition List Leetcode Solution | 3734 |
413 | Number of Islands II LeetCode Solution | 3724 |
414 | Priority Queue using doubly linked list | 3723 |
415 | Common elements in all rows of a given matrix | 3720 |
416 | Find Top K (or Most Frequent) Numbers in a Stream | 3717 |
417 | Path With Maximum Minimum Value LeetCode Solution | 3716 |
418 | Queries for counts of array elements with values in given range | 3716 |
419 | Number Complement Leetcode Solution | 3715 |
420 | Stone Game II Leetcode | 3715 |
421 | First Circular Tour to Visit all the Petrol Bunks | 3714 |
422 | K Closest Points to Origin Leetcode Solution | 3710 |
423 | Top View of Binary Tree | 3705 |
424 | Number of Smaller Elements on Right Side | 3703 |
425 | Minesweeper LeetCode Solution | 3701 |
426 | Find Maximum Level sum in Binary Tree | 3699 |
427 | Max stack | 3697 |
428 | Search a 2D Matrix II Leetcode Solution | 3690 |
429 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3689 |
430 | Sequences of given length where every element is more than or equal to twice of previous | 3689 |
431 | LRU Cache Leetcode Solution | 3688 |
432 | Find the Peak Element from an Array | 3685 |
433 | Combination Sum IV LeetCode Solution | 3680 |
434 | Integer Break LeetCode Solution | 3675 |
435 | Snakes and Ladders LeetCode Solution | 3670 |
436 | Nth Catalan Number | 3670 |
437 | High Five LeetCode Solution | 3663 |
438 | Painting Fence Algorithm | 3660 |
439 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3659 |
440 | Sort elements by frequency | 3655 |
441 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3640 |
442 | Odd Even Linked List Leetcode Solution | 3634 |
443 | Insert Interval Leetcode Solution | 3629 |
444 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3623 |
445 | Maximum Consecutive Numbers Present in an Array | 3619 |
446 | Check if Two given Strings are Isomorphic to each other | 3618 |
447 | Rearrange array such that even positioned are greater than odd | 3617 |
448 | Fibonacci Number LeetCode Solution | 3616 |
449 | Flood Fill LeetCode | 3616 |
450 | Shortest Palindrome | 3613 |
451 | Sliding Window Maximum LeetCode Solution | 3607 |
452 | Consecutive Characters LeetCode Solution | 3606 |
453 | Search in a Binary Search Tree Leetcode Solution | 3605 |
454 | 4Sum | 3605 |
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 | 3577 |
458 | Move All the Zeros to the End of the Given Array | 3577 |
459 | Tiling Problem | 3575 |
460 | Gold Mine Problem | 3561 |
461 | Expression Contains Redundant Bracket or Not | 3560 |
462 | Number of Closed Islands Leetcode Solution | 3559 |
463 | Kth Non-repeating Character | 3557 |
464 | Spiral Matrix III LeetCode Solution | 3554 |
465 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3552 |
466 | Insert into a Binary Search Tree Leetcode Solution | 3551 |
467 | Minimum Absolute Difference in BST Leetcode Solution | 3544 |
468 | Find a Peak Element II LeetCode Solution | 3539 |
469 | Coin Change Problem | 3528 |
470 | Queries for GCD of all numbers of an array except elements in a given range | 3524 |
471 | Integer to English words | 3523 |
472 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3522 |
473 | Minimum Path Sum | 3517 |
474 | N queen problem | 3517 |
475 | Sliding Window Median Leetcode Solution | 3515 |
476 | Evaluate Reverse Polish Notation LeetCode Solution | 3512 |
477 | Decompress Run-Length Encoded List Leetcode Solution | 3512 |
478 | Restore IP Addresses Leetcode Solution | 3509 |
479 | Trapping Rain Water LeetCode Solution | 3506 |
480 | Longest Common Prefix using Sorting | 3504 |
481 | Interval Tree | 3500 |
482 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3492 |
483 | Balanced Expression with Replacement | 3487 |
484 | Sorting array using Stacks | 3485 |
485 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3484 |
486 | Sort an array according to the order defined by another array | 3480 |
487 | Sort Colors | 3480 |
488 | Binary Tree Maximum Path Sum LeetCode Solution | 3476 |
489 | Find Pythagorean Triplets from Array | 3464 |
490 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3459 |
491 | Majority Element | 3458 |
492 | Cells with Odd Values in a Matrix LeetCode Solution | 3450 |
493 | Best Time to Buy and Sell Stock | 3446 |
494 | Reverse a linked list | 3446 |
495 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3442 |
496 | Palindrome Substring Queries | 3438 |
497 | Subset sum problem | 3432 |
498 | Number of Days Between Two Dates LeetCode Solution | 3428 |
499 | Priority Queue in C++ | 3423 |
500 | Find Median from Data Stream LeetCode Solution | 3418 |
501 | The Stock Span Problem | 3418 |
502 | Fibonacci numbers | 3413 |
503 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3408 |
504 | Path Sum II LeetCode Solution | 3408 |
505 | Queue using Stacks | 3403 |
506 | Path Crossing Leetcode Solution | 3401 |
507 | Find the first Repeating Number in a Given Array | 3400 |
508 | Sieve of Eratosthenes | 3399 |
509 | Camelcase Matching Leetcode Solution | 3388 |
510 | Is Graph Bipartite? LeetCode Solution | 3386 |
511 | Multiplication of Two Matrices | 3379 |
512 | Largest rectangular sub-matrix whose sum is 0 | 3378 |
513 | Kth ancestor of a node in binary tree | 3377 |
514 | Intersection of Two Linked Lists LeetCode Solution | 3375 |
515 | Design Hit Counter LeetCode Solution | 3368 |
516 | How to Implement Stack Using Priority Queue or Heap? | 3364 |
517 | Pancake Sorting Problem | 3358 |
518 | Divide Chocolate LeetCode Solution | 3353 |
519 | Analyze User Website Visit Pattern LeetCode Solution | 3353 |
520 | Custom Sort String Leetcode Solution | 3352 |
521 | Shortest Completing Word Leetcode Solution | 3352 |
522 | Longest Increasing Path in a Matrix LeetCode Solution | 3351 |
523 | Monotonic Array Leetcode Solution | 3341 |
524 | Different Ways to Add Parentheses Leetcode Solution | 3340 |
525 | Count Submatrices With All Ones LeetCode Solution | 3334 |
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 | 3326 |
528 | Group Anagrams | 3324 |
529 | Find a Fixed Point in a Given Array | 3322 |
530 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3316 |
531 | Scramble String LeetCode Solution | 3313 |
532 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3308 |
533 | Perfect Squares LeetCode Solution | 3305 |
534 | Detect a loop in the Linked List | 3303 |
535 | Generate all Binary Strings from Given Pattern | 3297 |
536 | Shifting Letters LeetCode Solution | 3294 |
537 | Queue based approach for first non-repeating character in a stream | 3287 |
538 | Minimum Height Trees | 3287 |
539 | Construction of Longest Increasing Subsequence (N log N) | 3285 |
540 | Merge Overlapping Intervals | 3285 |
541 | Implement Trie (Prefix Tree) Leetcode Solution | 3281 |
542 | Implement strStr() LeetCode Solution | 3278 |
543 | Valid Boomerang Leetcode Solution | 3275 |
544 | Number of Distinct Islands Leetcode Solution | 3274 |
545 | Nearest Exit from Entrance in Maze LeetCode Solution | 3269 |
546 | Decode Ways | 3266 |
547 | How to Create Mergable Stack? | 3260 |
548 | Reorder Data in Log Files LeetCode Solution | 3259 |
549 | Race Car LeetCode Solution | 3256 |
550 | Sort a stack using recursion | 3249 |
551 | Champagne Tower LeetCode Solution | 3248 |
552 | Maximum Sum of Non Consecutive Elements | 3246 |
553 | Morris Traversal | 3245 |
554 | Binary Tree zigzag level order Traversal | 3245 |
555 | Sliding Window Maximum | 3245 |
556 | Longest Common Prefix using Divide and Conquer | 3244 |
557 | Maximum Element in an Array which is Increasing and then Decreasing | 3242 |
558 | Find the Lost Element From a Duplicated Array | 3235 |
559 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3233 |
560 | Number of Equivalent Domino Pairs Leetcode Solution | 3229 |
561 | Insert Node in the Sorted Linked List | 3227 |
562 | LCS (Longest Common Subsequence) of three strings | 3226 |
563 | Most Stones Removed with Same Row or Column LeetCode Solution | 3224 |
564 | Find if an Expression has Duplicate Parenthesis or Not | 3219 |
565 | Find maximum length Snake sequence | 3218 |
566 | Count Possible Triangles | 3216 |
567 | First missing positive | 3214 |
568 | Build an Array With Stack Operations Leetcode Solution | 3212 |
569 | Recover Binary Search Tree | 3212 |
570 | Palindrome Permutation LeetCode Solution | 3211 |
571 | Design Skiplist LeetCode Solution | 3200 |
572 | Decode String | 3200 |
573 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3199 |
574 | Letter Case Permutation | 3199 |
575 | Find a Sorted Subsequence of size 3 | 3196 |
576 | Smallest Good Base | 3194 |
577 | Rectangle Overlap LeetCode Solution | 3186 |
578 | Minimum Bracket Reversals | 3184 |
579 | Merge Two Binary Trees LeetCode Solution | 3177 |
580 | Contiguous Array LeetCode Solution | 3176 |
581 | Longest Repeated Subsequence | 3171 |
582 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3169 |
583 | All Possible Full Binary Trees LeetCode Solution | 3168 |
584 | Distance Between Bus Stops Leetcode Solution | 3168 |
585 | Guess Number Higher or Lower II | 3167 |
586 | Recover Binary Search Tree Leetcode Solution | 3161 |
587 | Largest Subarray with Equal Number of 0’s and 1’s | 3160 |
588 | Maximum Length of Chain Pairs | 3156 |
589 | Palindrome Partitioning Leetcode Solution | 3155 |
590 | Find the Town Judge LeetCode Solution | 3152 |
591 | Maximum Depth of N-ary Tree Leetcode Solution | 3148 |
592 | Minimum Height Trees LeetCode Solution | 3147 |
593 | Print all Palindromic Partitions of a String | 3146 |
594 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3140 |
595 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3136 |
596 | Minimum number of jumps to reach end | 3135 |
597 | Design a Stack With Increment Operation Leetcode Solution | 3134 |
598 | K-th Distinct Element in an Array | 3129 |
599 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3118 |
600 | Rearrange Spaces Between Words Leetcode Solution | 3115 |
601 | Check for Balanced Parentheses in an Expression | 3109 |
602 | Implement Two Stacks in an Array | 3109 |
603 | Valid Parentheses Leetcode Solution | 3107 |
604 | The Maze III LeetCode Solution | 3107 |
605 | Reorder an Array According to the Given Indexes | 3106 |
606 | Subarrays with K Different Integers Leetcode Solution | 3096 |
607 | Mean of Array After Removing Some Elements Leetcode Solution | 3092 |
608 | Maximize Elements Using Another Array | 3086 |
609 | Sort a String According to Another String | 3085 |
610 | Maximum Score After Splitting a String Leetcode Solution | 3074 |
611 | Jump Game IV LeetCode Solution | 3064 |
612 | Maximum sum rectangle in a 2D matrix | 3059 |
613 | Count pair with Given Sum | 3056 |
614 | Contains Duplicate | 3053 |
615 | Find the First Circular Tour that visits all the Petrol Pumps | 3048 |
616 | Valid Sudoku | 3043 |
617 | Perform String Shifts Leetcode | 3042 |
618 | Convert BST to Min Heap | 3037 |
619 | Word Break | 3028 |
620 | Possible Bipartition LeetCode Solution | 3025 |
621 | Edit Distance LeetCode Solution | 3023 |
622 | Minimum Jumps to Reach Home LeetCode Solution | 3023 |
623 | Iterative Method to find Height of Binary Tree | 3023 |
624 | Heap Sort | 3020 |
625 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 3013 |
626 | Find the Minimum Element in a Sorted and Rotated Array | 3012 |
627 | A Space Optimized DP solution for 0-1 Knapsack Problem | 3011 |
628 | Palindrome Permutations of a String | 3007 |
629 | Find Largest Value in Each Tree Row LeetCode Solution | 2995 |
630 | Reach a Number LeetCode Solution | 2983 |
631 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2980 |
632 | Count Sub Islands LeetCode Solution | 2977 |
633 | Best Meeting Point LeetCode Solution | 2977 |
634 | Merge Overlapping Intervals II | 2977 |
635 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2970 |
636 | Palindromic Substrings Leetcode Solution | 2970 |
637 | Palindrome Permutation | 2970 |
638 | Number of palindromic paths in a matrix | 2964 |
639 | Merge Two Balanced Binary Search Trees | 2959 |
640 | Segregate 0s and 1s in an Array | 2951 |
641 | Find the Subarray of given length with Least Average | 2951 |
642 | My Calendar I LeetCode Solution | 2948 |
643 | All Unique Triplets that Sum up to a Given Value | 2948 |
644 | Sorted Linked List to Balanced BST | 2945 |
645 | Caesar Cipher | 2940 |
646 | Huffman Coding | 2939 |
647 | Pair with given product | 2935 |
648 | Brick Wall LeetCode Solution | 2926 |
649 | Level order Traversal in Spiral Form | 2925 |
650 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2924 |
651 | Construct BST from given Preorder Traversal | 2922 |
652 | Find Median from data Stream | 2918 |
653 | Word Pattern | 2916 |
654 | Swapping Nodes in a Linked List Leetcode Solution | 2912 |
655 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2902 |
656 | Find all triplets with zero sum | 2900 |
657 | Partition Problem | 2899 |
658 | Merge K Sorted Arrays and Print Sorted Output | 2885 |
659 | Count Good Nodes in Binary Tree LeetCode Solution | 2878 |
660 | Maximize Sum of Array after K Negations Leetcode Solution | 2874 |
661 | Print Fibonacci sequence using 2 variables | 2874 |
662 | Validate Binary Search Tree | 2867 |
663 | Minimum time required to rot all oranges | 2857 |
664 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2854 |
665 | Add two numbers | 2854 |
666 | Alien Dictionary | 2854 |
667 | Find whether a subarray is in form of a mountain or not | 2852 |
668 | Isomorphic Strings LeetCode Solution | 2850 |
669 | Count Distinct Elements in Every Window of Size K | 2848 |
670 | Detect Capital Leetcode Solution | 2845 |
671 | Queries on Probability of Even or Odd Number in given Ranges | 2845 |
672 | Largest Sum Contiguous Subarray | 2840 |
673 | Sort 0s 1s and 2s in an Array | 2840 |
674 | Longest Subarray Having Count of 1s One More than Count of 0s | 2839 |
675 | Find all pairs (a, b) in an array such that a % b = k | 2838 |
676 | Convert Sorted List to Binary Search Tree | 2838 |
677 | How to Efficiently Implement k Stacks in a Single Array? | 2836 |
678 | Maximum Frequency Stack Leetcode Solution | 2834 |
679 | Bubble sort using two Stacks | 2832 |
680 | Range Sum Query 2D – Immutable LeetCode Solution | 2826 |
681 | Split Array Into Consecutive Subsequences | 2826 |
682 | Counting Bits | 2823 |
683 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2821 |
684 | Binary Tree Right Side View LeetCode Solution | 2821 |
685 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2820 |
686 | Find four elements that sum to a given value (Hashmap) | 2815 |
687 | Length of Longest Fibonacci Subsequence | 2809 |
688 | Rotate Array | 2809 |
689 | Breadth First Search (BFS) for a Graph | 2805 |
690 | Remove brackets from an algebraic string containing + and – operators | 2804 |
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 | 2800 |
692 | Binary Tree to Binary Search Tree Conversion | 2796 |
693 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2794 |
694 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2791 |
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 | Remove Palindromic Subsequences Leetcode Solution | 2772 |
698 | Merge Two Sorted Lists Leetcode | 2771 |
699 | Print all subarrays with 0 sum | 2770 |
700 | Populating Next Right Pointers in Each Node | 2767 |
701 | Difference Array | Range update query in O(1) | 2759 |
702 | Populating Next Right Pointers in Each Node Leetcode Solution | 2751 |
703 | Partition Equal Subset Sum | 2748 |
704 | Find pairs with given sum such that elements of pair are in different rows | 2746 |
705 | Topological Sorting | 2744 |
706 | Minimum Sum Path in a Triangle | 2740 |
707 | Remove duplicates from sorted array | 2740 |
708 | String comparison containing wildcards | 2740 |
709 | Happy Number | 2738 |
710 | Arithmetic Slices II – Subsequence LeetCode Solution | 2734 |
711 | Elements Appear more than N/K times in Array | 2731 |
712 | Contiguous Array Leetcode | 2723 |
713 | Check if a Linked list of Strings form a Palindrome | 2723 |
714 | Concatenation of Array LeetCode Solution | 2719 |
715 | Queue Reconstruction by Height | 2718 |
716 | Find All Pairs With a Given Difference | 2715 |
717 | Web Crawler LeetCode Solution | 2714 |
718 | Inorder Successor of a node in Binary Tree | 2711 |
719 | Find Duplicate Subtrees | 2699 |
720 | Root to Leaf path with target sum Leetcode Solutions | 2687 |
721 | Reverse Nodes in K-Group | 2687 |
722 | Increasing Subsequence of Length three with Maximum Product | 2680 |
723 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2671 |
724 | Check if String Follows Order of Characters by a Pattern or not | 2669 |
725 | Finding K closest element | 2664 |
726 | Score of Parenthesis LeetCode Solution | 2662 |
727 | Swap Kth Node from beginning with Kth Node from End | 2659 |
728 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2654 |
729 | Given a binary tree, how do you remove all the half nodes? | 2652 |
730 | Symmetric Tree | 2652 |
731 | Maximum Distance in Array | 2649 |
732 | Pancake Sorting | 2648 |
733 | Longest Common Prefix Using Binary Search II | 2644 |
734 | Climbing stairs | 2642 |
735 | Maximum Product Subarray II | 2639 |
736 | Construct Binary Tree from given Parent Array representation | 2634 |
737 | An Interesting Method to generate Binary Numbers from 1 to n | 2634 |
738 | Longest Increasing Subsequence | 2634 |
739 | Container with Most Water | 2634 |
740 | Count Minimum Steps to Get the given Array | 2633 |
741 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2629 |
742 | Deletion in a Binary Tree | 2618 |
743 | Sum Root to Leaf Numbers LeetCode Solution | 2610 |
744 | Parallel Courses II LeetCode Solution | 2610 |
745 | Check if all levels of two Binary Tree are anagrams or not | 2609 |
746 | Find the first repeating element in an array of integers | 2608 |
747 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2607 |
748 | Delete Nodes and Return Forest Leetcode Solution | 2606 |
749 | Union and Intersection of two Linked Lists | 2604 |
750 | Delete Nth node from the end of the given linked list | 2600 |
751 | MiniMax Algorithm | 2596 |
752 | Substring With Concatenation Of All Words | 2593 |
753 | Boundary Traversal of binary tree | 2588 |
754 | Level order traversal using two Queues | 2586 |
755 | Kill Process LeetCode Solution | 2585 |
756 | Count pairs from two linked lists whose sum is equal to a given value | 2583 |
757 | Level of Each node in a Tree from source node | 2576 |
758 | Sort Array by Increasing Frequency Leetcode Solution | 2573 |
759 | Non-overlapping sum of two sets | 2573 |
760 | BFS vs DFS for Binary Tree | 2573 |
761 | Linked List Cycle | 2571 |
762 | Minimum Size Subarray Sum | 2569 |
763 | Iterative Depth First Traversal of Graph | 2567 |
764 | Find K Closest Elements LeetCode Solution | 2563 |
765 | Valid Anagrams | 2562 |
766 | Rearrange an Array Such that arr[i] is equal to i | 2562 |
767 | Merge K Sorted Linked Lists | 2558 |
768 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2555 |
769 | Find Maximum of Minimum for Every Window Size in a Given Array | 2553 |
770 | New 21 Game | 2551 |
771 | Iterative Preorder Traversal | 2545 |
772 | Longest Common Prefix Word by Word Matching | 2543 |
773 | Nested List Weight Sum II LeetCode Solution | 2538 |
774 | Remove Duplicates from Sorted List II | 2538 |
775 | Find the Difference Leetcode Solution | 2534 |
776 | Maximum size subarray sum equals k | 2530 |
777 | Range LCM Queries | 2528 |
778 | Matrix Chain Multiplication | 2527 |
779 | Merging Intervals | 2525 |
780 | Reservoir Sampling | 2523 |
781 | Super Ugly Number | 2516 |
782 | Maximum Product Subarray | 2510 |
783 | Verify Preorder Serialization of a Binary Tree | 2508 |
784 | Friends Of Appropriate Ages LeetCode Solution | 2504 |
785 | Palindrome Partitioning | 2504 |
786 | K maximum sums of overlapping contiguous sub-arrays | 2501 |
787 | Reorder Array Using Given Indexes | 2499 |
788 | Check if a queue can be sorted into another queue using a stack | 2498 |
789 | Balanced Binary Tree | 2497 |
790 | Print a Binary Tree in Vertical Order | 2495 |
791 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2491 |
792 | Missing Number | 2491 |
793 | Smallest Range II Leetcode Solution | 2490 |
794 | Flatten Binary Tree to Linked List LeetCode Solution | 2488 |
795 | Check if any two intervals overlap among a given set of intervals | 2476 |
796 | Create Maximum Number | 2468 |
797 | Defanging an IP Address LeetCode Solution | 2463 |
798 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2463 |
799 | Vertical sum in a given binary tree | 2459 |
800 | The Painter’s Partition Problem | 2458 |
801 | Check if Two Expressions With Brackets are Same | 2458 |
802 | Valid Triangle Number LeetCode Solution | 2456 |
803 | Sorting a K Sorted Array | 2456 |
804 | Maximum difference between two elements such as larger element comes after smaller | 2456 |
805 | Peak Index in a Mountain Array LeetCode Solution | 2452 |
806 | Minimum insertions to form a palindrome with permutations allowed | 2448 |
807 | Lowest Common Ancestor | 2447 |
808 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2440 |
809 | Minimum Distance Between BST Nodes Leetcode Solution | 2438 |
810 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2437 |
811 | Unique Binary Search Trees LeetCode Solution | 2433 |
812 | Find subarray with given sum (Handles Negative Numbers) | 2428 |
813 | Hamming Distance | 2426 |
814 | Count number of triplets with product equal to given number | 2425 |
815 | Largest Submatrix With Rearrangements LeetCode Solution | 2423 |
816 | Number Of Longest Increasing Subsequence | 2421 |
817 | Find K Length Subarray of Maximum Average | 2418 |
818 | Tree Traversal (Preorder, Inorder & Postorder) | 2417 |
819 | Valid Triangle Number LeetCode Solution | 2412 |
820 | Flatten 2D Vector LeetCode Solution | 2409 |
821 | Check if two nodes are on the same path in a Tree | 2407 |
822 | First Bad Version | 2403 |
823 | Find Common Characters Leetcode Solution | 2402 |
824 | Closest Leaf in a Binary Tree LeetCode Solution | 2396 |
825 | Employee Importance LeetCode Solution | 2396 |
826 | Find distance between two nodes of a Binary Tree | 2394 |
827 | Iterative Postorder Traversal Using Two Stacks | 2394 |
828 | Check Completeness of a Binary Tree LeetCode Solution | 2393 |
829 | Merging Two Sorted Arrays | 2393 |
830 | Third Maximum Number Leetcode Solution | 2391 |
831 | Find Peak Element | 2388 |
832 | Array Nesting Leetcode Solution | 2387 |
833 | Sort Elements by Frequency II | 2381 |
834 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2379 |
835 | Find Element Using Binary Search in Sorted Array | 2379 |
836 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2378 |
837 | Products of ranges in an array | 2378 |
838 | Print all triplets in sorted array that form AP | 2377 |
839 | Newman-Conway Sequence | 2374 |
840 | Maximum subsequence sum such that no three are consecutive | 2371 |
841 | Find Smallest Range Containing Elements from k Lists | 2370 |
842 | Valid Parenthesis String | 2370 |
843 | Diagonal Traversal of Binary Tree | 2369 |
844 | Print All Distinct Elements of a Given Integer Array | 2364 |
845 | Largest BST Subtree LeetCode Solution | 2363 |
846 | Maximum number of segments of lengths a, b and c | 2359 |
847 | Arrange given numbers to form the biggest number | 2358 |
848 | Longest Bitonic Subsequence | 2357 |
849 | Longest Palindromic Subsequence | 2353 |
850 | Distinct Subsequences | 2353 |
851 | Find Sum of all unique sub-array sum for a given array | 2351 |
852 | Print Right View of a Binary Tree | 2350 |
853 | Range Sum Query using Sparse Table | 2343 |
854 | Bottom View of a Binary Tree | 2341 |
855 | Find Nth Node | 2340 |
856 | Stone Game IV LeetCode Solution | 2339 |
857 | Lower Case To Upper Case | 2337 |
858 | Segment Tree | 2335 |
859 | Largest subarray with equal number of 0s and 1s | 2334 |
860 | Path Sum | 2330 |
861 | Largest divisible pairs subset | 2325 |
862 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2322 |
863 | Contiguous Array | 2322 |
864 | Trapping Rain Water II LeetCode Solution | 2319 |
865 | Number of siblings of a given Node in n-ary Tree | 2317 |
866 | Stone Game IV LeetCode Solution | 2314 |
867 | Four Elements that Sum to Given | 2314 |
868 | Subset Sum Problem in O(sum) space | 2312 |
869 | Shuffle an Array | 2311 |
870 | Binary array after M range toggle operations | 2303 |
871 | Median of Two Sorted Arrays | 2301 |
872 | Merge Two Sorted Arrays | 2301 |
873 | Find the largest multiple of 3 | 2296 |
874 | Isomorphic Strings | 2293 |
875 | Unique Binary Search Trees | 2286 |
876 | Count and Say | 2284 |
877 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2282 |
878 | Permutations of a Given String Using STL | 2282 |
879 | Red-Black Tree Introduction | 2278 |
880 | Maximum Population Year LeetCode Solution | 2270 |
881 | Next Greater Element in an Array | 2262 |
882 | Valid Number | 2261 |
883 | Find Largest d in Array such that a + b + c = d | 2260 |
884 | Infix to Postfix | 2255 |
885 | Maximum Product Subarray | 2253 |
886 | Encoded String With Shortest Length LeetCode Solution | 2247 |
887 | Friends Pairing Problem | 2246 |
888 | Maximum Sum of 3 Non-Overlapping Subarrays | 2243 |
889 | Find unique character in a string | 2241 |
890 | Insert Delete GetRandom | 2240 |
891 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2239 |
892 | Transform a BST to Greater sum Tree | 2238 |
893 | Averages of Levels in Binary Tree | 2238 |
894 | Write a function to get the intersection point of two Linked Lists | 2235 |
895 | Count Primes in Ranges | 2232 |
896 | Closest Binary Search Tree Value Leetcode Solution | 2228 |
897 | Height of a generic tree from parent array | 2225 |
898 | Valid Perfect Square LeetCode Solution | 2220 |
899 | Orderly Queue LeetCode Solution | 2218 |
900 | The Number of Weak Characters in the Game LeetCode Solution | 2216 |
901 | Binary Search Tree Delete Operation | 2215 |
902 | Shuffle a given Array | 2214 |
903 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2210 |
904 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2207 |
905 | Sentence Screen Fitting LeetCode Solution | 2203 |
906 | Edit Distance | 2192 |
907 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2186 |
908 | Serialize and Deserialize Binary Tree | 2186 |
909 | Bold Words in String LeetCode Solution | 2183 |
910 | Minimum sum of squares of character counts in a given string after removing k characters | 2182 |
911 | Reorganize String | 2176 |
912 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2170 |
913 | Convert BST into a Min-Heap without using array | 2164 |
914 | Find Minimum In Rotated Sorted Array | 2161 |
915 | Diameter of N-Ary Tree LeetCode Solution | 2159 |
916 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2158 |
917 | Next greater element | 2158 |
918 | Integer to Roman | 2157 |
919 | Swap Nodes In Pairs | 2149 |
920 | Lowest Common Ancestor in Binary Search Tree | 2149 |
921 | Maximum Product Subarray | 2141 |
922 | Next Greater Element II LeetCode Solution | 2132 |
923 | Array Queries for multiply replacements and product | 2130 |
924 | Advantages of BST over Hash Table | 2126 |
925 | Find the smallest binary digit multiple of given number | 2125 |
926 | K’th Largest element in BST using constant extra space | 2121 |
927 | K’th Largest Element in BST when modification to BST is not allowed | 2121 |
928 | Koko Eating Bananas LeetCode Solution | 2117 |
929 | Total Hamming Distance LeetCode Solution | 2111 |
930 | Write Code to Determine if Two Trees are Identical | 2105 |
931 | Print n terms of Newman-Conway Sequence | 2105 |
932 | Best Meeting Point LeetCode Solution | 2103 |
933 | Longest Increasing Consecutive Subsequence | 2100 |
934 | Check if an Array is Stack Sortable | 2097 |
935 | Constant time range add operation on an array | 2096 |
936 | Level Order Traversal of Binary Tree | 2093 |
937 | Queries on XOR of greatest odd divisor of the range | 2091 |
938 | Serialize and Deserialize Binary Tree LeetCode Solution | 2089 |
939 | Maximum Sum Increasing Subsequence | 2081 |
940 | Range Queries for Longest Correct Bracket Subsequence | 2077 |
941 | Image Overlap LeetCode Solution | 2075 |
942 | Number of Orders in the Backlog Leetcode Solution | 2074 |
943 | Clone a Binary Tree with Random Pointers | 2068 |
944 | Power of Two | 2068 |
945 | Reverse a Path in BST using Queue | 2066 |
946 | Moving Stones Until Consecutive Leetcode Solution | 2065 |
947 | Check if X can give change to every person in the Queue | 2059 |
948 | Greatest Sum Divisible by Three LeetCode Solution | 2057 |
949 | Find minimum number of merge operations to make an array palindrome | 2057 |
950 | Find the node with minimum value in a Binary Search Tree | 2053 |
951 | Design Underground System Leetcode Solution | 2052 |
952 | Valid Tic-Tac-Toe State LeetCode Solution | 2051 |
953 | A program to check if a binary tree is BST or not | 2047 |
954 | Numbers with prime frequencies greater than or equal to k | 2045 |
955 | Insert into a Sorted Circular Linked List LeetCode Solution | 2037 |
956 | Check if each internal node of a BST has exactly one child | 2037 |
957 | Count and Toggle Queries on a Binary Array | 2035 |
958 | Form minimum number from given sequence | 2031 |
959 | Factorial Trailing Zeroes LeetCode Solution | 2023 |
960 | Design Add and Search Words Data Structure LeetCode Solution | 2022 |
961 | Maximum Array from Two given Arrays Keeping Order Same | 2022 |
962 | Print Next Greater Number of Q queries | 2019 |
963 | Closest Binary Search Tree Value II LeetCode Solution | 2015 |
964 | Number of elements less than or equal to a given number in a given subarray | 2015 |
965 | Count the Pairs at Same Distance as in English Alphabets | 2014 |
966 | Collect maximum points in a grid using two traversals | 2013 |
967 | Graph Cloning | 2010 |
968 | Check for Palindrome after every character replacement Query | 2006 |
969 | Merge two BSTs with limited extra space | 2001 |
970 | Maximum difference between first and last indexes of an element in array | 1999 |
971 | Queries for Decimal Values of Subarrays of a Binary Array | 1996 |
972 | Largest Plus Sign Leetcode Solution | 1995 |
973 | Group Shifted Strings Leetcode Solution | 1993 |
974 | Merge Sorted Array | 1989 |
975 | Priority Queue | 1977 |
976 | Merge Sort | 1976 |
977 | Dividing Array into Pairs With Sum Divisible by K | 1968 |
978 | Longest Substring Without Repeating Characters Leetcode Solution | 1961 |
979 | Count even length binary sequences with same sum of first and second half bits | 1955 |
980 | Kth Smallest Element in a BST | 1952 |
981 | Cutting a Rod | 1945 |
982 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1943 |
983 | Print modified array after multiple array range increment operations | 1942 |
984 | Form Minimum Number From Given Sequence | 1936 |
985 | Minimum Moves to Equal Array Elements LeetCode Solution | 1933 |
986 | Excel Sheet Column Number LeetCode Solution | 1926 |
987 | Guess The Word | 1918 |
988 | Swim in Rising Water LeetCode Solution | 1917 |
989 | Count Pairs Whose Products Exist in Array | 1916 |
990 | Find maximum average subarray of k length | 1914 |
991 | Unique Paths II | 1908 |
992 | Excel Sheet Column Title LeetCode Solution | 1903 |
993 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1901 |
994 | Binary Search Tree | 1893 |
995 | Print all Possible Ways to Break a String in Bracket Form | 1891 |
996 | Palindrome Partitioning | 1888 |
997 | How to print maximum number of A’s using given four keys | 1887 |
998 | K Empty Slots | 1880 |
999 | Check given array of size n can represent BST of n levels or not | 1876 |
1000 | Binary Search Tree Search and Insertion | 1871 |
1001 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1866 |
1002 | Find postorder traversal of BST from preorder traversal | 1858 |
1003 | Longest Common Prefix using Character by Character Matching | 1855 |
1004 | Regular Expression Matching | 1854 |
1005 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1852 |
1006 | Sorted Array to Balanced BST | 1848 |
1007 | Sum of Left Leaves LeetCode Solution | 1845 |
1008 | Construct Complete Binary Tree from its Linked List Representation | 1814 |
1009 | Maximum Depth Of Binary Tree | 1801 |
1010 | Queries for Number of Distinct Elements in a Subarray | 1800 |
1011 | Find the Town Judge LeetCode Solution | 1789 |
1012 | Maximum weight transformation of a given string | 1789 |
1013 | Iterative method to find ancestors of a given binary tree | 1782 |
1014 | Binary Tree to Binary Search Tree Conversion using STL set | 1765 |
1015 | Symmetric Tree LeetCode Solution Leetcode Solution | 1755 |
1016 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1753 |
1017 | Random Pick Index LeetCode Solution | 1750 |
1018 | Find Maximum Depth of Nested Parenthesis in a String | 1748 |
1019 | Data Structure Designing | 1746 |
1020 | Search in Sorted Rotated Array | 1743 |
1021 | Search an Element in Sorted Rotated Array | 1711 |
1022 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1693 |
1023 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1678 |
1024 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1670 |
1025 | Next Greater Element I Leetcode Solution | 1648 |
1026 | Print Maximum Length Chain of Pairs | 1627 |
1027 | Maximum Binary Tree | 1605 |
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 | 1579 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1538 |