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 | 34189 |
2 | Maximum occurring character in a string | 17777 |
3 | Plus One Leetcode Solution | 16513 |
4 | Valid Parentheses LeetCode Solution | 15950 |
5 | 3Sum Leetcode Solution | 13518 |
6 | First Repeating Element | 13203 |
7 | Single Number Leetcode Solution | 12252 |
8 | Pow(x, n) Leetcode Solution | 11690 |
9 | Sqrt(x) Leetcode Solution | 11414 |
10 | Merge Sorted Arrays Leetcode Solution | 11205 |
11 | Meeting Rooms II LeetCode Solution | 11072 |
12 | Concatenation of Array LeetCode Solution | 10479 |
13 | Contains Duplicate II Leetcode Solution | 10011 |
14 | Roman to Integer Leetcode Solution | 9876 |
15 | Count Primes Leetcode Solutions | 9813 |
16 | Search Insert Position Leetcode Solution | 9659 |
17 | Palindrome Number LeetCode Solution | 9654 |
18 | Valid Palindrome Leetcode Solution | 9461 |
19 | Reverse Vowels of a String Leetcode Solution | 9266 |
20 | Jump Game Leetcode Solution | 8994 |
21 | Intersection of Two Arrays II Leetcode Solution | 8862 |
22 | Kids With the Greatest Number of Candies Leetcode Solution | 8715 |
23 | House Robber Leetcode Solution | 8662 |
24 | Number of Good Pairs Leetcode Solution | 8633 |
25 | Spiral Matrix LeetCode Solution | 8613 |
26 | Find the Maximum Repeating Number in Array | 8561 |
27 | Text Justification LeetCode Solution | 8521 |
28 | Add Binary Leetcode Solution | 8508 |
29 | Longest Substring Without Repeating Characters LeetCode Solution | 8308 |
30 | Number Of 1 bits | 8058 |
31 | Longest Palindromic Substring LeetCode Solution | 8010 |
32 | Jewels and Stones Leetcode Solution | 7984 |
33 | Power of Two Leetcode Solution | 7944 |
34 | Maximum Subarray Leetcode Solution | 7838 |
35 | Permutations Leetcode Solution | 7720 |
36 | Shuffle String Leetcode Solution | 7664 |
37 | Find All Numbers Disappeared in an Array Leetcode Solution | 7622 |
38 | Daily Temperatures Leetcode Solution | 7540 |
39 | Min Stack Leetcode Solution | 7515 |
40 | Maximum Profit in Job Scheduling Leetcode Solution | 7424 |
41 | Next Permutation Leetcode Solution | 7403 |
42 | Kth Missing Positive Number Leetcode Solution | 7394 |
43 | Longest Common Prefix Leetcode Solution | 7354 |
44 | Frog Jump Leetcode Solution | 7346 |
45 | Move Zeroes LeetCode Solution | 7337 |
46 | Number of Islands LeetCode Solution | 7332 |
47 | Running Sum of 1d Array Leetcode Solution | 7312 |
48 | Word Search Leetcode Solution | 7293 |
49 | Third Maximum Number Leetcode Solution | 7217 |
50 | Find Minimum Distance Between Two Numbers in an Array | 7138 |
51 | Rotate Image LeetCode Solution | 7003 |
52 | Bulb Switcher LeetCode Solution | 6966 |
53 | Remove Duplicates from Sorted Array Leetcode Solution | 6964 |
54 | Next Greater Element I Leetcode Solution | 6956 |
55 | Median of Two Sorted Arrays LeetCode Solution | 6954 |
56 | Combination Sum Leetcode Solution | 6947 |
57 | Shuffle the Array Leetcode Solution | 6910 |
58 | Can Place Flowers LeetCode Solution | 6908 |
59 | 3Sum Closest LeetCode Solution | 6831 |
60 | Multiply Strings Leetcode Solution | 6789 |
61 | Search in Rotated Sorted Array Leetcode Solution | 6776 |
62 | House Robber II Leetcode Solution | 6744 |
63 | Count and Say Leetcode Solution | 6696 |
64 | Reverse String Without Temporary Variable | 6664 |
65 | Missing Number Leetcode Solution | 6647 |
66 | Strobogrammatic Number LeetCode Solution | 6645 |
67 | Valid Anagram Leetcode Solution | 6583 |
68 | Subarray and Subsequence | 6543 |
69 | Isomorphic Strings Leetcode Solution | 6447 |
70 | Excel Sheet Column Title Leetcode Solution | 6447 |
71 | Integer to Roman Leetcode Solution | 6441 |
72 | Evaluation of Postfix Expression | 6397 |
73 | Count Pairs With Given Sum | 6386 |
74 | Koko Eating Bananas Leetcode Solution | 6382 |
75 | Product of array except self | 6321 |
76 | Rotate String LeetCode Solution | 6285 |
77 | Find the Difference Leetcode Solution | 6204 |
78 | String to Integer (atoi) LeetCode Solution | 6193 |
79 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 6150 |
80 | Largest Number Leetcode Solution | 6105 |
81 | Candy LeetCode Solution | 6050 |
82 | Majority Element Leetcode Solution | 6041 |
83 | Happy Number Leetcode Solution | 6008 |
84 | Set Matrix Zeroes | 5940 |
85 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 5928 |
86 | Find Common Characters Leetcode Solution | 5902 |
87 | Balanced Binary Tree Leetcode Solution | 5891 |
88 | Is Subsequence Leetcode Solution | 5851 |
89 | Summary Ranges Leetcode Solution | 5801 |
90 | Smallest window in a string containing all characters of another string | 5748 |
91 | Find the Town Judge Leetcode Solution | 5738 |
92 | Arranging Coins Leetcode Solution | 5721 |
93 | Word Pattern LeetCode Solution | 5721 |
94 | Unique Paths Leetcode Solution | 5711 |
95 | Subset Leetcode | 5694 |
96 | Rearrange Positive and Negative Numbers Alternatively in Array | 5627 |
97 | Sort Colors LeetCode Solution | 5596 |
98 | Binary Search LeetCode Solution | 5541 |
99 | Sort Characters By Frequency LeetCode Solution | 5539 |
100 | String Compression LeetCode Solution | 5525 |
101 | Asteroid Collision LeetCode Solution | 5494 |
102 | Best Time to Buy and Sell Stock LeetCode Solution | 5466 |
103 | Repeated Substring Pattern LeetCode Solution | 5463 |
104 | Find the Winner of the Circular Game LeetCode Solution | 5446 |
105 | Find the Duplicate Number LeetCode Solution | 5428 |
106 | Sort Array By Parity LeetCode Solution | 5400 |
107 | Reverse Integer Leetcode Solution | 5372 |
108 | Linked List Cycle II LeetCode Solution | 5359 |
109 | Valid Palindrome II Leetcode Solution | 5354 |
110 | Best Time to Buy and Sell Stock II Leetcode Solution | 5334 |
111 | Sum of minimum and maximum elements of all subarrays of size k | 5307 |
112 | A Product Array Puzzle | 5300 |
113 | Product of Array Except Self LeetCode Solution | 5283 |
114 | Rabin Karp Algorithm | 5283 |
115 | Zigzag Conversion LeetCode Solution | 5253 |
116 | Expression Evaluation | 5248 |
117 | Divide Two Integers Leetcode Solution | 5236 |
118 | Bus Routes Leetcode Solution | 5194 |
119 | Group Anagrams LeetCode Solution | 5179 |
120 | Employee Free Time LeetCode Solution | 5155 |
121 | Merge Two Sorted Lists Leetcode Solutions | 5141 |
122 | Matrix Chain Multiplication using Dynamic Programming | 5078 |
123 | First element occurring k times in an array | 5073 |
124 | Pascal Triangle Leetcode | 5071 |
125 | Minimum Cost For Tickets Leetcode Solution | 5039 |
126 | Postfix to Infix Conversion | 5021 |
127 | Page Replacement Algorithms in Operating Systems | 5013 |
128 | Build Array From Permutation Leetcode Solution | 4988 |
129 | Length of Last Word Leetcode Solution | 4981 |
130 | Kth largest element in an Array Leetcode Solutions | 4973 |
131 | Minimum Steps to reach target by a Knight | 4946 |
132 | Number of Provinces Leetcode Solution | 4939 |
133 | Increasing Triplet Subsequence LeetCode Solution | 4929 |
134 | Optimal Account Balancing LeetCode Solution | 4904 |
135 | Assign Cookies Leetcode Solution | 4881 |
136 | H-Index Leetcode Solution | 4879 |
137 | Implementation of Deque using Doubly Linked List | 4866 |
138 | Decode String Leetcode Solution | 4849 |
139 | Fibonacci Number LeetCode Solution | 4831 |
140 | Defanging an IP Address Leetcode Solution | 4804 |
141 | Generate Parentheses Leetcode Solution | 4779 |
142 | Robot Room Cleaner Leetcode Solution | 4751 |
143 | Remove Duplicates from Sorted Array II Leetcode Solution | 4749 |
144 | First Unique Character in a String LeetCode Solution | 4746 |
145 | Convert array into Zig-Zag fashion | 4740 |
146 | Subarray with Given Sum | 4660 |
147 | Swap Nodes in Pairs Leetcode Solutions | 4640 |
148 | Find Smallest Missing Number in a Sorted Array | 4637 |
149 | Pascal’s Triangle II Leetcode Solution | 4634 |
150 | Subarray Product Less Than K LeetCode Solution | 4605 |
151 | Check if the Elements of an Array are Consecutive | 4605 |
152 | Island Perimeter Leetcode Solution | 4604 |
153 | Bellman Ford Algorithm | 4597 |
154 | Guess Number Higher or Lower LeetCode Solution | 4582 |
155 | Length of the largest subarray with contiguous elements | 4573 |
156 | K-th Smallest Element in a Sorted Matrix | 4568 |
157 | KMP Algorithm | 4559 |
158 | Prefix to Infix Conversion | 4558 |
159 | Find the Missing Number | 4532 |
160 | Add Two Numbers II Leetcode Solution | 4528 |
161 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 4513 |
162 | Coin Change 2 Leetcode Solution | 4508 |
163 | Last Stone Weight | 4502 |
164 | Max Consecutive Ones Leetcode Solution | 4495 |
165 | Lemonade Change Leetcode Solution | 4493 |
166 | Reverse Words in a String III LeetCode Solution | 4487 |
167 | Form Minimum Number from Given Sequence of D’s and I’s | 4482 |
168 | Majority Element II Leetcode Solution | 4454 |
169 | Capacity To Ship Packages Within D Days Leetcode Solution | 4443 |
170 | OSI Model | 4440 |
171 | Design Parking System Leetcode Solution | 4431 |
172 | First negative integer in every window of size k | 4403 |
173 | Find Pair with Given Difference | 4403 |
174 | Combinations Leetcode Solution | 4400 |
175 | String Compression | 4379 |
176 | Backspace String Compare | 4362 |
177 | Palindrome Linked List Leetcode Solution | 4353 |
178 | Remove Linked List Elements Leetcode Solution | 4351 |
179 | Delete middle element of a stack | 4351 |
180 | Iterative Implementation of Quick Sort | 4351 |
181 | Find All Duplicates in an Array LeetCode Solution | 4339 |
182 | Trapping Rain Water Leetcode Solution | 4338 |
183 | Remove Duplicates from Sorted List II LeetCode Solution | 4331 |
184 | Repeated Substring Pattern | 4266 |
185 | Word Ladder LeetCode Solution | 4248 |
186 | Break a Palindrome LeetCode Solution | 4240 |
187 | Subarray Sum Equals K LeetCode Solution | 4231 |
188 | Same Tree LeetCode Solution | 4211 |
189 | Monotonic Array LeetCode Solution | 4204 |
190 | Remove All Occurrences of a Substring LeetCode Solution | 4200 |
191 | Slowest Key Leetcode Solution | 4192 |
192 | Merge Sorted Array LeetCode Solution | 4156 |
193 | Continuous Subarray Sum LeetCode Solution | 4151 |
194 | Merge k Sorted Lists Leetcode Solution | 4141 |
195 | 01 Matrix LeetCode Solution | 4141 |
196 | Find the Row with Maximum Number of 1’s | 4118 |
197 | Make The String Great Leetcode Solution | 4108 |
198 | Leetcode Permutations | 4077 |
199 | Find Peak Element LeetCode Solution | 4067 |
200 | Convert a Number to Hexadecimal Leetcode Solution | 4060 |
201 | Time Based Key-Value Store LeetCode Solution | 4045 |
202 | Second Most Repeated Word in a Sequence | 4043 |
203 | Number of Dice Rolls With Target Sum LeetCode Solution | 4037 |
204 | Rearrange given Array in Maximum Minimum Form | 4032 |
205 | The K Weakest Rows in a Matrix Leetcode Solution | 4031 |
206 | Valid Perfect Square Leetcode Solution | 4020 |
207 | Single Element in a Sorted Array LeetCode Solution | 4009 |
208 | Moving Average from Data Stream Leetcode Solution | 4003 |
209 | Delete Node in a Linked List Leetcode Solution | 4002 |
210 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4001 |
211 | Kth Largest Element in a Stream Leetcode Solution | 3997 |
212 | Printing brackets in Matrix Chain Multiplication Problem | 3997 |
213 | Insert Delete GetRandom O(1) Leetcode Solution | 3996 |
214 | Target Sum | 3992 |
215 | Combination Sum | 3984 |
216 | Rotate List Leetcode Solution | 3978 |
217 | Find the Duplicate Element | 3939 |
218 | Top K Frequent Elements LeetCode Solution | 3936 |
219 | Max Area of Island | 3933 |
220 | Check If Two String Arrays are Equivalent Leetcode Solution | 3930 |
221 | Longest Common Subsequence LeetCode Solution | 3928 |
222 | Generate all Binary Strings Without Consecutive 1’s | 3928 |
223 | Subarray Sum Equals k | 3925 |
224 | Palindrome Number | 3912 |
225 | Maximum Product of Three Numbers LeetCode Solution | 3902 |
226 | Cuckoo sequence program | 3899 |
227 | Prefix to Postfix Conversion | 3887 |
228 | Reverse Only Letters LeetCode Solution | 3876 |
229 | LRU Cache LeetCode Solution | 3864 |
230 | Minimum Knight Moves LeetCode Solution | 3853 |
231 | Relative Sort Array Leetcode Solution | 3848 |
232 | Relative Ranks Leetcode Solution | 3843 |
233 | Find Leaders in an Array | 3835 |
234 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 3820 |
235 | Find Triplet in Array With a Given Sum | 3818 |
236 | Flipping an Image LeetCode Solution | 3814 |
237 | Scramble String | 3813 |
238 | Letter Combinations of a Phone Number | 3811 |
239 | Count Good Nodes in Binary Tree Leetcode Solution | 3809 |
240 | Maximum Population Year LeetCode Solution | 3777 |
241 | Permutation in String Leetcode Solution | 3767 |
242 | Smallest Positive Number Missing in an Unsorted Array | 3765 |
243 | Unique Paths II Leetcode Solution | 3760 |
244 | The kth Factor of n Leetcode Solution | 3745 |
245 | Check If N and Its Double Exist Leetcode Solution | 3724 |
246 | Set Matrix Zeroes Leetcode Solution | 3717 |
247 | Stock Buy Sell to Maximize Profit | 3717 |
248 | Minimum swaps required to bring all elements less than or equal to k together | 3705 |
249 | N-Queens LeetCode Solution | 3697 |
250 | Top K Frequent Elements | 3697 |
251 | To Lower Case Leetcode Solution | 3691 |
252 | Arithmetic Expression Evaluation | 3691 |
253 | Maximum Subarray Sum using Divide and Conquer | 3690 |
254 | Given two unsorted arrays find all pairs whose sum is x | 3687 |
255 | Remove Minimum Characters so that Two Strings Become Anagrams | 3685 |
256 | Minimum Operations to convert X to Y | 3684 |
257 | Search Suggestions System LeetCode Solution | 3657 |
258 | Sum of Subarray Ranges Leetcode Solution | 3632 |
259 | Min Cost Climbing Stairs LeetCode Solution | 3623 |
260 | Student Attendance Record I Leetcode Solution | 3621 |
261 | Remove Duplicates from Sorted List LeetCode Solution | 3574 |
262 | Top K Frequent Words LeetCode Solution | 3572 |
263 | License Key Formatting Leetcode Solution | 3572 |
264 | Find the Number Occurring Odd Number of Times in an Array | 3569 |
265 | Maximize Distance to Closest Person LeetCode Solution | 3563 |
266 | Maximum Sum Increasing Subsequence | 3562 |
267 | Reformat Date LeetCode Solution | 3527 |
268 | Stone Game LeetCode | 3520 |
269 | Construct Binary Tree from Given Inorder and Preorder Traversals | 3519 |
270 | Next Permutation | 3500 |
271 | Prim’s Algorithm | 3477 |
272 | Most Frequent Element in an Array | 3464 |
273 | Find if Path Exists in Graph Leetcode Solution | 3463 |
274 | Minimum Characters to be Added at Front to Make String Palindrome | 3447 |
275 | Arrange given Numbers to Form the Biggest Number II | 3445 |
276 | Container With Most Water LeetCode Solution | 3443 |
277 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 3440 |
278 | Reverse words in a string | 3438 |
279 | Min Stack | 3437 |
280 | Minimum Path Sum Leetcode Solution | 3435 |
281 | Find any one of the multiple repeating elements in read only array | 3433 |
282 | Reverse individual words | 3429 |
283 | Implement a stack using single queue | 3425 |
284 | Count of index pairs with equal elements in an array | 3410 |
285 | Sort Elements by Frequency of Occurrences | 3408 |
286 | Design A Leaderboard Leetcode Solution | 3404 |
287 | BFS for Disconnected Graph | 3399 |
288 | Diagonal Traverse LeetCode Solution | 3396 |
289 | Evaluate Division | 3393 |
290 | Intersection of Two Arrays | 3392 |
291 | Maximum Depth of Binary Tree Leetcode Solution | 3359 |
292 | Spiral Matrix II Leetcode Solution | 3356 |
293 | Find Words That Can Be Formed by Characters Leetcode Solution | 3355 |
294 | Find The Duplicate Number | 3343 |
295 | Count Number of Occurrences in a Sorted Array | 3340 |
296 | Diagonal Traversal LeetCode Solution | 3326 |
297 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 3322 |
298 | Invalid Transactions LeetCode Solution | 3316 |
299 | Minimum number of Merge Operations to make an Array Palindrome | 3316 |
300 | Contains Duplicate LeetCode Solution | 3304 |
301 | Reveal Cards In Increasing Order Leetcode Solution | 3304 |
302 | House Robber | 3292 |
303 | Length of Longest valid Substring | 3292 |
304 | Best Time to Buy and Sell Stock III Leetcode Solution | 3289 |
305 | Longest Common Subsequence | 3278 |
306 | Least Number of Unique Integers after K Removals Leetcode Solution | 3267 |
307 | Remove Nth Node From End of List Leetcode Solution | 3260 |
308 | Last Stone Weight II LeetCode Solution | 3252 |
309 | Symmetric Tree Leetcode Solution | 3241 |
310 | Single Number | 3239 |
311 | Brightest Position on Street LeetCode Solution | 3236 |
312 | Maximum Size Subarray Sum Equals k Leetcode Solution | 3231 |
313 | Find Leaves of Binary Tree LeetCode Solution | 3207 |
314 | Special Positions in a Binary Matrix Leetcode Solution | 3204 |
315 | Robot Bounded In Circle LeetCode Solution | 3201 |
316 | Sudoku Solver | 3196 |
317 | Find the Closest Palindrome number | 3184 |
318 | Partition Labels LeetCode Solution | 3177 |
319 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3174 |
320 | Alien Dictionary LeetCode Solution | 3170 |
321 | N-th Tribonacci Number Leetcode Solution | 3170 |
322 | Construct BST from its given Level Order Traversal | 3170 |
323 | The Celebrity Problem | 3170 |
324 | Binary Tree Inorder Traversal LeetCode Solution | 3163 |
325 | Shortest Word Distance Leetcode Solution | 3163 |
326 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3154 |
327 | Range Sum Query 2D – Immutable Leetcode Solution | 3145 |
328 | Reverse Bits | 3139 |
329 | One Edit Distance LeetCode Solution | 3136 |
330 | Check whether Strings are K Distance Apart or Not | 3122 |
331 | Next Greater Element III LeetCode Solution | 3116 |
332 | Mobile Numeric Keypad Problem | 3114 |
333 | Invert Binary Tree LeetCode Solution | 3111 |
334 | Jump Game | 3101 |
335 | Count of Triplets With Sum Less than Given Value | 3099 |
336 | Round Robin Scheduling | 3092 |
337 | Find Duplicates in an Array in Most Efficient Way | 3092 |
338 | Next Permutation LeetCode Solution | 3078 |
339 | Pair of Positive Negative Values in an Array | 3064 |
340 | Remove All Ones With Row and Column Flips Leetcode Solution | 3057 |
341 | Sort Array By Parity II Leetcode Solution | 3049 |
342 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 3048 |
343 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3047 |
344 | Clone Graph LeetCode Solution | 3041 |
345 | Minimum operation to make all elements equal in array | 3034 |
346 | Remove Invalid Parentheses Leetcode Solution | 3027 |
347 | Largest Rectangle in Histogram LeetCode Solution | 3026 |
348 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3026 |
349 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 3022 |
350 | Painting Fence Algorithm | 3011 |
351 | Merge Two Sorted Linked Lists | 3009 |
352 | Minimum Time Visiting All Points Leetcode Solution | 2994 |
353 | Find the First and Second Smallest Elements | 2984 |
354 | Maximal Square | 2975 |
355 | Find Top K (or Most Frequent) Numbers in a Stream | 2970 |
356 | Rank Transform of an Array Leetcode Solution | 2968 |
357 | Minimum Moves to Equal Array Elements Leetcode Solution | 2965 |
358 | Check if a given array contains duplicate elements within k distance from each other | 2960 |
359 | Find minimum difference between any two elements | 2960 |
360 | Reverse Nodes in k-Group LeetCode Solution | 2959 |
361 | Combination Sum IV LeetCode Solution | 2959 |
362 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 2957 |
363 | Tug of War | 2957 |
364 | Find the subarray with least average | 2956 |
365 | Sort a stack using a temporary stack | 2955 |
366 | Longest subarray not having more than K distinct elements | 2952 |
367 | String Matching in an Array Leetcode Solution | 2943 |
368 | Longest subsequence such that difference between adjacents is one | 2937 |
369 | Maximum Circular Subarray Sum | 2932 |
370 | Unique Paths | 2928 |
371 | Paint House LeetCode Solution | 2924 |
372 | Bitwise AND of Numbers Range LeetCode Solution | 2924 |
373 | Minimum Depth of Binary Tree Leetcode Solution | 2924 |
374 | Range Sum of BST LeetCode Solution | 2923 |
375 | K Empty Slots LeetCode | 2920 |
376 | LRU Cache Implementation | 2920 |
377 | Number of Smaller Elements on Right Side | 2920 |
378 | Design Browser History LeetCode Solution | 2918 |
379 | Maximum Number of Occurrences of a Substring Leetcode Solution | 2916 |
380 | Minimum Cost to Hire K Workers | 2902 |
381 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 2900 |
382 | Path With Maximum Minimum Value LeetCode Solution | 2897 |
383 | Longest Common Prefix using Trie | 2896 |
384 | Dijkstra Algorithm | 2896 |
385 | Find the Smallest Divisor given a Threshold Leetcode Solution | 2895 |
386 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 2892 |
387 | Sliding Window Technique | 2892 |
388 | Smallest Subarray with k Distinct Numbers | 2890 |
389 | Ugly Number II LeetCode Solution | 2889 |
390 | Missing Element in Sorted Array LeetCode Solution | 2888 |
391 | LRU Cache Leetcode Solution | 2884 |
392 | Find Maximum Level sum in Binary Tree | 2877 |
393 | Minimize Maximum Pair Sum in Array LeetCode Solution | 2874 |
394 | Permutation Sequence LeetCode Solution | 2872 |
395 | Graph Valid Tree LeetCode Solution | 2872 |
396 | Integer Break LeetCode Solution | 2872 |
397 | First Circular Tour to Visit all the Petrol Bunks | 2872 |
398 | Hamming Distance Leetcode Solution | 2871 |
399 | Non-decreasing Array LeetCode Solution | 2870 |
400 | Split Linked List in Parts Leetcode Solution | 2866 |
401 | Common elements in all rows of a given matrix | 2866 |
402 | Number of Islands II LeetCode Solution | 2863 |
403 | Insert Interval Leetcode Solution | 2859 |
404 | Find the Peak Element from an Array | 2850 |
405 | Consecutive Characters LeetCode Solution | 2839 |
406 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 2834 |
407 | Given an Array of Pairs Find all Symmetric Pairs in it | 2828 |
408 | Queries for counts of array elements with values in given range | 2828 |
409 | Unique Paths III LeetCode Solution | 2822 |
410 | Transpose Graph | 2822 |
411 | K Closest Points to Origin Leetcode Solution | 2818 |
412 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 2818 |
413 | Find duplicates in a given array when elements are not limited to a range | 2814 |
414 | Invert Binary Tree LeetCode Solution | 2813 |
415 | Number of Closed Islands Leetcode Solution | 2806 |
416 | Max stack | 2799 |
417 | Priority Queue using doubly linked list | 2799 |
418 | Implementation of Deque using circular array | 2791 |
419 | Minesweeper LeetCode Solution | 2780 |
420 | Move All the Zeros to the End of the Given Array | 2777 |
421 | Stone Game II Leetcode | 2773 |
422 | Maximum Consecutive Numbers Present in an Array | 2766 |
423 | Sort elements by frequency | 2761 |
424 | Decompress Run-Length Encoded List Leetcode Solution | 2759 |
425 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 2753 |
426 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 2749 |
427 | Odd Even Linked List Leetcode Solution | 2745 |
428 | Top View of Binary Tree | 2745 |
429 | Stack Permutations (Check if an array is stack permutation of other) | 2744 |
430 | Nth Catalan Number | 2744 |
431 | Expression Contains Redundant Bracket or Not | 2743 |
432 | Restore IP Addresses Leetcode Solution | 2742 |
433 | Word Search | 2742 |
434 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 2741 |
435 | Toeplitz Matrix | 2734 |
436 | Binary Tree Maximum Path Sum LeetCode Solution | 2731 |
437 | Is Graph Bipartite? LeetCode Solution | 2730 |
438 | Sorting array using Stacks | 2724 |
439 | Longest Common Prefix using Sorting | 2716 |
440 | Partition List Leetcode Solution | 2715 |
441 | Kth Smallest Element in a BST Leetcode Solution | 2713 |
442 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 2713 |
443 | Snakes and Ladders LeetCode Solution | 2711 |
444 | Priority Queue in C++ | 2709 |
445 | Maximum Subarray | 2709 |
446 | Integer to English words | 2704 |
447 | Validate Stack Sequences LeetCode Solution | 2695 |
448 | Reverse a linked list | 2695 |
449 | Gold Mine Problem | 2694 |
450 | Path Sum II LeetCode Solution | 2693 |
451 | Rearrange array such that even positioned are greater than odd | 2692 |
452 | Vertical Order Traversal of Binary Tree LeetCode Solution | 2682 |
453 | Flood Fill LeetCode | 2681 |
454 | Recursion | 2679 |
455 | Minimum Absolute Difference in BST Leetcode Solution | 2672 |
456 | Count Submatrices With All Ones LeetCode Solution | 2671 |
457 | Palindrome Substring Queries | 2670 |
458 | Kth Non-repeating Character | 2664 |
459 | Multiplication of Two Matrices | 2658 |
460 | Sequences of given length where every element is more than or equal to twice of previous | 2655 |
461 | Number of Days Between Two Dates LeetCode Solution | 2654 |
462 | Find a Peak Element II LeetCode Solution | 2653 |
463 | Search a 2D Matrix II Leetcode Solution | 2647 |
464 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 2646 |
465 | Number Complement Leetcode Solution | 2643 |
466 | Cells with Odd Values in a Matrix LeetCode Solution | 2640 |
467 | How to Implement Stack Using Priority Queue or Heap? | 2638 |
468 | Find a Fixed Point in a Given Array | 2636 |
469 | Longest Increasing Path in a Matrix LeetCode Solution | 2632 |
470 | Minimum Path Sum | 2626 |
471 | Find All Possible Recipes from Given Supplies LeetCode Solution | 2623 |
472 | Queries for GCD of all numbers of an array except elements in a given range | 2618 |
473 | Reorder Data in Log Files LeetCode Solution | 2613 |
474 | Majority Element | 2613 |
475 | Intersection of Two Linked Lists LeetCode Solution | 2612 |
476 | Shortest Completing Word Leetcode Solution | 2605 |
477 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 2605 |
478 | Distance of nearest cell having 1 in a binary matrix | 2605 |
479 | Search in a Binary Search Tree Leetcode Solution | 2604 |
480 | Kruskal Algorithm | 2604 |
481 | Best Time to Buy and Sell Stock | 2595 |
482 | Detect a loop in the Linked List | 2595 |
483 | Trapping Rain Water LeetCode Solution | 2591 |
484 | Insert into a Binary Search Tree Leetcode Solution | 2578 |
485 | Scramble String LeetCode Solution | 2576 |
486 | Find Pythagorean Triplets from Array | 2575 |
487 | Design Hit Counter LeetCode Solution | 2572 |
488 | 4Sum | 2571 |
489 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 2569 |
490 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 2568 |
491 | Merge Two Binary Trees LeetCode Solution | 2566 |
492 | Shortest Palindrome | 2566 |
493 | High Five LeetCode Solution | 2563 |
494 | Largest rectangular sub-matrix whose sum is 0 | 2563 |
495 | The Stock Span Problem | 2561 |
496 | Find Median from Data Stream LeetCode Solution | 2558 |
497 | Tiling Problem | 2556 |
498 | Balanced Expression with Replacement | 2553 |
499 | Insert Node in the Sorted Linked List | 2549 |
500 | Generate all Binary Strings from Given Pattern | 2548 |
501 | Postfix to Prefix Conversion | 2547 |
502 | Check if Two given Strings are Isomorphic to each other | 2545 |
503 | Implement Trie (Prefix Tree) Leetcode Solution | 2541 |
504 | Divide Chocolate LeetCode Solution | 2539 |
505 | Custom Sort String Leetcode Solution | 2535 |
506 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 2534 |
507 | Check If Array Pairs Are Divisible by k LeetCode Solution | 2525 |
508 | Race Car LeetCode Solution | 2516 |
509 | Guess Number Higher or Lower II | 2516 |
510 | Longest Common Prefix using Divide and Conquer | 2515 |
511 | Pancake Sorting Problem | 2515 |
512 | Camelcase Matching Leetcode Solution | 2514 |
513 | Kth ancestor of a node in binary tree | 2510 |
514 | Interval Tree | 2510 |
515 | Find the Minimum Element in a Sorted and Rotated Array | 2503 |
516 | The Maze III LeetCode Solution | 2502 |
517 | Substring with Concatenation of All Words Leetcode Solution | 2498 |
518 | Evaluate Reverse Polish Notation LeetCode Solution | 2498 |
519 | Largest Subarray with Equal Number of 0’s and 1’s | 2497 |
520 | Palindrome Permutation LeetCode Solution | 2495 |
521 | Count subarrays having total distinct elements same as original array | 2495 |
522 | Spiral Matrix III LeetCode Solution | 2493 |
523 | Print all Palindromic Partitions of a String | 2493 |
524 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 2492 |
525 | Letter Case Permutation | 2490 |
526 | Sliding Window Maximum LeetCode Solution | 2477 |
527 | Sort Colors | 2473 |
528 | Sieve of Eratosthenes | 2470 |
529 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 2468 |
530 | LCS (Longest Common Subsequence) of three strings | 2467 |
531 | Count Possible Triangles | 2465 |
532 | Find the first Repeating Number in a Given Array | 2463 |
533 | Merge Overlapping Intervals | 2462 |
534 | Convert BST to Min Heap | 2459 |
535 | Maximum Sum of Non Consecutive Elements | 2459 |
536 | Sliding Window Median Leetcode Solution | 2457 |
537 | Analyze User Website Visit Pattern LeetCode Solution | 2456 |
538 | Fibonacci numbers | 2454 |
539 | Sort an array according to the order defined by another array | 2446 |
540 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 2445 |
541 | 3 Sum | 2435 |
542 | How to Create Mergable Stack? | 2432 |
543 | Minimum Bracket Reversals | 2431 |
544 | Find a Sorted Subsequence of size 3 | 2427 |
545 | Decode String | 2423 |
546 | Longest Repeated Subsequence | 2420 |
547 | Maximum Length of Chain Pairs | 2418 |
548 | Edit Distance LeetCode Solution | 2415 |
549 | Coin Change Problem | 2411 |
550 | Minimum Jumps to Reach Home LeetCode Solution | 2409 |
551 | Iterative Method to find Height of Binary Tree | 2408 |
552 | Maximum Element in an Array which is Increasing and then Decreasing | 2408 |
553 | Minimum Height Trees | 2406 |
554 | Group Anagrams | 2405 |
555 | Jump Game IV LeetCode Solution | 2403 |
556 | Perfect Squares LeetCode Solution | 2402 |
557 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 2399 |
558 | Maximum Number of Ways to Partition an Array LeetCode Solution | 2397 |
559 | Implement Two Stacks in an Array | 2396 |
560 | N queen problem | 2393 |
561 | Path Crossing Leetcode Solution | 2389 |
562 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2383 |
563 | Recover Binary Search Tree Leetcode Solution | 2381 |
564 | Different Ways to Add Parentheses Leetcode Solution | 2379 |
565 | Find the Lost Element From a Duplicated Array | 2378 |
566 | Number of Distinct Islands Leetcode Solution | 2377 |
567 | Decode Ways | 2376 |
568 | Find maximum length Snake sequence | 2374 |
569 | K-th Distinct Element in an Array | 2369 |
570 | Fibonacci Number LeetCode Solution | 2363 |
571 | Shifting Letters LeetCode Solution | 2363 |
572 | Build an Array With Stack Operations Leetcode Solution | 2361 |
573 | Subarrays with K Different Integers Leetcode Solution | 2350 |
574 | Champagne Tower LeetCode Solution | 2349 |
575 | Rectangle Overlap LeetCode Solution | 2348 |
576 | Nearest Exit from Entrance in Maze LeetCode Solution | 2343 |
577 | Subset sum problem | 2338 |
578 | Sorted Linked List to Balanced BST | 2336 |
579 | Most Stones Removed with Same Row or Column LeetCode Solution | 2332 |
580 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 2328 |
581 | Find if an Expression has Duplicate Parenthesis or Not | 2328 |
582 | Contains Duplicate | 2325 |
583 | Count items common to both the lists but with different prices | 2323 |
584 | First missing positive | 2322 |
585 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 2319 |
586 | Palindrome Partitioning Leetcode Solution | 2311 |
587 | Valid Boomerang Leetcode Solution | 2309 |
588 | Sort a stack using recursion | 2308 |
589 | Find Largest Value in Each Tree Row LeetCode Solution | 2302 |
590 | Queue based approach for first non-repeating character in a stream | 2301 |
591 | Minimum Height Trees LeetCode Solution | 2298 |
592 | Monotonic Array Leetcode Solution | 2297 |
593 | Possible Bipartition LeetCode Solution | 2294 |
594 | Design a Stack With Increment Operation Leetcode Solution | 2285 |
595 | Number of Equivalent Domino Pairs Leetcode Solution | 2285 |
596 | Palindrome Permutations of a String | 2282 |
597 | Palindromic Substrings Leetcode Solution | 2281 |
598 | Sliding Window Maximum | 2277 |
599 | Contiguous Array LeetCode Solution | 2272 |
600 | Merge Overlapping Intervals II | 2269 |
601 | Sort a String According to Another String | 2266 |
602 | Distance Between Bus Stops Leetcode Solution | 2263 |
603 | Reorder an Array According to the Given Indexes | 2261 |
604 | Rearrange Spaces Between Words Leetcode Solution | 2255 |
605 | Word Break | 2255 |
606 | Find the Town Judge LeetCode Solution | 2254 |
607 | Maximum Frequency Stack Leetcode Solution | 2249 |
608 | Merge Two Balanced Binary Search Trees | 2246 |
609 | Best Meeting Point LeetCode Solution | 2243 |
610 | Detect Capital Leetcode Solution | 2236 |
611 | Number of palindromic paths in a matrix | 2234 |
612 | Morris Traversal | 2230 |
613 | Recover Binary Search Tree | 2225 |
614 | Valid Parentheses Leetcode Solution | 2224 |
615 | Find the Subarray of given length with Least Average | 2222 |
616 | Swapping Nodes in a Linked List Leetcode Solution | 2221 |
617 | Maximum sum rectangle in a 2D matrix | 2221 |
618 | Perform String Shifts Leetcode | 2217 |
619 | Maximum Depth of N-ary Tree Leetcode Solution | 2215 |
620 | Find Median from data Stream | 2210 |
621 | Caesar Cipher | 2209 |
622 | Construction of Longest Increasing Subsequence (N log N) | 2200 |
623 | Maximum Score After Splitting a String Leetcode Solution | 2193 |
624 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2191 |
625 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2189 |
626 | Minimum number of jumps to reach end | 2189 |
627 | Merge K Sorted Arrays and Print Sorted Output | 2184 |
628 | Queue using Stacks | 2181 |
629 | All Possible Full Binary Trees LeetCode Solution | 2178 |
630 | Maximize Elements Using Another Array | 2171 |
631 | Brick Wall LeetCode Solution | 2170 |
632 | Pair with given product | 2170 |
633 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2168 |
634 | Reach a Number LeetCode Solution | 2167 |
635 | Smallest Good Base | 2167 |
636 | Implement strStr() LeetCode Solution | 2165 |
637 | Binary Tree zigzag level order Traversal | 2163 |
638 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2160 |
639 | Find the First Circular Tour that visits all the Petrol Pumps | 2157 |
640 | Palindrome Permutation | 2155 |
641 | Mean of Array After Removing Some Elements Leetcode Solution | 2152 |
642 | Word Pattern | 2151 |
643 | My Calendar I LeetCode Solution | 2140 |
644 | Split Array Into Consecutive Subsequences | 2134 |
645 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2133 |
646 | Valid Sudoku | 2128 |
647 | Check if a Linked list of Strings form a Palindrome | 2122 |
648 | How to Efficiently Implement k Stacks in a Single Array? | 2119 |
649 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2112 |
650 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2110 |
651 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 2108 |
652 | Find all pairs (a, b) in an array such that a % b = k | 2108 |
653 | Binary Tree Right Side View LeetCode Solution | 2104 |
654 | Populating Next Right Pointers in Each Node Leetcode Solution | 2104 |
655 | Count pair with Given Sum | 2103 |
656 | Convert Sorted List to Binary Search Tree | 2103 |
657 | Check if String Follows Order of Characters by a Pattern or not | 2093 |
658 | Minimum Sum Path in a Triangle | 2090 |
659 | Add two numbers | 2084 |
660 | Web Crawler LeetCode Solution | 2082 |
661 | Remove brackets from an algebraic string containing + and – operators | 2082 |
662 | Largest Sum Contiguous Subarray | 2082 |
663 | Best Time to Buy and Sell Stock IV LeetCode Solution | 2077 |
664 | Huffman Coding | 2077 |
665 | Design Skiplist LeetCode Solution | 2072 |
666 | Length of Longest Fibonacci Subsequence | 2070 |
667 | Count ways to reach the nth stair using step 1, 2 or 3 | 2067 |
668 | Segregate 0s and 1s in an Array | 2061 |
669 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2060 |
670 | Print all subarrays with 0 sum | 2060 |
671 | Print Fibonacci sequence using 2 variables | 2060 |
672 | Find whether a subarray is in form of a mountain or not | 2057 |
673 | Concatenation of Array LeetCode Solution | 2056 |
674 | Count Sub Islands LeetCode Solution | 2051 |
675 | Minimum time required to rot all oranges | 2050 |
676 | Arithmetic Slices II – Subsequence LeetCode Solution | 2045 |
677 | Populating Next Right Pointers in Each Node | 2043 |
678 | Longest Subarray Having Count of 1s One More than Count of 0s | 2039 |
679 | Construct BST from given Preorder Traversal | 2039 |
680 | Find Maximum of Minimum for Every Window Size in a Given Array | 2031 |
681 | Partition to K Equal Sum Subsets Leetcode Solution | 2027 |
682 | All Unique Triplets that Sum up to a Given Value | 2027 |
683 | Find four elements that sum to a given value (Hashmap) | 2026 |
684 | Elements Appear more than N/K times in Array | 2025 |
685 | Sort 0s 1s and 2s in an Array | 2024 |
686 | Counting Bits | 2022 |
687 | Isomorphic Strings LeetCode Solution | 2021 |
688 | Remove Palindromic Subsequences Leetcode Solution | 2018 |
689 | Level order Traversal in Spiral Form | 2016 |
690 | Range Sum Query 2D – Immutable LeetCode Solution | 2015 |
691 | Swap Kth Node from beginning with Kth Node from End | 2010 |
692 | Finding K closest element | 2008 |
693 | Partition Problem | 2008 |
694 | Count Distinct Elements in Every Window of Size K | 2000 |
695 | Validate Binary Search Tree | 1997 |
696 | Find all triplets with zero sum | 1996 |
697 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 1994 |
698 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 1991 |
699 | Check for Balanced Parentheses in an Expression | 1990 |
700 | Heap Sort | 1989 |
701 | Maximize Sum of Array after K Negations Leetcode Solution | 1986 |
702 | Bubble sort using two Stacks | 1984 |
703 | Difference Array | Range update query in O(1) | 1974 |
704 | Nested List Weight Sum II LeetCode Solution | 1957 |
705 | Count Minimum Steps to Get the given Array | 1955 |
706 | Find All Pairs With a Given Difference | 1953 |
707 | Find Duplicate Subtrees | 1948 |
708 | String comparison containing wildcards | 1946 |
709 | Contiguous Array Leetcode | 1935 |
710 | Binary Tree to Binary Search Tree Conversion | 1932 |
711 | MiniMax Algorithm | 1929 |
712 | Maximum Distance in Array | 1926 |
713 | Happy Number | 1926 |
714 | Linked List Cycle | 1926 |
715 | Rearrange an Array Such that arr[i] is equal to i | 1922 |
716 | Reorder Array Using Given Indexes | 1916 |
717 | Reverse Nodes in K-Group | 1914 |
718 | Maximum Product Subarray II | 1914 |
719 | Increasing Subsequence of Length three with Maximum Product | 1914 |
720 | Merge K Sorted Linked Lists | 1912 |
721 | Sum Root to Leaf Numbers LeetCode Solution | 1908 |
722 | Inorder Successor of a node in Binary Tree | 1899 |
723 | Parallel Courses II LeetCode Solution | 1898 |
724 | Symmetric Tree | 1897 |
725 | Root to Leaf path with target sum Leetcode Solutions | 1894 |
726 | Container with Most Water | 1891 |
727 | Maximum difference between two elements such as larger element comes after smaller | 1891 |
728 | Longest Increasing Subsequence | 1890 |
729 | Merge Two Sorted Lists Leetcode | 1888 |
730 | Alien Dictionary | 1885 |
731 | Check if Two Expressions With Brackets are Same | 1883 |
732 | Rotate Array | 1881 |
733 | Check if any two intervals overlap among a given set of intervals | 1880 |
734 | An Interesting Method to generate Binary Numbers from 1 to n | 1879 |
735 | Minimum Distance Between BST Nodes Leetcode Solution | 1878 |
736 | Queue Reconstruction by Height | 1878 |
737 | Union and Intersection of two Linked Lists | 1873 |
738 | Iterative Depth First Traversal of Graph | 1868 |
739 | Longest Common Prefix Using Binary Search II | 1868 |
740 | K maximum sums of overlapping contiguous sub-arrays | 1866 |
741 | Flatten 2D Vector LeetCode Solution | 1862 |
742 | Count Good Nodes in Binary Tree LeetCode Solution | 1860 |
743 | Find pairs with given sum such that elements of pair are in different rows | 1860 |
744 | Minimum Swaps to Make Strings Equal Leetcode Solution | 1859 |
745 | Delete Nth node from the end of the given linked list | 1859 |
746 | Climbing stairs | 1858 |
747 | Score of Parenthesis LeetCode Solution | 1855 |
748 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 1850 |
749 | Substring With Concatenation Of All Words | 1847 |
750 | Queries on Probability of Even or Odd Number in given Ranges | 1845 |
751 | Find the first repeating element in an array of integers | 1841 |
752 | Smallest Range II Leetcode Solution | 1839 |
753 | Kill Process LeetCode Solution | 1837 |
754 | Breadth First Search (BFS) for a Graph | 1835 |
755 | Find subarray with given sum (Handles Negative Numbers) | 1832 |
756 | Print a Binary Tree in Vertical Order | 1832 |
757 | Delete Nodes and Return Forest Leetcode Solution | 1830 |
758 | Longest Common Prefix Word by Word Matching | 1829 |
759 | Merging Intervals | 1818 |
760 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 1817 |
761 | Iterative Preorder Traversal | 1815 |
762 | Remove duplicates from sorted array | 1811 |
763 | Check if a queue can be sorted into another queue using a stack | 1809 |
764 | New 21 Game | 1807 |
765 | Minimum Size Subarray Sum | 1786 |
766 | Peak Index in a Mountain Array LeetCode Solution | 1784 |
767 | Valid Parenthesis String | 1784 |
768 | Range LCM Queries | 1781 |
769 | Maximum size subarray sum equals k | 1781 |
770 | Find K Closest Elements LeetCode Solution | 1780 |
771 | Vertical sum in a given binary tree | 1775 |
772 | Sorting a K Sorted Array | 1774 |
773 | Friends Of Appropriate Ages LeetCode Solution | 1771 |
774 | Find Maximum Sum Possible Equal Sum of Three Stacks | 1766 |
775 | Construct Binary Tree from given Parent Array representation | 1764 |
776 | Sort Array by Increasing Frequency Leetcode Solution | 1761 |
777 | Find the Difference Leetcode Solution | 1761 |
778 | Matrix Chain Multiplication | 1760 |
779 | Verify Preorder Serialization of a Binary Tree | 1758 |
780 | Find Sum of all unique sub-array sum for a given array | 1750 |
781 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 1744 |
782 | Count pairs from two linked lists whose sum is equal to a given value | 1744 |
783 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 1741 |
784 | Find K Length Subarray of Maximum Average | 1741 |
785 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 1740 |
786 | Non-overlapping sum of two sets | 1737 |
787 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 1734 |
788 | Defanging an IP Address LeetCode Solution | 1734 |
789 | Reservoir Sampling | 1732 |
790 | Maximum Product Subarray | 1730 |
791 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 1729 |
792 | Valid Anagrams | 1725 |
793 | Boolean Parenthesization Problem | 1723 |
794 | Deletion in a Binary Tree | 1721 |
795 | The Painter’s Partition Problem | 1720 |
796 | Remove Duplicates from Sorted List II | 1719 |
797 | Flatten Binary Tree to Linked List LeetCode Solution | 1717 |
798 | Number of siblings of a given Node in n-ary Tree | 1717 |
799 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 1713 |
800 | Print All Distinct Elements of a Given Integer Array | 1713 |
801 | Boundary Traversal of binary tree | 1711 |
802 | Given a binary tree, how do you remove all the half nodes? | 1707 |
803 | Employee Importance LeetCode Solution | 1699 |
804 | Find the largest multiple of 3 | 1698 |
805 | Isomorphic Strings | 1697 |
806 | Unique Binary Search Trees | 1694 |
807 | Partition Equal Subset Sum | 1690 |
808 | Check Completeness of a Binary Tree LeetCode Solution | 1689 |
809 | Count and Say | 1688 |
810 | Closest Leaf in a Binary Tree LeetCode Solution | 1686 |
811 | Count number of triplets with product equal to given number | 1683 |
812 | Pancake Sorting | 1681 |
813 | Median of Two Sorted Arrays | 1679 |
814 | Level of Each node in a Tree from source node | 1679 |
815 | Infix to Postfix | 1674 |
816 | Level order traversal using two Queues | 1673 |
817 | Largest BST Subtree LeetCode Solution | 1672 |
818 | Print all triplets in sorted array that form AP | 1671 |
819 | Tree Traversal (Preorder, Inorder & Postorder) | 1671 |
820 | Find Peak Element | 1670 |
821 | Distinct Subsequences | 1668 |
822 | Products of ranges in an array | 1667 |
823 | Hamming Distance | 1667 |
824 | Third Maximum Number Leetcode Solution | 1662 |
825 | Maximum subsequence sum such that no three are consecutive | 1660 |
826 | Find Element Using Binary Search in Sorted Array | 1660 |
827 | Longest Palindromic Subsequence | 1654 |
828 | Bold Words in String LeetCode Solution | 1652 |
829 | Subset Sum Problem in O(sum) space | 1652 |
830 | Find distance between two nodes of a Binary Tree | 1650 |
831 | Unique Binary Search Trees LeetCode Solution | 1649 |
832 | Largest divisible pairs subset | 1644 |
833 | Array Nesting Leetcode Solution | 1642 |
834 | Create Maximum Number | 1639 |
835 | Find Nth Node | 1638 |
836 | Palindrome Partitioning | 1636 |
837 | BFS vs DFS for Binary Tree | 1636 |
838 | Super Ugly Number | 1633 |
839 | Find Common Characters Leetcode Solution | 1631 |
840 | Valid Number | 1627 |
841 | Four Elements that Sum to Given | 1627 |
842 | Largest Submatrix With Rearrangements LeetCode Solution | 1625 |
843 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 1618 |
844 | Minimum insertions to form a palindrome with permutations allowed | 1615 |
845 | Binary array after M range toggle operations | 1614 |
846 | Missing Number | 1614 |
847 | Maximum number of segments of lengths a, b and c | 1613 |
848 | Serialize and Deserialize Binary Tree LeetCode Solution | 1606 |
849 | Valid Triangle Number LeetCode Solution | 1605 |
850 | Lowest Common Ancestor | 1605 |
851 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 1604 |
852 | Transform a BST to Greater sum Tree | 1603 |
853 | Maximum Population Year LeetCode Solution | 1600 |
854 | Shuffle an Array | 1599 |
855 | Newman-Conway Sequence | 1596 |
856 | Sort Elements by Frequency II | 1596 |
857 | Check if two nodes are on the same path in a Tree | 1591 |
858 | Number Of Longest Increasing Subsequence | 1591 |
859 | Next Greater Element in an Array | 1590 |
860 | Find Smallest Range Containing Elements from k Lists | 1587 |
861 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 1580 |
862 | Sentence Screen Fitting LeetCode Solution | 1579 |
863 | Insert Delete GetRandom | 1578 |
864 | Trapping Rain Water II LeetCode Solution | 1577 |
865 | Balanced Binary Tree | 1577 |
866 | Next Greater Element II LeetCode Solution | 1574 |
867 | Integer to Roman | 1570 |
868 | Averages of Levels in Binary Tree | 1569 |
869 | Maximum Sum of 3 Non-Overlapping Subarrays | 1568 |
870 | Minimum sum of squares of character counts in a given string after removing k characters | 1555 |
871 | Path Sum | 1555 |
872 | Arrange given numbers to form the biggest number | 1554 |
873 | First Bad Version | 1554 |
874 | Largest subarray with equal number of 0s and 1s | 1553 |
875 | Encoded String With Shortest Length LeetCode Solution | 1551 |
876 | Check if all levels of two Binary Tree are anagrams or not | 1551 |
877 | Merging Two Sorted Arrays | 1551 |
878 | Closest Binary Search Tree Value Leetcode Solution | 1550 |
879 | Height of a generic tree from parent array | 1548 |
880 | Stone Game IV LeetCode Solution | 1545 |
881 | Merge Two Sorted Arrays | 1542 |
882 | Valid Triangle Number LeetCode Solution | 1541 |
883 | Stone Game IV LeetCode Solution | 1538 |
884 | Topological Sorting | 1538 |
885 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 1534 |
886 | Kth Smallest Number in Multiplication Table Leetcode Solution | 1534 |
887 | Contiguous Array | 1530 |
888 | Count Primes in Ranges | 1528 |
889 | Permutations of a Given String Using STL | 1528 |
890 | Red-Black Tree Introduction | 1527 |
891 | Lower Case To Upper Case | 1525 |
892 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 1517 |
893 | Reorganize String | 1513 |
894 | Diameter of N-Ary Tree LeetCode Solution | 1507 |
895 | Print Right View of a Binary Tree | 1504 |
896 | Bottom View of a Binary Tree | 1502 |
897 | Friends Pairing Problem | 1500 |
898 | Find minimum number of merge operations to make an array palindrome | 1500 |
899 | Find unique character in a string | 1500 |
900 | Iterative Postorder Traversal Using Two Stacks | 1498 |
901 | Maximum difference between first and last indexes of an element in array | 1496 |
902 | Orderly Queue LeetCode Solution | 1494 |
903 | Find Largest d in Array such that a + b + c = d | 1493 |
904 | Level Order Traversal of Binary Tree | 1492 |
905 | Find Minimum In Rotated Sorted Array | 1490 |
906 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 1489 |
907 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 1485 |
908 | Diagonal Traversal of Binary Tree | 1481 |
909 | Longest Bitonic Subsequence | 1479 |
910 | Constant time range add operation on an array | 1476 |
911 | Swap Nodes In Pairs | 1473 |
912 | Total Hamming Distance LeetCode Solution | 1471 |
913 | Reverse a Path in BST using Queue | 1469 |
914 | Valid Perfect Square LeetCode Solution | 1467 |
915 | Serialize and Deserialize Binary Tree | 1466 |
916 | Binary Search Tree Delete Operation | 1464 |
917 | Next greater element | 1462 |
918 | Largest Plus Sign Leetcode Solution | 1461 |
919 | Koko Eating Bananas LeetCode Solution | 1457 |
920 | Range Sum Query using Sparse Table | 1451 |
921 | Count the Pairs at Same Distance as in English Alphabets | 1450 |
922 | Segment Tree | 1448 |
923 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 1443 |
924 | Best Meeting Point LeetCode Solution | 1443 |
925 | Maximum Product Subarray | 1439 |
926 | Binary Search Tree Search and Insertion | 1430 |
927 | Valid Tic-Tac-Toe State LeetCode Solution | 1429 |
928 | Longest Substring Without Repeating Characters Leetcode Solution | 1426 |
929 | A program to check if a binary tree is BST or not | 1424 |
930 | Edit Distance | 1424 |
931 | Maximum Product Subarray | 1421 |
932 | Advantages of BST over Hash Table | 1420 |
933 | Find the smallest binary digit multiple of given number | 1419 |
934 | The Number of Weak Characters in the Game LeetCode Solution | 1410 |
935 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 1400 |
936 | Convert BST into a Min-Heap without using array | 1400 |
937 | Maximum Sum Increasing Subsequence | 1399 |
938 | Group Shifted Strings Leetcode Solution | 1398 |
939 | Shuffle a given Array | 1397 |
940 | Longest Increasing Consecutive Subsequence | 1390 |
941 | Design Add and Search Words Data Structure LeetCode Solution | 1386 |
942 | Array Queries for multiply replacements and product | 1386 |
943 | K’th Largest element in BST using constant extra space | 1379 |
944 | Image Overlap LeetCode Solution | 1378 |
945 | Greatest Sum Divisible by Three LeetCode Solution | 1377 |
946 | Priority Queue | 1377 |
947 | Dividing Array into Pairs With Sum Divisible by K | 1374 |
948 | Print Next Greater Number of Q queries | 1371 |
949 | Design Underground System Leetcode Solution | 1368 |
950 | Print n terms of Newman-Conway Sequence | 1366 |
951 | Write a function to get the intersection point of two Linked Lists | 1365 |
952 | Collect maximum points in a grid using two traversals | 1365 |
953 | Find the node with minimum value in a Binary Search Tree | 1362 |
954 | Construct Complete Binary Tree from its Linked List Representation | 1359 |
955 | Range Queries for Longest Correct Bracket Subsequence | 1358 |
956 | Factorial Trailing Zeroes LeetCode Solution | 1349 |
957 | Check if an Array is Stack Sortable | 1349 |
958 | Merge Sort | 1349 |
959 | Insert into a Sorted Circular Linked List LeetCode Solution | 1344 |
960 | Queries on XOR of greatest odd divisor of the range | 1343 |
961 | Swim in Rising Water LeetCode Solution | 1341 |
962 | Guess The Word | 1341 |
963 | Form Minimum Number From Given Sequence | 1340 |
964 | Lowest Common Ancestor in Binary Search Tree | 1340 |
965 | Sorted Array to Balanced BST | 1330 |
966 | Numbers with prime frequencies greater than or equal to k | 1329 |
967 | Print modified array after multiple array range increment operations | 1326 |
968 | Power of Two | 1326 |
969 | Find postorder traversal of BST from preorder traversal | 1325 |
970 | Clone a Binary Tree with Random Pointers | 1325 |
971 | K’th Largest Element in BST when modification to BST is not allowed | 1323 |
972 | Maximum Array from Two given Arrays Keeping Order Same | 1319 |
973 | Write Code to Determine if Two Trees are Identical | 1317 |
974 | Moving Stones Until Consecutive Leetcode Solution | 1315 |
975 | Form minimum number from given sequence | 1315 |
976 | Longest Common Prefix using Character by Character Matching | 1314 |
977 | Excel Sheet Column Number LeetCode Solution | 1313 |
978 | Print all Possible Ways to Break a String in Bracket Form | 1310 |
979 | Queries for Number of Distinct Elements in a Subarray | 1305 |
980 | Merge Sorted Array | 1303 |
981 | Check for Palindrome after every character replacement Query | 1299 |
982 | K Empty Slots | 1290 |
983 | Count and Toggle Queries on a Binary Array | 1288 |
984 | Check if each internal node of a BST has exactly one child | 1279 |
985 | Cutting a Rod | 1278 |
986 | Count even length binary sequences with same sum of first and second half bits | 1275 |
987 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1274 |
988 | Search in Sorted Rotated Array | 1270 |
989 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1269 |
990 | Find Maximum Depth of Nested Parenthesis in a String | 1266 |
991 | Number of elements less than or equal to a given number in a given subarray | 1262 |
992 | Closest Binary Search Tree Value II LeetCode Solution | 1258 |
993 | Find maximum average subarray of k length | 1256 |
994 | Check if X can give change to every person in the Queue | 1255 |
995 | Queries for Decimal Values of Subarrays of a Binary Array | 1253 |
996 | Number of Orders in the Backlog Leetcode Solution | 1248 |
997 | Binary Search Tree | 1248 |
998 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1246 |
999 | Kth Smallest Element in a BST | 1244 |
1000 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1242 |
1001 | Count Pairs Whose Products Exist in Array | 1237 |
1002 | Minimum Moves to Equal Array Elements LeetCode Solution | 1235 |
1003 | Unique Paths II | 1235 |
1004 | Merge two BSTs with limited extra space | 1235 |
1005 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1221 |
1006 | Regular Expression Matching | 1221 |
1007 | Symmetric Tree LeetCode Solution Leetcode Solution | 1214 |
1008 | Sum of Left Leaves LeetCode Solution | 1209 |
1009 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1202 |
1010 | Maximum weight transformation of a given string | 1202 |
1011 | How to print maximum number of A’s using given four keys | 1200 |
1012 | Graph Cloning | 1194 |
1013 | Random Pick Index LeetCode Solution | 1182 |
1014 | Maximum Depth Of Binary Tree | 1176 |
1015 | Palindrome Partitioning | 1175 |
1016 | Excel Sheet Column Title LeetCode Solution | 1172 |
1017 | Search an Element in Sorted Rotated Array | 1158 |
1018 | Data Structure Designing | 1148 |
1019 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1147 |
1020 | Check given array of size n can represent BST of n levels or not | 1142 |
1021 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1141 |
1022 | Iterative method to find ancestors of a given binary tree | 1133 |
1023 | Next Greater Element I Leetcode Solution | 1107 |
1024 | Maximum Binary Tree | 1103 |
1025 | Binary Tree to Binary Search Tree Conversion using STL set | 1080 |
1026 | Find k-th smallest element in BST (Order Statistics in BST) | 1070 |
1027 | Find the Town Judge LeetCode Solution | 1065 |
1028 | Print Maximum Length Chain of Pairs | 1020 |
1029 | Peeking Iterator LeetCode Solution | 1012 |
1030 | Flatten Binary Tree to Linked List LeetCode Solution | 999 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 988 |