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 | 33773 |
2 | Maximum occurring character in a string | 17686 |
3 | Plus One Leetcode Solution | 16434 |
4 | Valid Parentheses LeetCode Solution | 15812 |
5 | 3Sum Leetcode Solution | 13396 |
6 | First Repeating Element | 13130 |
7 | Single Number Leetcode Solution | 12184 |
8 | Pow(x, n) Leetcode Solution | 11617 |
9 | Sqrt(x) Leetcode Solution | 11322 |
10 | Merge Sorted Arrays Leetcode Solution | 11078 |
11 | Meeting Rooms II LeetCode Solution | 10929 |
12 | Concatenation of Array LeetCode Solution | 10347 |
13 | Contains Duplicate II Leetcode Solution | 9932 |
14 | Roman to Integer Leetcode Solution | 9773 |
15 | Count Primes Leetcode Solutions | 9735 |
16 | Palindrome Number LeetCode Solution | 9567 |
17 | Search Insert Position Leetcode Solution | 9558 |
18 | Valid Palindrome Leetcode Solution | 9365 |
19 | Reverse Vowels of a String Leetcode Solution | 9196 |
20 | Jump Game Leetcode Solution | 8894 |
21 | Intersection of Two Arrays II Leetcode Solution | 8801 |
22 | Kids With the Greatest Number of Candies Leetcode Solution | 8654 |
23 | House Robber Leetcode Solution | 8600 |
24 | Number of Good Pairs Leetcode Solution | 8557 |
25 | Spiral Matrix LeetCode Solution | 8556 |
26 | Find the Maximum Repeating Number in Array | 8482 |
27 | Text Justification LeetCode Solution | 8474 |
28 | Add Binary Leetcode Solution | 8427 |
29 | Longest Substring Without Repeating Characters LeetCode Solution | 8186 |
30 | Number Of 1 bits | 7993 |
31 | Longest Palindromic Substring LeetCode Solution | 7950 |
32 | Jewels and Stones Leetcode Solution | 7931 |
33 | Power of Two Leetcode Solution | 7863 |
34 | Maximum Subarray Leetcode Solution | 7747 |
35 | Permutations Leetcode Solution | 7663 |
36 | Shuffle String Leetcode Solution | 7613 |
37 | Find All Numbers Disappeared in an Array Leetcode Solution | 7565 |
38 | Daily Temperatures Leetcode Solution | 7481 |
39 | Min Stack Leetcode Solution | 7427 |
40 | Kth Missing Positive Number Leetcode Solution | 7357 |
41 | Maximum Profit in Job Scheduling Leetcode Solution | 7347 |
42 | Next Permutation Leetcode Solution | 7335 |
43 | Frog Jump Leetcode Solution | 7293 |
44 | Running Sum of 1d Array Leetcode Solution | 7283 |
45 | Longest Common Prefix Leetcode Solution | 7278 |
46 | Move Zeroes LeetCode Solution | 7263 |
47 | Number of Islands LeetCode Solution | 7260 |
48 | Word Search Leetcode Solution | 7243 |
49 | Third Maximum Number Leetcode Solution | 7159 |
50 | Find Minimum Distance Between Two Numbers in an Array | 7098 |
51 | Rotate Image LeetCode Solution | 6950 |
52 | Bulb Switcher LeetCode Solution | 6903 |
53 | Combination Sum Leetcode Solution | 6891 |
54 | Next Greater Element I Leetcode Solution | 6882 |
55 | Median of Two Sorted Arrays LeetCode Solution | 6862 |
56 | Can Place Flowers LeetCode Solution | 6836 |
57 | Shuffle the Array Leetcode Solution | 6835 |
58 | Remove Duplicates from Sorted Array Leetcode Solution | 6828 |
59 | 3Sum Closest LeetCode Solution | 6787 |
60 | Multiply Strings Leetcode Solution | 6742 |
61 | Search in Rotated Sorted Array Leetcode Solution | 6697 |
62 | House Robber II Leetcode Solution | 6676 |
63 | Reverse String Without Temporary Variable | 6628 |
64 | Count and Say Leetcode Solution | 6622 |
65 | Strobogrammatic Number LeetCode Solution | 6602 |
66 | Missing Number Leetcode Solution | 6598 |
67 | Valid Anagram Leetcode Solution | 6500 |
68 | Subarray and Subsequence | 6476 |
69 | Excel Sheet Column Title Leetcode Solution | 6422 |
70 | Integer to Roman Leetcode Solution | 6400 |
71 | Isomorphic Strings Leetcode Solution | 6375 |
72 | Count Pairs With Given Sum | 6347 |
73 | Evaluation of Postfix Expression | 6340 |
74 | Koko Eating Bananas Leetcode Solution | 6308 |
75 | Product of array except self | 6260 |
76 | Rotate String LeetCode Solution | 6243 |
77 | String to Integer (atoi) LeetCode Solution | 6157 |
78 | Find the Difference Leetcode Solution | 6151 |
79 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 6104 |
80 | Largest Number Leetcode Solution | 6037 |
81 | Candy LeetCode Solution | 5982 |
82 | Majority Element Leetcode Solution | 5976 |
83 | Happy Number Leetcode Solution | 5943 |
84 | Set Matrix Zeroes | 5885 |
85 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 5862 |
86 | Balanced Binary Tree Leetcode Solution | 5848 |
87 | Find Common Characters Leetcode Solution | 5846 |
88 | Is Subsequence Leetcode Solution | 5789 |
89 | Summary Ranges Leetcode Solution | 5770 |
90 | Smallest window in a string containing all characters of another string | 5721 |
91 | Arranging Coins Leetcode Solution | 5692 |
92 | Find the Town Judge Leetcode Solution | 5690 |
93 | Word Pattern LeetCode Solution | 5654 |
94 | Unique Paths Leetcode Solution | 5635 |
95 | Subset Leetcode | 5612 |
96 | Rearrange Positive and Negative Numbers Alternatively in Array | 5581 |
97 | Sort Colors LeetCode Solution | 5561 |
98 | String Compression LeetCode Solution | 5484 |
99 | Sort Characters By Frequency LeetCode Solution | 5484 |
100 | Binary Search LeetCode Solution | 5469 |
101 | Asteroid Collision LeetCode Solution | 5427 |
102 | Repeated Substring Pattern LeetCode Solution | 5417 |
103 | Find the Winner of the Circular Game LeetCode Solution | 5398 |
104 | Find the Duplicate Number LeetCode Solution | 5386 |
105 | Best Time to Buy and Sell Stock LeetCode Solution | 5382 |
106 | Linked List Cycle II LeetCode Solution | 5338 |
107 | Reverse Integer Leetcode Solution | 5333 |
108 | Sort Array By Parity LeetCode Solution | 5333 |
109 | Valid Palindrome II Leetcode Solution | 5297 |
110 | Best Time to Buy and Sell Stock II Leetcode Solution | 5263 |
111 | Sum of minimum and maximum elements of all subarrays of size k | 5263 |
112 | Product of Array Except Self LeetCode Solution | 5233 |
113 | A Product Array Puzzle | 5233 |
114 | Rabin Karp Algorithm | 5223 |
115 | Zigzag Conversion LeetCode Solution | 5217 |
116 | Divide Two Integers Leetcode Solution | 5175 |
117 | Expression Evaluation | 5163 |
118 | Bus Routes Leetcode Solution | 5154 |
119 | Group Anagrams LeetCode Solution | 5108 |
120 | Employee Free Time LeetCode Solution | 5100 |
121 | Merge Two Sorted Lists Leetcode Solutions | 5094 |
122 | First element occurring k times in an array | 5039 |
123 | Pascal Triangle Leetcode | 5019 |
124 | Minimum Cost For Tickets Leetcode Solution | 4983 |
125 | Matrix Chain Multiplication using Dynamic Programming | 4970 |
126 | Build Array From Permutation Leetcode Solution | 4958 |
127 | Postfix to Infix Conversion | 4953 |
128 | Page Replacement Algorithms in Operating Systems | 4938 |
129 | Length of Last Word Leetcode Solution | 4925 |
130 | Kth largest element in an Array Leetcode Solutions | 4918 |
131 | Number of Provinces Leetcode Solution | 4891 |
132 | Minimum Steps to reach target by a Knight | 4889 |
133 | Increasing Triplet Subsequence LeetCode Solution | 4884 |
134 | Optimal Account Balancing LeetCode Solution | 4851 |
135 | H-Index Leetcode Solution | 4833 |
136 | Implementation of Deque using Doubly Linked List | 4826 |
137 | Assign Cookies Leetcode Solution | 4823 |
138 | Decode String Leetcode Solution | 4801 |
139 | Fibonacci Number LeetCode Solution | 4799 |
140 | Defanging an IP Address Leetcode Solution | 4771 |
141 | Robot Room Cleaner Leetcode Solution | 4720 |
142 | First Unique Character in a String LeetCode Solution | 4710 |
143 | Generate Parentheses Leetcode Solution | 4705 |
144 | Convert array into Zig-Zag fashion | 4686 |
145 | Remove Duplicates from Sorted Array II Leetcode Solution | 4674 |
146 | Subarray with Given Sum | 4613 |
147 | Find Smallest Missing Number in a Sorted Array | 4606 |
148 | Swap Nodes in Pairs Leetcode Solutions | 4584 |
149 | Island Perimeter Leetcode Solution | 4567 |
150 | Check if the Elements of an Array are Consecutive | 4562 |
151 | Subarray Product Less Than K LeetCode Solution | 4561 |
152 | Pascal’s Triangle II Leetcode Solution | 4560 |
153 | Bellman Ford Algorithm | 4540 |
154 | Length of the largest subarray with contiguous elements | 4537 |
155 | Guess Number Higher or Lower LeetCode Solution | 4529 |
156 | K-th Smallest Element in a Sorted Matrix | 4527 |
157 | Prefix to Infix Conversion | 4522 |
158 | Add Two Numbers II Leetcode Solution | 4483 |
159 | Coin Change 2 Leetcode Solution | 4476 |
160 | Find the Missing Number | 4476 |
161 | Last Stone Weight | 4472 |
162 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 4460 |
163 | KMP Algorithm | 4458 |
164 | Reverse Words in a String III LeetCode Solution | 4456 |
165 | Max Consecutive Ones Leetcode Solution | 4435 |
166 | Lemonade Change Leetcode Solution | 4428 |
167 | Form Minimum Number from Given Sequence of D’s and I’s | 4423 |
168 | Majority Element II Leetcode Solution | 4389 |
169 | OSI Model | 4384 |
170 | Design Parking System Leetcode Solution | 4380 |
171 | Capacity To Ship Packages Within D Days Leetcode Solution | 4376 |
172 | Combinations Leetcode Solution | 4345 |
173 | First negative integer in every window of size k | 4344 |
174 | Find Pair with Given Difference | 4344 |
175 | Backspace String Compare | 4322 |
176 | Remove Linked List Elements Leetcode Solution | 4319 |
177 | String Compression | 4319 |
178 | Palindrome Linked List Leetcode Solution | 4295 |
179 | Trapping Rain Water Leetcode Solution | 4291 |
180 | Find All Duplicates in an Array LeetCode Solution | 4291 |
181 | Iterative Implementation of Quick Sort | 4287 |
182 | Delete middle element of a stack | 4270 |
183 | Remove Duplicates from Sorted List II LeetCode Solution | 4258 |
184 | Repeated Substring Pattern | 4229 |
185 | Break a Palindrome LeetCode Solution | 4200 |
186 | Word Ladder LeetCode Solution | 4198 |
187 | Same Tree LeetCode Solution | 4187 |
188 | Remove All Occurrences of a Substring LeetCode Solution | 4171 |
189 | Monotonic Array LeetCode Solution | 4160 |
190 | Subarray Sum Equals K LeetCode Solution | 4148 |
191 | Slowest Key Leetcode Solution | 4148 |
192 | Merge Sorted Array LeetCode Solution | 4107 |
193 | Continuous Subarray Sum LeetCode Solution | 4089 |
194 | Merge k Sorted Lists Leetcode Solution | 4087 |
195 | 01 Matrix LeetCode Solution | 4087 |
196 | Make The String Great Leetcode Solution | 4077 |
197 | Find the Row with Maximum Number of 1’s | 4059 |
198 | Convert a Number to Hexadecimal Leetcode Solution | 4029 |
199 | Leetcode Permutations | 4018 |
200 | Second Most Repeated Word in a Sequence | 4014 |
201 | Find Peak Element LeetCode Solution | 4006 |
202 | Number of Dice Rolls With Target Sum LeetCode Solution | 4006 |
203 | The K Weakest Rows in a Matrix Leetcode Solution | 3998 |
204 | Rearrange given Array in Maximum Minimum Form | 3990 |
205 | Time Based Key-Value Store LeetCode Solution | 3987 |
206 | Find N Unique Integers Sum up to Zero Leetcode Solution | 3978 |
207 | Moving Average from Data Stream Leetcode Solution | 3976 |
208 | Valid Perfect Square Leetcode Solution | 3971 |
209 | Kth Largest Element in a Stream Leetcode Solution | 3965 |
210 | Insert Delete GetRandom O(1) Leetcode Solution | 3956 |
211 | Single Element in a Sorted Array LeetCode Solution | 3954 |
212 | Delete Node in a Linked List Leetcode Solution | 3954 |
213 | Printing brackets in Matrix Chain Multiplication Problem | 3948 |
214 | Target Sum | 3947 |
215 | Combination Sum | 3943 |
216 | Rotate List Leetcode Solution | 3937 |
217 | Subarray Sum Equals k | 3899 |
218 | Generate all Binary Strings Without Consecutive 1’s | 3893 |
219 | Check If Two String Arrays are Equivalent Leetcode Solution | 3892 |
220 | Find the Duplicate Element | 3891 |
221 | Max Area of Island | 3887 |
222 | Top K Frequent Elements LeetCode Solution | 3884 |
223 | Longest Common Subsequence LeetCode Solution | 3871 |
224 | Palindrome Number | 3864 |
225 | Maximum Product of Three Numbers LeetCode Solution | 3860 |
226 | Reverse Only Letters LeetCode Solution | 3846 |
227 | Cuckoo sequence program | 3843 |
228 | Prefix to Postfix Conversion | 3828 |
229 | LRU Cache LeetCode Solution | 3809 |
230 | Minimum Knight Moves LeetCode Solution | 3807 |
231 | Relative Sort Array Leetcode Solution | 3801 |
232 | Relative Ranks Leetcode Solution | 3795 |
233 | Find Leaders in an Array | 3793 |
234 | Find Triplet in Array With a Given Sum | 3789 |
235 | Flipping an Image LeetCode Solution | 3779 |
236 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 3778 |
237 | Scramble String | 3764 |
238 | Count Good Nodes in Binary Tree Leetcode Solution | 3760 |
239 | Maximum Population Year LeetCode Solution | 3738 |
240 | Letter Combinations of a Phone Number | 3736 |
241 | Permutation in String Leetcode Solution | 3731 |
242 | Smallest Positive Number Missing in an Unsorted Array | 3731 |
243 | Unique Paths II Leetcode Solution | 3715 |
244 | The kth Factor of n Leetcode Solution | 3699 |
245 | Check If N and Its Double Exist Leetcode Solution | 3695 |
246 | Stock Buy Sell to Maximize Profit | 3673 |
247 | Minimum swaps required to bring all elements less than or equal to k together | 3656 |
248 | To Lower Case Leetcode Solution | 3652 |
249 | Maximum Subarray Sum using Divide and Conquer | 3652 |
250 | Remove Minimum Characters so that Two Strings Become Anagrams | 3651 |
251 | Top K Frequent Elements | 3649 |
252 | N-Queens LeetCode Solution | 3648 |
253 | Minimum Operations to convert X to Y | 3646 |
254 | Given two unsorted arrays find all pairs whose sum is x | 3642 |
255 | Arithmetic Expression Evaluation | 3641 |
256 | Search Suggestions System LeetCode Solution | 3624 |
257 | Set Matrix Zeroes Leetcode Solution | 3624 |
258 | Sum of Subarray Ranges Leetcode Solution | 3588 |
259 | Student Attendance Record I Leetcode Solution | 3583 |
260 | Min Cost Climbing Stairs LeetCode Solution | 3576 |
261 | Find the Number Occurring Odd Number of Times in an Array | 3544 |
262 | Maximize Distance to Closest Person LeetCode Solution | 3540 |
263 | Top K Frequent Words LeetCode Solution | 3540 |
264 | Remove Duplicates from Sorted List LeetCode Solution | 3537 |
265 | License Key Formatting Leetcode Solution | 3536 |
266 | Maximum Sum Increasing Subsequence | 3511 |
267 | Reformat Date LeetCode Solution | 3495 |
268 | Stone Game LeetCode | 3466 |
269 | Next Permutation | 3456 |
270 | Construct Binary Tree from Given Inorder and Preorder Traversals | 3444 |
271 | Find if Path Exists in Graph Leetcode Solution | 3434 |
272 | Most Frequent Element in an Array | 3427 |
273 | Arrange given Numbers to Form the Biggest Number II | 3421 |
274 | Prim’s Algorithm | 3417 |
275 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 3397 |
276 | Reverse individual words | 3396 |
277 | Min Stack | 3390 |
278 | Minimum Characters to be Added at Front to Make String Palindrome | 3390 |
279 | Minimum Path Sum Leetcode Solution | 3387 |
280 | Find any one of the multiple repeating elements in read only array | 3380 |
281 | Container With Most Water LeetCode Solution | 3379 |
282 | Implement a stack using single queue | 3379 |
283 | Design A Leaderboard Leetcode Solution | 3377 |
284 | Diagonal Traverse LeetCode Solution | 3377 |
285 | Sort Elements by Frequency of Occurrences | 3371 |
286 | Count of index pairs with equal elements in an array | 3368 |
287 | Reverse words in a string | 3364 |
288 | Intersection of Two Arrays | 3357 |
289 | BFS for Disconnected Graph | 3350 |
290 | Evaluate Division | 3346 |
291 | Spiral Matrix II Leetcode Solution | 3326 |
292 | Maximum Depth of Binary Tree Leetcode Solution | 3313 |
293 | Find Words That Can Be Formed by Characters Leetcode Solution | 3305 |
294 | Diagonal Traversal LeetCode Solution | 3300 |
295 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 3297 |
296 | Count Number of Occurrences in a Sorted Array | 3293 |
297 | Invalid Transactions LeetCode Solution | 3284 |
298 | Minimum number of Merge Operations to make an Array Palindrome | 3276 |
299 | Length of Longest valid Substring | 3269 |
300 | Find The Duplicate Number | 3265 |
301 | Reveal Cards In Increasing Order Leetcode Solution | 3253 |
302 | Best Time to Buy and Sell Stock III Leetcode Solution | 3251 |
303 | Contains Duplicate LeetCode Solution | 3245 |
304 | Longest Common Subsequence | 3243 |
305 | House Robber | 3243 |
306 | Least Number of Unique Integers after K Removals Leetcode Solution | 3231 |
307 | Symmetric Tree Leetcode Solution | 3214 |
308 | Remove Nth Node From End of List Leetcode Solution | 3206 |
309 | Last Stone Weight II LeetCode Solution | 3196 |
310 | Maximum Size Subarray Sum Equals k Leetcode Solution | 3194 |
311 | Single Number | 3187 |
312 | Brightest Position on Street LeetCode Solution | 3185 |
313 | Robot Bounded In Circle LeetCode Solution | 3178 |
314 | Special Positions in a Binary Matrix Leetcode Solution | 3174 |
315 | Find Leaves of Binary Tree LeetCode Solution | 3162 |
316 | Partition Labels LeetCode Solution | 3152 |
317 | Sudoku Solver | 3152 |
318 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3143 |
319 | Construct BST from its given Level Order Traversal | 3141 |
320 | N-th Tribonacci Number Leetcode Solution | 3136 |
321 | The Celebrity Problem | 3132 |
322 | Alien Dictionary LeetCode Solution | 3129 |
323 | Shortest Word Distance Leetcode Solution | 3127 |
324 | Find the Closest Palindrome number | 3124 |
325 | Binary Tree Inorder Traversal LeetCode Solution | 3121 |
326 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3112 |
327 | Range Sum Query 2D – Immutable Leetcode Solution | 3104 |
328 | Reverse Bits | 3098 |
329 | Invert Binary Tree LeetCode Solution | 3096 |
330 | Next Greater Element III LeetCode Solution | 3094 |
331 | One Edit Distance LeetCode Solution | 3089 |
332 | Check whether Strings are K Distance Apart or Not | 3081 |
333 | Mobile Numeric Keypad Problem | 3072 |
334 | Count of Triplets With Sum Less than Given Value | 3065 |
335 | Find Duplicates in an Array in Most Efficient Way | 3063 |
336 | Round Robin Scheduling | 3047 |
337 | Jump Game | 3046 |
338 | Pair of Positive Negative Values in an Array | 3038 |
339 | Next Permutation LeetCode Solution | 3030 |
340 | Remove All Ones With Row and Column Flips Leetcode Solution | 3012 |
341 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 3008 |
342 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3005 |
343 | Clone Graph LeetCode Solution | 3003 |
344 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3000 |
345 | Sort Array By Parity II Leetcode Solution | 3000 |
346 | Minimum operation to make all elements equal in array | 3000 |
347 | Remove Invalid Parentheses Leetcode Solution | 2995 |
348 | Largest Rectangle in Histogram LeetCode Solution | 2994 |
349 | Painting Fence Algorithm | 2986 |
350 | Merge Two Sorted Linked Lists | 2978 |
351 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 2972 |
352 | Find the First and Second Smallest Elements | 2957 |
353 | Minimum Time Visiting All Points Leetcode Solution | 2956 |
354 | Find Top K (or Most Frequent) Numbers in a Stream | 2941 |
355 | Combination Sum IV LeetCode Solution | 2935 |
356 | Minimum Moves to Equal Array Elements Leetcode Solution | 2933 |
357 | Maximal Square | 2933 |
358 | Rank Transform of an Array Leetcode Solution | 2929 |
359 | Tug of War | 2927 |
360 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 2926 |
361 | Check if a given array contains duplicate elements within k distance from each other | 2918 |
362 | Find the subarray with least average | 2918 |
363 | Sort a stack using a temporary stack | 2916 |
364 | Longest subarray not having more than K distinct elements | 2910 |
365 | Find minimum difference between any two elements | 2908 |
366 | Reverse Nodes in k-Group LeetCode Solution | 2904 |
367 | Longest subsequence such that difference between adjacents is one | 2900 |
368 | Number of Smaller Elements on Right Side | 2898 |
369 | String Matching in an Array Leetcode Solution | 2896 |
370 | K Empty Slots LeetCode | 2890 |
371 | Range Sum of BST LeetCode Solution | 2887 |
372 | Unique Paths | 2886 |
373 | LRU Cache Implementation | 2886 |
374 | Maximum Circular Subarray Sum | 2884 |
375 | Minimum Depth of Binary Tree Leetcode Solution | 2882 |
376 | Maximum Number of Occurrences of a Substring Leetcode Solution | 2877 |
377 | Bitwise AND of Numbers Range LeetCode Solution | 2877 |
378 | Find the Smallest Divisor given a Threshold Leetcode Solution | 2870 |
379 | Path With Maximum Minimum Value LeetCode Solution | 2869 |
380 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 2867 |
381 | Paint House LeetCode Solution | 2865 |
382 | Longest Common Prefix using Trie | 2865 |
383 | Design Browser History LeetCode Solution | 2862 |
384 | Minimum Cost to Hire K Workers | 2862 |
385 | LRU Cache Leetcode Solution | 2856 |
386 | Sliding Window Technique | 2856 |
387 | Missing Element in Sorted Array LeetCode Solution | 2852 |
388 | Find Maximum Level sum in Binary Tree | 2849 |
389 | Integer Break LeetCode Solution | 2848 |
390 | Ugly Number II LeetCode Solution | 2847 |
391 | Smallest Subarray with k Distinct Numbers | 2847 |
392 | Dijkstra Algorithm | 2847 |
393 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 2846 |
394 | Minimize Maximum Pair Sum in Array LeetCode Solution | 2839 |
395 | First Circular Tour to Visit all the Petrol Bunks | 2837 |
396 | Insert Interval Leetcode Solution | 2836 |
397 | Common elements in all rows of a given matrix | 2833 |
398 | Permutation Sequence LeetCode Solution | 2829 |
399 | Non-decreasing Array LeetCode Solution | 2829 |
400 | Hamming Distance Leetcode Solution | 2829 |
401 | Graph Valid Tree LeetCode Solution | 2826 |
402 | Split Linked List in Parts Leetcode Solution | 2823 |
403 | Find the Peak Element from an Array | 2823 |
404 | Number of Islands II LeetCode Solution | 2818 |
405 | Consecutive Characters LeetCode Solution | 2809 |
406 | Given an Array of Pairs Find all Symmetric Pairs in it | 2801 |
407 | Queries for counts of array elements with values in given range | 2793 |
408 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 2791 |
409 | Transpose Graph | 2785 |
410 | K Closest Points to Origin Leetcode Solution | 2783 |
411 | Unique Paths III LeetCode Solution | 2777 |
412 | Invert Binary Tree LeetCode Solution | 2769 |
413 | Number of Closed Islands Leetcode Solution | 2769 |
414 | Max stack | 2766 |
415 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 2765 |
416 | Find duplicates in a given array when elements are not limited to a range | 2765 |
417 | Priority Queue using doubly linked list | 2765 |
418 | Minesweeper LeetCode Solution | 2756 |
419 | Stone Game II Leetcode | 2744 |
420 | Implementation of Deque using circular array | 2740 |
421 | Move All the Zeros to the End of the Given Array | 2737 |
422 | Sort elements by frequency | 2731 |
423 | Decompress Run-Length Encoded List Leetcode Solution | 2725 |
424 | Maximum Consecutive Numbers Present in an Array | 2721 |
425 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 2717 |
426 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 2710 |
427 | Is Graph Bipartite? LeetCode Solution | 2709 |
428 | Odd Even Linked List Leetcode Solution | 2708 |
429 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 2708 |
430 | Word Search | 2707 |
431 | Nth Catalan Number | 2702 |
432 | Top View of Binary Tree | 2700 |
433 | Stack Permutations (Check if an array is stack permutation of other) | 2697 |
434 | Expression Contains Redundant Bracket or Not | 2697 |
435 | Binary Tree Maximum Path Sum LeetCode Solution | 2693 |
436 | Restore IP Addresses Leetcode Solution | 2691 |
437 | Snakes and Ladders LeetCode Solution | 2687 |
438 | Sorting array using Stacks | 2683 |
439 | Longest Common Prefix using Sorting | 2682 |
440 | Partition List Leetcode Solution | 2678 |
441 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 2676 |
442 | Integer to English words | 2666 |
443 | Kth Smallest Element in a BST Leetcode Solution | 2665 |
444 | Gold Mine Problem | 2665 |
445 | Toeplitz Matrix | 2665 |
446 | Path Sum II LeetCode Solution | 2664 |
447 | Priority Queue in C++ | 2664 |
448 | Reverse a linked list | 2662 |
449 | Rearrange array such that even positioned are greater than odd | 2657 |
450 | Validate Stack Sequences LeetCode Solution | 2653 |
451 | Maximum Subarray | 2652 |
452 | Count Submatrices With All Ones LeetCode Solution | 2647 |
453 | Recursion | 2645 |
454 | Flood Fill LeetCode | 2640 |
455 | Vertical Order Traversal of Binary Tree LeetCode Solution | 2636 |
456 | Multiplication of Two Matrices | 2634 |
457 | Kth Non-repeating Character | 2629 |
458 | Find a Peak Element II LeetCode Solution | 2628 |
459 | Number of Days Between Two Dates LeetCode Solution | 2627 |
460 | Palindrome Substring Queries | 2624 |
461 | Minimum Absolute Difference in BST Leetcode Solution | 2623 |
462 | Sequences of given length where every element is more than or equal to twice of previous | 2619 |
463 | Number Complement Leetcode Solution | 2611 |
464 | How to Implement Stack Using Priority Queue or Heap? | 2608 |
465 | Find a Fixed Point in a Given Array | 2608 |
466 | Cells with Odd Values in a Matrix LeetCode Solution | 2603 |
467 | Longest Increasing Path in a Matrix LeetCode Solution | 2601 |
468 | Search a 2D Matrix II Leetcode Solution | 2596 |
469 | Queries for GCD of all numbers of an array except elements in a given range | 2590 |
470 | Find All Possible Recipes from Given Supplies LeetCode Solution | 2587 |
471 | Minimum Path Sum | 2581 |
472 | Reorder Data in Log Files LeetCode Solution | 2580 |
473 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 2576 |
474 | Distance of nearest cell having 1 in a binary matrix | 2576 |
475 | Majority Element | 2572 |
476 | Shortest Completing Word Leetcode Solution | 2571 |
477 | Search in a Binary Search Tree Leetcode Solution | 2569 |
478 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 2569 |
479 | Intersection of Two Linked Lists LeetCode Solution | 2563 |
480 | Detect a loop in the Linked List | 2562 |
481 | Kruskal Algorithm | 2561 |
482 | Trapping Rain Water LeetCode Solution | 2548 |
483 | Best Time to Buy and Sell Stock | 2544 |
484 | Scramble String LeetCode Solution | 2543 |
485 | Find Pythagorean Triplets from Array | 2543 |
486 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 2542 |
487 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 2541 |
488 | High Five LeetCode Solution | 2539 |
489 | Shortest Palindrome | 2537 |
490 | Insert into a Binary Search Tree Leetcode Solution | 2533 |
491 | Largest rectangular sub-matrix whose sum is 0 | 2531 |
492 | Find Median from Data Stream LeetCode Solution | 2527 |
493 | Merge Two Binary Trees LeetCode Solution | 2527 |
494 | Tiling Problem | 2526 |
495 | Design Hit Counter LeetCode Solution | 2523 |
496 | The Stock Span Problem | 2519 |
497 | Generate all Binary Strings from Given Pattern | 2517 |
498 | Balanced Expression with Replacement | 2514 |
499 | Insert Node in the Sorted Linked List | 2513 |
500 | 4Sum | 2512 |
501 | Implement Trie (Prefix Tree) Leetcode Solution | 2507 |
502 | Check If Array Pairs Are Divisible by k LeetCode Solution | 2503 |
503 | Postfix to Prefix Conversion | 2503 |
504 | Divide Chocolate LeetCode Solution | 2501 |
505 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 2496 |
506 | Custom Sort String Leetcode Solution | 2496 |
507 | Longest Common Prefix using Divide and Conquer | 2491 |
508 | Race Car LeetCode Solution | 2490 |
509 | Guess Number Higher or Lower II | 2489 |
510 | Find the Minimum Element in a Sorted and Rotated Array | 2488 |
511 | Camelcase Matching Leetcode Solution | 2482 |
512 | Pancake Sorting Problem | 2482 |
513 | Check if Two given Strings are Isomorphic to each other | 2481 |
514 | The Maze III LeetCode Solution | 2479 |
515 | Evaluate Reverse Polish Notation LeetCode Solution | 2473 |
516 | Largest Subarray with Equal Number of 0’s and 1’s | 2473 |
517 | Kth ancestor of a node in binary tree | 2471 |
518 | Spiral Matrix III LeetCode Solution | 2470 |
519 | Letter Case Permutation | 2467 |
520 | Count subarrays having total distinct elements same as original array | 2466 |
521 | Print all Palindromic Partitions of a String | 2466 |
522 | Substring with Concatenation of All Words Leetcode Solution | 2460 |
523 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 2457 |
524 | Interval Tree | 2456 |
525 | Palindrome Permutation LeetCode Solution | 2451 |
526 | Sort Colors | 2441 |
527 | Sliding Window Maximum LeetCode Solution | 2439 |
528 | Sieve of Eratosthenes | 2437 |
529 | Sliding Window Median Leetcode Solution | 2435 |
530 | LCS (Longest Common Subsequence) of three strings | 2435 |
531 | Count Possible Triangles | 2434 |
532 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 2433 |
533 | Convert BST to Min Heap | 2431 |
534 | Analyze User Website Visit Pattern LeetCode Solution | 2430 |
535 | Merge Overlapping Intervals | 2427 |
536 | Find the first Repeating Number in a Given Array | 2424 |
537 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 2418 |
538 | Maximum Sum of Non Consecutive Elements | 2406 |
539 | Sort an array according to the order defined by another array | 2402 |
540 | Minimum Bracket Reversals | 2401 |
541 | Fibonacci numbers | 2401 |
542 | Find a Sorted Subsequence of size 3 | 2400 |
543 | How to Create Mergable Stack? | 2398 |
544 | Edit Distance LeetCode Solution | 2390 |
545 | Maximum Length of Chain Pairs | 2388 |
546 | Decode String | 2386 |
547 | Coin Change Problem | 2386 |
548 | 3 Sum | 2384 |
549 | Minimum Jumps to Reach Home LeetCode Solution | 2383 |
550 | Jump Game IV LeetCode Solution | 2381 |
551 | Longest Repeated Subsequence | 2380 |
552 | Iterative Method to find Height of Binary Tree | 2380 |
553 | Maximum Number of Ways to Partition an Array LeetCode Solution | 2367 |
554 | Implement Two Stacks in an Array | 2367 |
555 | Group Anagrams | 2365 |
556 | Minimum Height Trees | 2365 |
557 | Perfect Squares LeetCode Solution | 2363 |
558 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2357 |
559 | Maximum Element in an Array which is Increasing and then Decreasing | 2356 |
560 | N queen problem | 2349 |
561 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 2348 |
562 | Path Crossing Leetcode Solution | 2348 |
563 | Number of Distinct Islands Leetcode Solution | 2347 |
564 | Find the Lost Element From a Duplicated Array | 2347 |
565 | Shifting Letters LeetCode Solution | 2346 |
566 | Different Ways to Add Parentheses Leetcode Solution | 2341 |
567 | Find maximum length Snake sequence | 2341 |
568 | Recover Binary Search Tree Leetcode Solution | 2338 |
569 | Build an Array With Stack Operations Leetcode Solution | 2326 |
570 | K-th Distinct Element in an Array | 2326 |
571 | Decode Ways | 2325 |
572 | Fibonacci Number LeetCode Solution | 2317 |
573 | Rectangle Overlap LeetCode Solution | 2314 |
574 | Subarrays with K Different Integers Leetcode Solution | 2311 |
575 | Champagne Tower LeetCode Solution | 2311 |
576 | Sorted Linked List to Balanced BST | 2308 |
577 | Nearest Exit from Entrance in Maze LeetCode Solution | 2307 |
578 | Subset sum problem | 2300 |
579 | Contains Duplicate | 2296 |
580 | Most Stones Removed with Same Row or Column LeetCode Solution | 2295 |
581 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 2293 |
582 | Find if an Expression has Duplicate Parenthesis or Not | 2290 |
583 | Count items common to both the lists but with different prices | 2287 |
584 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 2281 |
585 | Find Largest Value in Each Tree Row LeetCode Solution | 2277 |
586 | First missing positive | 2273 |
587 | Possible Bipartition LeetCode Solution | 2271 |
588 | Monotonic Array Leetcode Solution | 2270 |
589 | Palindrome Partitioning Leetcode Solution | 2269 |
590 | Queue based approach for first non-repeating character in a stream | 2267 |
591 | Valid Boomerang Leetcode Solution | 2266 |
592 | Sort a stack using recursion | 2264 |
593 | Design a Stack With Increment Operation Leetcode Solution | 2262 |
594 | Number of Equivalent Domino Pairs Leetcode Solution | 2255 |
595 | Sliding Window Maximum | 2254 |
596 | Minimum Height Trees LeetCode Solution | 2253 |
597 | Palindrome Permutations of a String | 2250 |
598 | Contiguous Array LeetCode Solution | 2244 |
599 | Sort a String According to Another String | 2237 |
600 | Palindromic Substrings Leetcode Solution | 2232 |
601 | Find the Town Judge LeetCode Solution | 2230 |
602 | Merge Overlapping Intervals II | 2224 |
603 | Detect Capital Leetcode Solution | 2222 |
604 | Reorder an Array According to the Given Indexes | 2222 |
605 | Maximum Frequency Stack Leetcode Solution | 2221 |
606 | Rearrange Spaces Between Words Leetcode Solution | 2220 |
607 | Merge Two Balanced Binary Search Trees | 2218 |
608 | Distance Between Bus Stops Leetcode Solution | 2212 |
609 | Word Break | 2212 |
610 | Best Meeting Point LeetCode Solution | 2211 |
611 | Number of palindromic paths in a matrix | 2193 |
612 | Morris Traversal | 2191 |
613 | Maximum sum rectangle in a 2D matrix | 2191 |
614 | Swapping Nodes in a Linked List Leetcode Solution | 2188 |
615 | Valid Parentheses Leetcode Solution | 2185 |
616 | Perform String Shifts Leetcode | 2183 |
617 | Find the Subarray of given length with Least Average | 2183 |
618 | Caesar Cipher | 2168 |
619 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2166 |
620 | Find Median from data Stream | 2164 |
621 | Maximum Depth of N-ary Tree Leetcode Solution | 2161 |
622 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2161 |
623 | Merge K Sorted Arrays and Print Sorted Output | 2161 |
624 | Recover Binary Search Tree | 2158 |
625 | All Possible Full Binary Trees LeetCode Solution | 2155 |
626 | Maximum Score After Splitting a String Leetcode Solution | 2153 |
627 | Construction of Longest Increasing Subsequence (N log N) | 2152 |
628 | Maximize Elements Using Another Array | 2139 |
629 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2139 |
630 | Brick Wall LeetCode Solution | 2138 |
631 | Minimum number of jumps to reach end | 2137 |
632 | Queue using Stacks | 2135 |
633 | Reach a Number LeetCode Solution | 2133 |
634 | Smallest Good Base | 2133 |
635 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2131 |
636 | Pair with given product | 2129 |
637 | Palindrome Permutation | 2124 |
638 | Mean of Array After Removing Some Elements Leetcode Solution | 2123 |
639 | Find the First Circular Tour that visits all the Petrol Pumps | 2123 |
640 | Binary Tree zigzag level order Traversal | 2123 |
641 | Word Pattern | 2122 |
642 | Implement strStr() LeetCode Solution | 2116 |
643 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2112 |
644 | My Calendar I LeetCode Solution | 2108 |
645 | Valid Sudoku | 2107 |
646 | Split Array Into Consecutive Subsequences | 2097 |
647 | Check if a Linked list of Strings form a Palindrome | 2097 |
648 | How to Efficiently Implement k Stacks in a Single Array? | 2079 |
649 | Find all pairs (a, b) in an array such that a % b = k | 2075 |
650 | Binary Tree Right Side View LeetCode Solution | 2074 |
651 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2074 |
652 | Populating Next Right Pointers in Each Node Leetcode Solution | 2073 |
653 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2072 |
654 | Convert Sorted List to Binary Search Tree | 2072 |
655 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 2067 |
656 | Count pair with Given Sum | 2063 |
657 | Minimum Sum Path in a Triangle | 2061 |
658 | Check if String Follows Order of Characters by a Pattern or not | 2060 |
659 | Add two numbers | 2055 |
660 | Web Crawler LeetCode Solution | 2053 |
661 | Remove brackets from an algebraic string containing + and – operators | 2048 |
662 | Huffman Coding | 2048 |
663 | Largest Sum Contiguous Subarray | 2042 |
664 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2041 |
665 | Design Skiplist LeetCode Solution | 2041 |
666 | Concatenation of Array LeetCode Solution | 2031 |
667 | Find whether a subarray is in form of a mountain or not | 2031 |
668 | Best Time to Buy and Sell Stock IV LeetCode Solution | 2030 |
669 | Count ways to reach the nth stair using step 1, 2 or 3 | 2026 |
670 | Print all subarrays with 0 sum | 2025 |
671 | Segregate 0s and 1s in an Array | 2024 |
672 | Print Fibonacci sequence using 2 variables | 2023 |
673 | Count Sub Islands LeetCode Solution | 2021 |
674 | Arithmetic Slices II – Subsequence LeetCode Solution | 2021 |
675 | Length of Longest Fibonacci Subsequence | 2019 |
676 | Minimum time required to rot all oranges | 2016 |
677 | Populating Next Right Pointers in Each Node | 2006 |
678 | Partition to K Equal Sum Subsets Leetcode Solution | 2004 |
679 | Longest Subarray Having Count of 1s One More than Count of 0s | 2004 |
680 | Find Maximum of Minimum for Every Window Size in a Given Array | 2003 |
681 | Sort 0s 1s and 2s in an Array | 1999 |
682 | Elements Appear more than N/K times in Array | 1997 |
683 | Construct BST from given Preorder Traversal | 1993 |
684 | Level order Traversal in Spiral Form | 1993 |
685 | Find four elements that sum to a given value (Hashmap) | 1989 |
686 | Isomorphic Strings LeetCode Solution | 1988 |
687 | Range Sum Query 2D – Immutable LeetCode Solution | 1988 |
688 | All Unique Triplets that Sum up to a Given Value | 1988 |
689 | Finding K closest element | 1982 |
690 | Swap Kth Node from beginning with Kth Node from End | 1981 |
691 | Partition Problem | 1974 |
692 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 1971 |
693 | Count Distinct Elements in Every Window of Size K | 1971 |
694 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 1963 |
695 | Validate Binary Search Tree | 1956 |
696 | Find all triplets with zero sum | 1955 |
697 | Heap Sort | 1955 |
698 | Remove Palindromic Subsequences Leetcode Solution | 1953 |
699 | Maximize Sum of Array after K Negations Leetcode Solution | 1946 |
700 | Check for Balanced Parentheses in an Expression | 1945 |
701 | Bubble sort using two Stacks | 1943 |
702 | Counting Bits | 1940 |
703 | Difference Array | Range update query in O(1) | 1935 |
704 | Nested List Weight Sum II LeetCode Solution | 1930 |
705 | Find All Pairs With a Given Difference | 1929 |
706 | Find Duplicate Subtrees | 1921 |
707 | Count Minimum Steps to Get the given Array | 1909 |
708 | Contiguous Array Leetcode | 1903 |
709 | Rearrange an Array Such that arr[i] is equal to i | 1901 |
710 | MiniMax Algorithm | 1899 |
711 | Binary Tree to Binary Search Tree Conversion | 1898 |
712 | String comparison containing wildcards | 1898 |
713 | Linked List Cycle | 1896 |
714 | Maximum Distance in Array | 1888 |
715 | Maximum Product Subarray II | 1888 |
716 | Reorder Array Using Given Indexes | 1884 |
717 | Merge K Sorted Linked Lists | 1882 |
718 | Sum Root to Leaf Numbers LeetCode Solution | 1880 |
719 | Parallel Courses II LeetCode Solution | 1880 |
720 | Root to Leaf path with target sum Leetcode Solutions | 1877 |
721 | Reverse Nodes in K-Group | 1874 |
722 | Increasing Subsequence of Length three with Maximum Product | 1871 |
723 | Check if Two Expressions With Brackets are Same | 1869 |
724 | Maximum difference between two elements such as larger element comes after smaller | 1867 |
725 | Happy Number | 1865 |
726 | Longest Increasing Subsequence | 1861 |
727 | Merge Two Sorted Lists Leetcode | 1860 |
728 | Inorder Successor of a node in Binary Tree | 1858 |
729 | Check if any two intervals overlap among a given set of intervals | 1858 |
730 | Symmetric Tree | 1857 |
731 | Container with Most Water | 1854 |
732 | Alien Dictionary | 1853 |
733 | Minimum Distance Between BST Nodes Leetcode Solution | 1851 |
734 | Flatten 2D Vector LeetCode Solution | 1848 |
735 | An Interesting Method to generate Binary Numbers from 1 to n | 1840 |
736 | Longest Common Prefix Using Binary Search II | 1840 |
737 | K maximum sums of overlapping contiguous sub-arrays | 1839 |
738 | Rotate Array | 1837 |
739 | Union and Intersection of two Linked Lists | 1833 |
740 | Queue Reconstruction by Height | 1831 |
741 | Iterative Depth First Traversal of Graph | 1827 |
742 | Score of Parenthesis LeetCode Solution | 1826 |
743 | Minimum Swaps to Make Strings Equal Leetcode Solution | 1821 |
744 | Delete Nth node from the end of the given linked list | 1821 |
745 | Count Good Nodes in Binary Tree LeetCode Solution | 1820 |
746 | Find pairs with given sum such that elements of pair are in different rows | 1819 |
747 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 1818 |
748 | Queries on Probability of Even or Odd Number in given Ranges | 1812 |
749 | Kill Process LeetCode Solution | 1807 |
750 | Find the first repeating element in an array of integers | 1807 |
751 | Smallest Range II Leetcode Solution | 1803 |
752 | Climbing stairs | 1803 |
753 | Delete Nodes and Return Forest Leetcode Solution | 1800 |
754 | Longest Common Prefix Word by Word Matching | 1798 |
755 | Find subarray with given sum (Handles Negative Numbers) | 1796 |
756 | Substring With Concatenation Of All Words | 1796 |
757 | Print a Binary Tree in Vertical Order | 1795 |
758 | Breadth First Search (BFS) for a Graph | 1794 |
759 | Merging Intervals | 1781 |
760 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 1779 |
761 | Check if a queue can be sorted into another queue using a stack | 1774 |
762 | New 21 Game | 1773 |
763 | Remove duplicates from sorted array | 1770 |
764 | Peak Index in a Mountain Array LeetCode Solution | 1766 |
765 | Iterative Preorder Traversal | 1765 |
766 | Valid Parenthesis String | 1764 |
767 | Maximum size subarray sum equals k | 1752 |
768 | Minimum Size Subarray Sum | 1751 |
769 | Range LCM Queries | 1743 |
770 | Find K Closest Elements LeetCode Solution | 1742 |
771 | Sorting a K Sorted Array | 1739 |
772 | Sort Array by Increasing Frequency Leetcode Solution | 1738 |
773 | Find the Difference Leetcode Solution | 1736 |
774 | Find Maximum Sum Possible Equal Sum of Three Stacks | 1733 |
775 | Verify Preorder Serialization of a Binary Tree | 1731 |
776 | Friends Of Appropriate Ages LeetCode Solution | 1730 |
777 | Matrix Chain Multiplication | 1730 |
778 | Construct Binary Tree from given Parent Array representation | 1729 |
779 | Vertical sum in a given binary tree | 1727 |
780 | Count pairs from two linked lists whose sum is equal to a given value | 1722 |
781 | Find Sum of all unique sub-array sum for a given array | 1719 |
782 | Find K Length Subarray of Maximum Average | 1716 |
783 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 1712 |
784 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 1710 |
785 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 1709 |
786 | Reservoir Sampling | 1704 |
787 | Defanging an IP Address LeetCode Solution | 1702 |
788 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 1699 |
789 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 1698 |
790 | Maximum Product Subarray | 1698 |
791 | Valid Anagrams | 1697 |
792 | Remove Duplicates from Sorted List II | 1697 |
793 | Non-overlapping sum of two sets | 1696 |
794 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 1695 |
795 | Flatten Binary Tree to Linked List LeetCode Solution | 1688 |
796 | The Painter’s Partition Problem | 1684 |
797 | Boolean Parenthesization Problem | 1683 |
798 | Given a binary tree, how do you remove all the half nodes? | 1682 |
799 | Print All Distinct Elements of a Given Integer Array | 1679 |
800 | Employee Importance LeetCode Solution | 1678 |
801 | Find the largest multiple of 3 | 1677 |
802 | Number of siblings of a given Node in n-ary Tree | 1676 |
803 | Boundary Traversal of binary tree | 1674 |
804 | Unique Binary Search Trees | 1667 |
805 | Deletion in a Binary Tree | 1664 |
806 | Closest Leaf in a Binary Tree LeetCode Solution | 1661 |
807 | Partition Equal Subset Sum | 1658 |
808 | Print all triplets in sorted array that form AP | 1654 |
809 | Median of Two Sorted Arrays | 1653 |
810 | Level order traversal using two Queues | 1648 |
811 | Products of ranges in an array | 1647 |
812 | Infix to Postfix | 1647 |
813 | Check Completeness of a Binary Tree LeetCode Solution | 1646 |
814 | Count and Say | 1645 |
815 | Isomorphic Strings | 1645 |
816 | Level of Each node in a Tree from source node | 1643 |
817 | Third Maximum Number Leetcode Solution | 1641 |
818 | Tree Traversal (Preorder, Inorder & Postorder) | 1641 |
819 | Count number of triplets with product equal to given number | 1640 |
820 | Find Peak Element | 1639 |
821 | Pancake Sorting | 1639 |
822 | Largest BST Subtree LeetCode Solution | 1636 |
823 | Distinct Subsequences | 1634 |
824 | Find Element Using Binary Search in Sorted Array | 1634 |
825 | Hamming Distance | 1632 |
826 | Bold Words in String LeetCode Solution | 1631 |
827 | Maximum subsequence sum such that no three are consecutive | 1630 |
828 | Subset Sum Problem in O(sum) space | 1627 |
829 | Unique Binary Search Trees LeetCode Solution | 1624 |
830 | Find distance between two nodes of a Binary Tree | 1618 |
831 | Longest Palindromic Subsequence | 1617 |
832 | Largest divisible pairs subset | 1616 |
833 | Create Maximum Number | 1613 |
834 | Find Nth Node | 1611 |
835 | Palindrome Partitioning | 1605 |
836 | Super Ugly Number | 1604 |
837 | Array Nesting Leetcode Solution | 1599 |
838 | Find Common Characters Leetcode Solution | 1597 |
839 | Valid Number | 1596 |
840 | Largest Submatrix With Rearrangements LeetCode Solution | 1594 |
841 | Four Elements that Sum to Given | 1591 |
842 | Missing Number | 1590 |
843 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 1587 |
844 | BFS vs DFS for Binary Tree | 1586 |
845 | Minimum insertions to form a palindrome with permutations allowed | 1581 |
846 | Serialize and Deserialize Binary Tree LeetCode Solution | 1579 |
847 | Binary array after M range toggle operations | 1579 |
848 | Valid Triangle Number LeetCode Solution | 1571 |
849 | Maximum number of segments of lengths a, b and c | 1571 |
850 | Transform a BST to Greater sum Tree | 1569 |
851 | Sort Elements by Frequency II | 1568 |
852 | Lowest Common Ancestor | 1567 |
853 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 1566 |
854 | Check if two nodes are on the same path in a Tree | 1566 |
855 | Shuffle an Array | 1566 |
856 | Find Smallest Range Containing Elements from k Lists | 1561 |
857 | Newman-Conway Sequence | 1561 |
858 | Maximum Population Year LeetCode Solution | 1558 |
859 | Number Of Longest Increasing Subsequence | 1557 |
860 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 1556 |
861 | Next Greater Element in an Array | 1554 |
862 | Next Greater Element II LeetCode Solution | 1553 |
863 | Sentence Screen Fitting LeetCode Solution | 1551 |
864 | Integer to Roman | 1547 |
865 | Insert Delete GetRandom | 1542 |
866 | Balanced Binary Tree | 1542 |
867 | Averages of Levels in Binary Tree | 1542 |
868 | Trapping Rain Water II LeetCode Solution | 1535 |
869 | Closest Binary Search Tree Value Leetcode Solution | 1530 |
870 | Maximum Sum of 3 Non-Overlapping Subarrays | 1530 |
871 | Largest subarray with equal number of 0s and 1s | 1525 |
872 | Minimum sum of squares of character counts in a given string after removing k characters | 1522 |
873 | Valid Triangle Number LeetCode Solution | 1521 |
874 | Path Sum | 1521 |
875 | Height of a generic tree from parent array | 1520 |
876 | Encoded String With Shortest Length LeetCode Solution | 1518 |
877 | Merge Two Sorted Arrays | 1517 |
878 | Stone Game IV LeetCode Solution | 1513 |
879 | Merging Two Sorted Arrays | 1512 |
880 | Topological Sorting | 1511 |
881 | Stone Game IV LeetCode Solution | 1509 |
882 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 1509 |
883 | Kth Smallest Number in Multiplication Table Leetcode Solution | 1507 |
884 | Check if all levels of two Binary Tree are anagrams or not | 1507 |
885 | First Bad Version | 1501 |
886 | Permutations of a Given String Using STL | 1497 |
887 | Arrange given numbers to form the biggest number | 1496 |
888 | Lower Case To Upper Case | 1496 |
889 | Count Primes in Ranges | 1491 |
890 | Red-Black Tree Introduction | 1487 |
891 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 1486 |
892 | Contiguous Array | 1485 |
893 | Find minimum number of merge operations to make an array palindrome | 1482 |
894 | Reorganize String | 1478 |
895 | Diameter of N-Ary Tree LeetCode Solution | 1473 |
896 | Find unique character in a string | 1472 |
897 | Iterative Postorder Traversal Using Two Stacks | 1471 |
898 | Print Right View of a Binary Tree | 1469 |
899 | Friends Pairing Problem | 1469 |
900 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 1468 |
901 | Find Minimum In Rotated Sorted Array | 1466 |
902 | Level Order Traversal of Binary Tree | 1465 |
903 | Maximum difference between first and last indexes of an element in array | 1464 |
904 | Orderly Queue LeetCode Solution | 1460 |
905 | Find Largest d in Array such that a + b + c = d | 1460 |
906 | Diagonal Traversal of Binary Tree | 1454 |
907 | Bottom View of a Binary Tree | 1449 |
908 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 1448 |
909 | Reverse a Path in BST using Queue | 1445 |
910 | Swap Nodes In Pairs | 1445 |
911 | Binary Search Tree Delete Operation | 1444 |
912 | Constant time range add operation on an array | 1443 |
913 | Longest Bitonic Subsequence | 1441 |
914 | Largest Plus Sign Leetcode Solution | 1440 |
915 | Valid Perfect Square LeetCode Solution | 1439 |
916 | Total Hamming Distance LeetCode Solution | 1438 |
917 | Next greater element | 1435 |
918 | Koko Eating Bananas LeetCode Solution | 1434 |
919 | Serialize and Deserialize Binary Tree | 1431 |
920 | Count the Pairs at Same Distance as in English Alphabets | 1426 |
921 | Best Meeting Point LeetCode Solution | 1417 |
922 | Range Sum Query using Sparse Table | 1413 |
923 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 1412 |
924 | Segment Tree | 1408 |
925 | Binary Search Tree Search and Insertion | 1406 |
926 | Edit Distance | 1405 |
927 | Maximum Product Subarray | 1405 |
928 | Valid Tic-Tac-Toe State LeetCode Solution | 1399 |
929 | Longest Substring Without Repeating Characters Leetcode Solution | 1395 |
930 | Maximum Product Subarray | 1395 |
931 | Find the smallest binary digit multiple of given number | 1391 |
932 | A program to check if a binary tree is BST or not | 1387 |
933 | Advantages of BST over Hash Table | 1387 |
934 | Convert BST into a Min-Heap without using array | 1377 |
935 | The Number of Weak Characters in the Game LeetCode Solution | 1376 |
936 | Group Shifted Strings Leetcode Solution | 1371 |
937 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 1370 |
938 | Maximum Sum Increasing Subsequence | 1370 |
939 | Shuffle a given Array | 1368 |
940 | Design Add and Search Words Data Structure LeetCode Solution | 1363 |
941 | K’th Largest element in BST using constant extra space | 1362 |
942 | Greatest Sum Divisible by Three LeetCode Solution | 1361 |
943 | Longest Increasing Consecutive Subsequence | 1358 |
944 | Array Queries for multiply replacements and product | 1357 |
945 | Image Overlap LeetCode Solution | 1353 |
946 | Priority Queue | 1351 |
947 | Write a function to get the intersection point of two Linked Lists | 1349 |
948 | Dividing Array into Pairs With Sum Divisible by K | 1343 |
949 | Design Underground System Leetcode Solution | 1338 |
950 | Collect maximum points in a grid using two traversals | 1337 |
951 | Construct Complete Binary Tree from its Linked List Representation | 1333 |
952 | Print Next Greater Number of Q queries | 1333 |
953 | Print n terms of Newman-Conway Sequence | 1332 |
954 | Range Queries for Longest Correct Bracket Subsequence | 1332 |
955 | Factorial Trailing Zeroes LeetCode Solution | 1326 |
956 | Insert into a Sorted Circular Linked List LeetCode Solution | 1320 |
957 | Queries on XOR of greatest odd divisor of the range | 1320 |
958 | Check if an Array is Stack Sortable | 1320 |
959 | Find the node with minimum value in a Binary Search Tree | 1318 |
960 | Swim in Rising Water LeetCode Solution | 1315 |
961 | Merge Sort | 1315 |
962 | Sorted Array to Balanced BST | 1312 |
963 | Lowest Common Ancestor in Binary Search Tree | 1312 |
964 | Find postorder traversal of BST from preorder traversal | 1309 |
965 | Form Minimum Number From Given Sequence | 1309 |
966 | Guess The Word | 1307 |
967 | Power of Two | 1303 |
968 | Print modified array after multiple array range increment operations | 1302 |
969 | Maximum Array from Two given Arrays Keeping Order Same | 1297 |
970 | Clone a Binary Tree with Random Pointers | 1297 |
971 | Form minimum number from given sequence | 1294 |
972 | Excel Sheet Column Number LeetCode Solution | 1293 |
973 | K’th Largest Element in BST when modification to BST is not allowed | 1293 |
974 | Print all Possible Ways to Break a String in Bracket Form | 1289 |
975 | Longest Common Prefix using Character by Character Matching | 1288 |
976 | Numbers with prime frequencies greater than or equal to k | 1285 |
977 | Queries for Number of Distinct Elements in a Subarray | 1280 |
978 | Moving Stones Until Consecutive Leetcode Solution | 1276 |
979 | Merge Sorted Array | 1275 |
980 | Count and Toggle Queries on a Binary Array | 1263 |
981 | K Empty Slots | 1263 |
982 | Write Code to Determine if Two Trees are Identical | 1259 |
983 | Check for Palindrome after every character replacement Query | 1256 |
984 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1255 |
985 | Check if each internal node of a BST has exactly one child | 1254 |
986 | Search in Sorted Rotated Array | 1252 |
987 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1246 |
988 | Count even length binary sequences with same sum of first and second half bits | 1246 |
989 | Cutting a Rod | 1245 |
990 | Find Maximum Depth of Nested Parenthesis in a String | 1244 |
991 | Number of elements less than or equal to a given number in a given subarray | 1240 |
992 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1229 |
993 | Number of Orders in the Backlog Leetcode Solution | 1227 |
994 | Closest Binary Search Tree Value II LeetCode Solution | 1226 |
995 | Find maximum average subarray of k length | 1226 |
996 | Check if X can give change to every person in the Queue | 1222 |
997 | Binary Search Tree | 1222 |
998 | Queries for Decimal Values of Subarrays of a Binary Array | 1220 |
999 | Minimum Moves to Equal Array Elements LeetCode Solution | 1210 |
1000 | Merge two BSTs with limited extra space | 1207 |
1001 | Unique Paths II | 1204 |
1002 | Count Pairs Whose Products Exist in Array | 1203 |
1003 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1200 |
1004 | Kth Smallest Element in a BST | 1193 |
1005 | Symmetric Tree LeetCode Solution Leetcode Solution | 1188 |
1006 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1186 |
1007 | Regular Expression Matching | 1184 |
1008 | Maximum weight transformation of a given string | 1177 |
1009 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1175 |
1010 | Sum of Left Leaves LeetCode Solution | 1172 |
1011 | How to print maximum number of A’s using given four keys | 1167 |
1012 | Graph Cloning | 1163 |
1013 | Random Pick Index LeetCode Solution | 1155 |
1014 | Maximum Depth Of Binary Tree | 1149 |
1015 | Excel Sheet Column Title LeetCode Solution | 1139 |
1016 | Search an Element in Sorted Rotated Array | 1132 |
1017 | Palindrome Partitioning | 1125 |
1018 | Data Structure Designing | 1112 |
1019 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1111 |
1020 | Check given array of size n can represent BST of n levels or not | 1109 |
1021 | Iterative method to find ancestors of a given binary tree | 1105 |
1022 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1103 |
1023 | Maximum Binary Tree | 1083 |
1024 | Next Greater Element I Leetcode Solution | 1075 |
1025 | Binary Tree to Binary Search Tree Conversion using STL set | 1053 |
1026 | Find k-th smallest element in BST (Order Statistics in BST) | 1050 |
1027 | Find the Town Judge LeetCode Solution | 1045 |
1028 | Print Maximum Length Chain of Pairs | 1001 |
1029 | Peeking Iterator LeetCode Solution | 980 |
1030 | Flatten Binary Tree to Linked List LeetCode Solution | 979 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 961 |