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 | 27751 |
2 | Maximum occurring character in a string | 15843 |
3 | Plus One Leetcode Solution | 13857 |
4 | Valid Parentheses LeetCode Solution | 13134 |
5 | First Repeating Element | 11427 |
6 | 3Sum Leetcode Solution | 11302 |
7 | Single Number Leetcode Solution | 10834 |
8 | Pow(x, n) Leetcode Solution | 9506 |
9 | Sqrt(x) Leetcode Solution | 8974 |
10 | Merge Sorted Arrays Leetcode Solution | 8902 |
11 | Meeting Rooms II LeetCode Solution | 8846 |
12 | Contains Duplicate II Leetcode Solution | 8614 |
13 | Search Insert Position Leetcode Solution | 8098 |
14 | Count Primes Leetcode Solutions | 8020 |
15 | Roman to Integer Leetcode Solution | 7913 |
16 | Concatenation of Array LeetCode Solution | 7800 |
17 | Valid Palindrome Leetcode Solution | 7770 |
18 | Reverse Vowels of a String Leetcode Solution | 7707 |
19 | Intersection of Two Arrays II Leetcode Solution | 7671 |
20 | Palindrome Number LeetCode Solution | 7590 |
21 | Find the Maximum Repeating Number in Array | 7580 |
22 | Jump Game Leetcode Solution | 7167 |
23 | Text Justification LeetCode Solution | 7143 |
24 | Kids With the Greatest Number of Candies Leetcode Solution | 7066 |
25 | Number of Good Pairs Leetcode Solution | 6983 |
26 | Add Binary Leetcode Solution | 6949 |
27 | House Robber Leetcode Solution | 6930 |
28 | Spiral Matrix LeetCode Solution | 6873 |
29 | Number Of 1 bits | 6609 |
30 | Find All Numbers Disappeared in an Array Leetcode Solution | 6574 |
31 | Longest Palindromic Substring LeetCode Solution | 6543 |
32 | Running Sum of 1d Array Leetcode Solution | 6480 |
33 | Kth Missing Positive Number Leetcode Solution | 6451 |
34 | Shuffle String Leetcode Solution | 6415 |
35 | Find Minimum Distance Between Two Numbers in an Array | 6285 |
36 | Permutations Leetcode Solution | 6273 |
37 | Power of Two Leetcode Solution | 6273 |
38 | Next Permutation Leetcode Solution | 6214 |
39 | Maximum Profit in Job Scheduling Leetcode Solution | 6181 |
40 | Longest Common Prefix Leetcode Solution | 6171 |
41 | Jewels and Stones Leetcode Solution | 6158 |
42 | Maximum Subarray Leetcode Solution | 6133 |
43 | Word Search Leetcode Solution | 6030 |
44 | Frog Jump Leetcode Solution | 6020 |
45 | Third Maximum Number Leetcode Solution | 6008 |
46 | Longest Substring Without Repeating Characters LeetCode Solution | 5997 |
47 | Reverse String Without Temporary Variable | 5974 |
48 | Number of Islands LeetCode Solution | 5893 |
49 | Bulb Switcher LeetCode Solution | 5853 |
50 | Daily Temperatures Leetcode Solution | 5852 |
51 | Combination Sum Leetcode Solution | 5828 |
52 | Move Zeroes LeetCode Solution | 5818 |
53 | Next Greater Element I Leetcode Solution | 5766 |
54 | Rotate Image LeetCode Solution | 5743 |
55 | Min Stack Leetcode Solution | 5732 |
56 | Strobogrammatic Number LeetCode Solution | 5705 |
57 | 3Sum Closest LeetCode Solution | 5681 |
58 | Shuffle the Array Leetcode Solution | 5628 |
59 | Can Place Flowers LeetCode Solution | 5625 |
60 | Subarray and Subsequence | 5595 |
61 | Missing Number Leetcode Solution | 5566 |
62 | Search in Rotated Sorted Array Leetcode Solution | 5561 |
63 | Multiply Strings Leetcode Solution | 5554 |
64 | Count Pairs With Given Sum | 5455 |
65 | Excel Sheet Column Title Leetcode Solution | 5421 |
66 | Integer to Roman Leetcode Solution | 5353 |
67 | House Robber II Leetcode Solution | 5339 |
68 | Count and Say Leetcode Solution | 5337 |
69 | Product of array except self | 5294 |
70 | Median of Two Sorted Arrays LeetCode Solution | 5279 |
71 | Koko Eating Bananas Leetcode Solution | 5233 |
72 | Isomorphic Strings Leetcode Solution | 5217 |
73 | Largest Number Leetcode Solution | 5185 |
74 | String to Integer (atoi) LeetCode Solution | 5184 |
75 | Remove Duplicates from Sorted Array Leetcode Solution | 5184 |
76 | Find the Difference Leetcode Solution | 5084 |
77 | Set Matrix Zeroes | 4983 |
78 | Smallest window in a string containing all characters of another string | 4944 |
79 | Balanced Binary Tree Leetcode Solution | 4933 |
80 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 4912 |
81 | Find Common Characters Leetcode Solution | 4891 |
82 | Valid Anagram Leetcode Solution | 4888 |
83 | Summary Ranges Leetcode Solution | 4822 |
84 | Happy Number Leetcode Solution | 4796 |
85 | Candy LeetCode Solution | 4740 |
86 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 4739 |
87 | Majority Element Leetcode Solution | 4730 |
88 | Evaluation of Postfix Expression | 4726 |
89 | Rearrange Positive and Negative Numbers Alternatively in Array | 4716 |
90 | Linked List Cycle II LeetCode Solution | 4712 |
91 | Is Subsequence Leetcode Solution | 4703 |
92 | Unique Paths Leetcode Solution | 4687 |
93 | Arranging Coins Leetcode Solution | 4681 |
94 | Subset Leetcode | 4519 |
95 | Word Pattern LeetCode Solution | 4497 |
96 | Repeated Substring Pattern LeetCode Solution | 4481 |
97 | Sort Colors LeetCode Solution | 4475 |
98 | Zigzag Conversion LeetCode Solution | 4446 |
99 | Rotate String LeetCode Solution | 4433 |
100 | Reverse Integer Leetcode Solution | 4404 |
101 | Sum of minimum and maximum elements of all subarrays of size k | 4400 |
102 | Sort Array By Parity LeetCode Solution | 4396 |
103 | Find the Winner of the Circular Game LeetCode Solution | 4347 |
104 | String Compression LeetCode Solution | 4333 |
105 | Valid Palindrome II Leetcode Solution | 4316 |
106 | Bus Routes Leetcode Solution | 4314 |
107 | Asteroid Collision LeetCode Solution | 4313 |
108 | Find the Town Judge Leetcode Solution | 4299 |
109 | Find the Duplicate Number LeetCode Solution | 4272 |
110 | Sort Characters By Frequency LeetCode Solution | 4254 |
111 | Pascal Triangle Leetcode | 4230 |
112 | Best Time to Buy and Sell Stock II Leetcode Solution | 4225 |
113 | Merge Two Sorted Lists Leetcode Solutions | 4218 |
114 | Product of Array Except Self LeetCode Solution | 4203 |
115 | Employee Free Time LeetCode Solution | 4194 |
116 | First element occurring k times in an array | 4182 |
117 | Fibonacci Number LeetCode Solution | 4160 |
118 | Minimum Cost For Tickets Leetcode Solution | 4135 |
119 | A Product Array Puzzle | 4124 |
120 | Build Array From Permutation Leetcode Solution | 4123 |
121 | Divide Two Integers Leetcode Solution | 4106 |
122 | Binary Search LeetCode Solution | 4088 |
123 | Subarray with Given Sum | 4068 |
124 | Implementation of Deque using Doubly Linked List | 4052 |
125 | Kth largest element in an Array Leetcode Solutions | 4051 |
126 | Expression Evaluation | 4037 |
127 | Number of Provinces Leetcode Solution | 4031 |
128 | Best Time to Buy and Sell Stock LeetCode Solution | 4031 |
129 | Minimum Steps to reach target by a Knight | 4020 |
130 | Find Smallest Missing Number in a Sorted Array | 4020 |
131 | Increasing Triplet Subsequence LeetCode Solution | 3992 |
132 | Decode String Leetcode Solution | 3989 |
133 | Optimal Account Balancing LeetCode Solution | 3988 |
134 | Rabin Karp Algorithm | 3972 |
135 | Length of Last Word Leetcode Solution | 3961 |
136 | Postfix to Infix Conversion | 3942 |
137 | Check if the Elements of an Array are Consecutive | 3909 |
138 | H-Index Leetcode Solution | 3905 |
139 | First Unique Character in a String LeetCode Solution | 3900 |
140 | Find the Missing Number | 3894 |
141 | Matrix Chain Multiplication using Dynamic Programming | 3874 |
142 | Robot Room Cleaner Leetcode Solution | 3855 |
143 | Defanging an IP Address Leetcode Solution | 3839 |
144 | Subarray Product Less Than K LeetCode Solution | 3794 |
145 | Convert array into Zig-Zag fashion | 3786 |
146 | Page Replacement Algorithms in Operating Systems | 3785 |
147 | K-th Smallest Element in a Sorted Matrix | 3784 |
148 | Pascal’s Triangle II Leetcode Solution | 3767 |
149 | Bellman Ford Algorithm | 3766 |
150 | Form Minimum Number from Given Sequence of D’s and I’s | 3756 |
151 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 3723 |
152 | Coin Change 2 Leetcode Solution | 3720 |
153 | Remove Linked List Elements Leetcode Solution | 3717 |
154 | Length of the largest subarray with contiguous elements | 3705 |
155 | Swap Nodes in Pairs Leetcode Solutions | 3690 |
156 | Backspace String Compare | 3683 |
157 | Reverse Words in a String III LeetCode Solution | 3680 |
158 | Capacity To Ship Packages Within D Days Leetcode Solution | 3679 |
159 | Prefix to Infix Conversion | 3675 |
160 | Lemonade Change Leetcode Solution | 3673 |
161 | Group Anagrams LeetCode Solution | 3670 |
162 | Guess Number Higher or Lower LeetCode Solution | 3634 |
163 | Design Parking System Leetcode Solution | 3622 |
164 | OSI Model | 3622 |
165 | Combinations Leetcode Solution | 3616 |
166 | Island Perimeter Leetcode Solution | 3612 |
167 | Iterative Implementation of Quick Sort | 3612 |
168 | Add Two Numbers II Leetcode Solution | 3596 |
169 | Majority Element II Leetcode Solution | 3576 |
170 | First negative integer in every window of size k | 3558 |
171 | Find Pair with Given Difference | 3557 |
172 | Assign Cookies Leetcode Solution | 3553 |
173 | Palindrome Linked List Leetcode Solution | 3540 |
174 | Remove All Occurrences of a Substring LeetCode Solution | 3533 |
175 | Repeated Substring Pattern | 3533 |
176 | Trapping Rain Water Leetcode Solution | 3520 |
177 | KMP Algorithm | 3499 |
178 | Max Consecutive Ones Leetcode Solution | 3489 |
179 | Last Stone Weight | 3472 |
180 | String Compression | 3463 |
181 | Remove Duplicates from Sorted Array II Leetcode Solution | 3459 |
182 | Remove Duplicates from Sorted List II LeetCode Solution | 3457 |
183 | Delete middle element of a stack | 3455 |
184 | Break a Palindrome LeetCode Solution | 3437 |
185 | Rearrange given Array in Maximum Minimum Form | 3428 |
186 | Find All Duplicates in an Array LeetCode Solution | 3387 |
187 | Generate Parentheses Leetcode Solution | 3374 |
188 | Same Tree LeetCode Solution | 3365 |
189 | Continuous Subarray Sum LeetCode Solution | 3363 |
190 | Convert a Number to Hexadecimal Leetcode Solution | 3350 |
191 | Monotonic Array LeetCode Solution | 3342 |
192 | Find N Unique Integers Sum up to Zero Leetcode Solution | 3339 |
193 | Find Leaders in an Array | 3323 |
194 | Delete Node in a Linked List Leetcode Solution | 3319 |
195 | The K Weakest Rows in a Matrix Leetcode Solution | 3318 |
196 | 01 Matrix LeetCode Solution | 3312 |
197 | Moving Average from Data Stream Leetcode Solution | 3311 |
198 | Word Ladder LeetCode Solution | 3304 |
199 | Printing brackets in Matrix Chain Multiplication Problem | 3263 |
200 | Find Triplet in Array With a Given Sum | 3252 |
201 | Second Most Repeated Word in a Sequence | 3236 |
202 | Palindrome Number | 3234 |
203 | Smallest Positive Number Missing in an Unsorted Array | 3231 |
204 | Find Peak Element LeetCode Solution | 3215 |
205 | Target Sum | 3215 |
206 | Time Based Key-Value Store LeetCode Solution | 3201 |
207 | Subarray Sum Equals k | 3198 |
208 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 3196 |
209 | Valid Perfect Square Leetcode Solution | 3168 |
210 | Combination Sum | 3154 |
211 | Slowest Key Leetcode Solution | 3150 |
212 | Find the Duplicate Element | 3145 |
213 | Reverse Only Letters LeetCode Solution | 3143 |
214 | Generate all Binary Strings Without Consecutive 1’s | 3138 |
215 | Rotate List Leetcode Solution | 3136 |
216 | Permutation in String Leetcode Solution | 3126 |
217 | Insert Delete GetRandom O(1) Leetcode Solution | 3120 |
218 | Leetcode Permutations | 3120 |
219 | Minimum Operations to convert X to Y | 3115 |
220 | Max Area of Island | 3115 |
221 | Check If Two String Arrays are Equivalent Leetcode Solution | 3112 |
222 | Minimum Knight Moves LeetCode Solution | 3104 |
223 | Merge k Sorted Lists Leetcode Solution | 3102 |
224 | Sum of Subarray Ranges Leetcode Solution | 3100 |
225 | Kth Largest Element in a Stream Leetcode Solution | 3084 |
226 | Unique Paths II Leetcode Solution | 3080 |
227 | Cuckoo sequence program | 3080 |
228 | Find the Row with Maximum Number of 1’s | 3080 |
229 | Top K Frequent Elements LeetCode Solution | 3078 |
230 | Maximum Product of Three Numbers LeetCode Solution | 3076 |
231 | Letter Combinations of a Phone Number | 3076 |
232 | Number of Dice Rolls With Target Sum LeetCode Solution | 3058 |
233 | Make The String Great Leetcode Solution | 3058 |
234 | Relative Sort Array Leetcode Solution | 3042 |
235 | Stock Buy Sell to Maximize Profit | 3035 |
236 | Minimum swaps required to bring all elements less than or equal to k together | 3026 |
237 | Subarray Sum Equals K LeetCode Solution | 3024 |
238 | LRU Cache LeetCode Solution | 3024 |
239 | Remove Minimum Characters so that Two Strings Become Anagrams | 3024 |
240 | Check If N and Its Double Exist Leetcode Solution | 3000 |
241 | Merge Sorted Array LeetCode Solution | 2997 |
242 | Count Good Nodes in Binary Tree Leetcode Solution | 2995 |
243 | Scramble String | 2989 |
244 | Maximize Distance to Closest Person LeetCode Solution | 2981 |
245 | Maximum Population Year LeetCode Solution | 2980 |
246 | Prefix to Postfix Conversion | 2975 |
247 | Longest Common Subsequence LeetCode Solution | 2973 |
248 | Arrange given Numbers to Form the Biggest Number II | 2965 |
249 | Find the Number Occurring Odd Number of Times in an Array | 2956 |
250 | Single Element in a Sorted Array LeetCode Solution | 2954 |
251 | Maximum Subarray Sum using Divide and Conquer | 2944 |
252 | Top K Frequent Elements | 2941 |
253 | Remove Duplicates from Sorted List LeetCode Solution | 2937 |
254 | Minimum Characters to be Added at Front to Make String Palindrome | 2930 |
255 | Relative Ranks Leetcode Solution | 2923 |
256 | Most Frequent Element in an Array | 2915 |
257 | Top K Frequent Words LeetCode Solution | 2914 |
258 | Sort Elements by Frequency of Occurrences | 2912 |
259 | License Key Formatting Leetcode Solution | 2901 |
260 | Given two unsorted arrays find all pairs whose sum is x | 2886 |
261 | Min Cost Climbing Stairs LeetCode Solution | 2881 |
262 | Maximum Sum Increasing Subsequence | 2876 |
263 | N-Queens LeetCode Solution | 2869 |
264 | Reverse individual words | 2867 |
265 | The kth Factor of n Leetcode Solution | 2855 |
266 | Search Suggestions System LeetCode Solution | 2852 |
267 | Flipping an Image LeetCode Solution | 2851 |
268 | Minimum Path Sum Leetcode Solution | 2842 |
269 | Intersection of Two Arrays | 2841 |
270 | Find any one of the multiple repeating elements in read only array | 2817 |
271 | Next Permutation | 2800 |
272 | Student Attendance Record I Leetcode Solution | 2794 |
273 | Count of index pairs with equal elements in an array | 2785 |
274 | To Lower Case Leetcode Solution | 2751 |
275 | Design A Leaderboard Leetcode Solution | 2747 |
276 | Spiral Matrix II Leetcode Solution | 2745 |
277 | Maximum Depth of Binary Tree Leetcode Solution | 2739 |
278 | Find if Path Exists in Graph Leetcode Solution | 2737 |
279 | Implement a stack using single queue | 2732 |
280 | Diagonal Traversal LeetCode Solution | 2723 |
281 | Check whether Strings are K Distance Apart or Not | 2711 |
282 | Arithmetic Expression Evaluation | 2704 |
283 | Reformat Date LeetCode Solution | 2698 |
284 | Length of Longest valid Substring | 2696 |
285 | Diagonal Traverse LeetCode Solution | 2692 |
286 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 2683 |
287 | Count Number of Occurrences in a Sorted Array | 2680 |
288 | Evaluate Division | 2679 |
289 | Robot Bounded In Circle LeetCode Solution | 2677 |
290 | Maximum Size Subarray Sum Equals k Leetcode Solution | 2669 |
291 | BFS for Disconnected Graph | 2664 |
292 | Minimum number of Merge Operations to make an Array Palindrome | 2659 |
293 | Best Time to Buy and Sell Stock III Leetcode Solution | 2656 |
294 | Prim’s Algorithm | 2648 |
295 | Brightest Position on Street LeetCode Solution | 2636 |
296 | Stone Game LeetCode | 2630 |
297 | Next Greater Element III LeetCode Solution | 2625 |
298 | The Celebrity Problem | 2624 |
299 | Reverse words in a string | 2601 |
300 | Symmetric Tree Leetcode Solution | 2596 |
301 | Count of Triplets With Sum Less than Given Value | 2589 |
302 | Find Words That Can Be Formed by Characters Leetcode Solution | 2585 |
303 | Sudoku Solver | 2583 |
304 | Invalid Transactions LeetCode Solution | 2577 |
305 | Min Stack | 2577 |
306 | One Edit Distance LeetCode Solution | 2564 |
307 | Find Leaves of Binary Tree LeetCode Solution | 2560 |
308 | Find the Closest Palindrome number | 2556 |
309 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 2547 |
310 | Set Matrix Zeroes Leetcode Solution | 2537 |
311 | Longest Common Subsequence | 2531 |
312 | Find the First and Second Smallest Elements | 2527 |
313 | House Robber | 2519 |
314 | Shortest Word Distance Leetcode Solution | 2513 |
315 | Find Duplicates in an Array in Most Efficient Way | 2506 |
316 | Alien Dictionary LeetCode Solution | 2494 |
317 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 2478 |
318 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 2477 |
319 | Find The Duplicate Number | 2473 |
320 | Partition Labels LeetCode Solution | 2472 |
321 | Painting Fence Algorithm | 2472 |
322 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 2465 |
323 | Pair of Positive Negative Values in an Array | 2463 |
324 | Find Top K (or Most Frequent) Numbers in a Stream | 2458 |
325 | Jump Game | 2458 |
326 | Tug of War | 2453 |
327 | Minimum operation to make all elements equal in array | 2446 |
328 | Single Number | 2437 |
329 | Invert Binary Tree LeetCode Solution | 2432 |
330 | Number of Smaller Elements on Right Side | 2428 |
331 | Construct Binary Tree from Given Inorder and Preorder Traversals | 2414 |
332 | Find minimum difference between any two elements | 2413 |
333 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 2400 |
334 | Longest subarray not having more than K distinct elements | 2398 |
335 | Sort Array By Parity II Leetcode Solution | 2393 |
336 | LRU Cache Leetcode Solution | 2387 |
337 | Mobile Numeric Keypad Problem | 2385 |
338 | Minimum Time Visiting All Points Leetcode Solution | 2383 |
339 | Largest Rectangle in Histogram LeetCode Solution | 2382 |
340 | Merge Two Sorted Linked Lists | 2382 |
341 | Remove Nth Node From End of List Leetcode Solution | 2381 |
342 | Maximal Square | 2379 |
343 | Round Robin Scheduling | 2378 |
344 | Common elements in all rows of a given matrix | 2376 |
345 | N-th Tribonacci Number Leetcode Solution | 2375 |
346 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 2370 |
347 | Rank Transform of an Array Leetcode Solution | 2369 |
348 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 2363 |
349 | Container With Most Water LeetCode Solution | 2355 |
350 | Clone Graph LeetCode Solution | 2352 |
351 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 2350 |
352 | Integer Break LeetCode Solution | 2347 |
353 | Reverse Bits | 2347 |
354 | Path With Maximum Minimum Value LeetCode Solution | 2345 |
355 | Minimum Depth of Binary Tree Leetcode Solution | 2344 |
356 | Combination Sum IV LeetCode Solution | 2343 |
357 | Reveal Cards In Increasing Order Leetcode Solution | 2341 |
358 | Least Number of Unique Integers after K Removals Leetcode Solution | 2338 |
359 | Check if a given array contains duplicate elements within k distance from each other | 2337 |
360 | First Circular Tour to Visit all the Petrol Bunks | 2337 |
361 | Find Maximum Level sum in Binary Tree | 2333 |
362 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 2333 |
363 | Find the subarray with least average | 2330 |
364 | Minimum Cost to Hire K Workers | 2330 |
365 | Unique Paths | 2320 |
366 | Longest subsequence such that difference between adjacents is one | 2318 |
367 | Design Browser History LeetCode Solution | 2317 |
368 | Binary Tree Inorder Traversal LeetCode Solution | 2314 |
369 | Minimize Maximum Pair Sum in Array LeetCode Solution | 2314 |
370 | Minimum Moves to Equal Array Elements Leetcode Solution | 2313 |
371 | Sort a stack using a temporary stack | 2312 |
372 | Next Permutation LeetCode Solution | 2308 |
373 | Number of Closed Islands Leetcode Solution | 2305 |
374 | Find the Smallest Divisor given a Threshold Leetcode Solution | 2298 |
375 | Find the Peak Element from an Array | 2296 |
376 | Last Stone Weight II LeetCode Solution | 2295 |
377 | Remove Invalid Parentheses Leetcode Solution | 2294 |
378 | Longest Common Prefix using Sorting | 2286 |
379 | Stone Game II Leetcode | 2283 |
380 | Range Sum Query 2D – Immutable Leetcode Solution | 2276 |
381 | Consecutive Characters LeetCode Solution | 2275 |
382 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 2274 |
383 | LRU Cache Implementation | 2268 |
384 | Remove All Ones With Row and Column Flips Leetcode Solution | 2265 |
385 | Permutation Sequence LeetCode Solution | 2264 |
386 | K Empty Slots LeetCode | 2264 |
387 | Move All the Zeros to the End of the Given Array | 2262 |
388 | Sliding Window Technique | 2259 |
389 | Missing Element in Sorted Array LeetCode Solution | 2257 |
390 | Find duplicates in a given array when elements are not limited to a range | 2257 |
391 | Graph Valid Tree LeetCode Solution | 2256 |
392 | Maximum Circular Subarray Sum | 2256 |
393 | String Matching in an Array Leetcode Solution | 2250 |
394 | Smallest Subarray with k Distinct Numbers | 2249 |
395 | Longest Common Prefix using Trie | 2241 |
396 | Max stack | 2232 |
397 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 2232 |
398 | Top View of Binary Tree | 2230 |
399 | Range Sum of BST LeetCode Solution | 2228 |
400 | Expression Contains Redundant Bracket or Not | 2223 |
401 | Dijkstra Algorithm | 2222 |
402 | Transpose Graph | 2216 |
403 | K Closest Points to Origin Leetcode Solution | 2211 |
404 | Find the Minimum Element in a Sorted and Rotated Array | 2209 |
405 | Maximum Number of Occurrences of a Substring Leetcode Solution | 2207 |
406 | Count Submatrices With All Ones LeetCode Solution | 2206 |
407 | Non-decreasing Array LeetCode Solution | 2206 |
408 | Decompress Run-Length Encoded List Leetcode Solution | 2205 |
409 | Maximum Consecutive Numbers Present in an Array | 2203 |
410 | Sorting array using Stacks | 2203 |
411 | Find a Fixed Point in a Given Array | 2200 |
412 | Queries for counts of array elements with values in given range | 2197 |
413 | Ugly Number II LeetCode Solution | 2196 |
414 | Sort elements by frequency | 2196 |
415 | Multiplication of Two Matrices | 2196 |
416 | Nth Catalan Number | 2193 |
417 | Number of Islands II LeetCode Solution | 2191 |
418 | Implementation of Deque using circular array | 2191 |
419 | Detect a loop in the Linked List | 2190 |
420 | Insert Interval Leetcode Solution | 2186 |
421 | Split Linked List in Parts Leetcode Solution | 2183 |
422 | Snakes and Ladders LeetCode Solution | 2181 |
423 | Vertical Order Traversal of Binary Tree LeetCode Solution | 2176 |
424 | Longest Increasing Path in a Matrix LeetCode Solution | 2175 |
425 | Hamming Distance Leetcode Solution | 2172 |
426 | Kth Non-repeating Character | 2171 |
427 | Given an Array of Pairs Find all Symmetric Pairs in it | 2165 |
428 | Binary Tree Maximum Path Sum LeetCode Solution | 2163 |
429 | How to Implement Stack Using Priority Queue or Heap? | 2163 |
430 | Reverse a linked list | 2153 |
431 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 2149 |
432 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 2146 |
433 | Integer to English words | 2144 |
434 | Number of Days Between Two Dates LeetCode Solution | 2143 |
435 | Guess Number Higher or Lower II | 2143 |
436 | Path Sum II LeetCode Solution | 2136 |
437 | Priority Queue using doubly linked list | 2131 |
438 | Merge Two Binary Trees LeetCode Solution | 2128 |
439 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 2126 |
440 | Sequences of given length where every element is more than or equal to twice of previous | 2124 |
441 | Paint House LeetCode Solution | 2121 |
442 | Majority Element | 2121 |
443 | Insert Node in the Sorted Linked List | 2112 |
444 | Largest Subarray with Equal Number of 0’s and 1’s | 2111 |
445 | Shortest Completing Word Leetcode Solution | 2110 |
446 | Minimum Path Sum | 2110 |
447 | Minesweeper LeetCode Solution | 2108 |
448 | Queries for GCD of all numbers of an array except elements in a given range | 2107 |
449 | Kth Smallest Element in a BST Leetcode Solution | 2106 |
450 | Search a 2D Matrix II Leetcode Solution | 2102 |
451 | Restore IP Addresses Leetcode Solution | 2093 |
452 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 2089 |
453 | Invert Binary Tree LeetCode Solution | 2087 |
454 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 2075 |
455 | Contains Duplicate LeetCode Solution | 2074 |
456 | Minimum Absolute Difference in BST Leetcode Solution | 2073 |
457 | Iterative Method to find Height of Binary Tree | 2073 |
458 | Partition List Leetcode Solution | 2071 |
459 | Stack Permutations (Check if an array is stack permutation of other) | 2070 |
460 | Find a Peak Element II LeetCode Solution | 2069 |
461 | The Stock Span Problem | 2065 |
462 | Odd Even Linked List Leetcode Solution | 2064 |
463 | Best Time to Buy and Sell Stock | 2062 |
464 | Intersection of Two Linked Lists LeetCode Solution | 2056 |
465 | Flood Fill LeetCode | 2054 |
466 | Find All Possible Recipes from Given Supplies LeetCode Solution | 2051 |
467 | Word Search | 2051 |
468 | Unique Paths III LeetCode Solution | 2050 |
469 | Reorder Data in Log Files LeetCode Solution | 2048 |
470 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 2048 |
471 | Palindrome Substring Queries | 2048 |
472 | Find Median from Data Stream LeetCode Solution | 2047 |
473 | Pancake Sorting Problem | 2046 |
474 | Count subarrays having total distinct elements same as original array | 2045 |
475 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 2044 |
476 | Is Graph Bipartite? LeetCode Solution | 2041 |
477 | Gold Mine Problem | 2041 |
478 | Letter Case Permutation | 2039 |
479 | Maximum Sum of Non Consecutive Elements | 2039 |
480 | Search in a Binary Search Tree Leetcode Solution | 2037 |
481 | Longest Common Prefix using Divide and Conquer | 2037 |
482 | Priority Queue in C++ | 2034 |
483 | Race Car LeetCode Solution | 2033 |
484 | Number Complement Leetcode Solution | 2031 |
485 | Scramble String LeetCode Solution | 2030 |
486 | Rearrange array such that even positioned are greater than odd | 2030 |
487 | Generate all Binary Strings from Given Pattern | 2027 |
488 | Count Possible Triangles | 2025 |
489 | Reverse Nodes in k-Group LeetCode Solution | 2023 |
490 | The Maze III LeetCode Solution | 2023 |
491 | Design Hit Counter LeetCode Solution | 2018 |
492 | Implement Trie (Prefix Tree) Leetcode Solution | 2011 |
493 | Toeplitz Matrix | 2007 |
494 | Find Pythagorean Triplets from Array | 1993 |
495 | Convert BST to Min Heap | 1985 |
496 | Distance of nearest cell having 1 in a binary matrix | 1975 |
497 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 1974 |
498 | Cells with Odd Values in a Matrix LeetCode Solution | 1969 |
499 | Implement Two Stacks in an Array | 1969 |
500 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 1966 |
501 | Find the first Repeating Number in a Given Array | 1966 |
502 | Shortest Palindrome | 1963 |
503 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 1961 |
504 | Recursion | 1958 |
505 | Kth ancestor of a node in binary tree | 1957 |
506 | Kruskal Algorithm | 1953 |
507 | Print all Palindromic Partitions of a String | 1952 |
508 | Minimum Jumps to Reach Home LeetCode Solution | 1945 |
509 | Maximum Subarray | 1944 |
510 | Palindrome Permutation LeetCode Solution | 1940 |
511 | Evaluate Reverse Polish Notation LeetCode Solution | 1935 |
512 | Bitwise AND of Numbers Range LeetCode Solution | 1935 |
513 | Divide Chocolate LeetCode Solution | 1931 |
514 | Group Anagrams | 1931 |
515 | Minimum Bracket Reversals | 1930 |
516 | Trapping Rain Water LeetCode Solution | 1925 |
517 | Longest Repeated Subsequence | 1924 |
518 | Postfix to Prefix Conversion | 1924 |
519 | Validate Stack Sequences LeetCode Solution | 1923 |
520 | Interval Tree | 1923 |
521 | How to Create Mergable Stack? | 1922 |
522 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 1920 |
523 | Sieve of Eratosthenes | 1912 |
524 | Insert into a Binary Search Tree Leetcode Solution | 1911 |
525 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 1910 |
526 | Minimum Height Trees | 1910 |
527 | Tiling Problem | 1907 |
528 | Balanced Expression with Replacement | 1905 |
529 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 1896 |
530 | Maximum Length of Chain Pairs | 1894 |
531 | Jump Game IV LeetCode Solution | 1892 |
532 | Contains Duplicate | 1892 |
533 | LCS (Longest Common Subsequence) of three strings | 1885 |
534 | Maximum Element in an Array which is Increasing and then Decreasing | 1885 |
535 | Check If Array Pairs Are Divisible by k LeetCode Solution | 1881 |
536 | Different Ways to Add Parentheses Leetcode Solution | 1878 |
537 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 1877 |
538 | Coin Change Problem | 1876 |
539 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 1874 |
540 | Decode String | 1874 |
541 | N queen problem | 1870 |
542 | Sort an array according to the order defined by another array | 1869 |
543 | Recover Binary Search Tree Leetcode Solution | 1868 |
544 | Sorted Linked List to Balanced BST | 1867 |
545 | Champagne Tower LeetCode Solution | 1866 |
546 | Fibonacci numbers | 1866 |
547 | Merge Overlapping Intervals | 1862 |
548 | Find a Sorted Subsequence of size 3 | 1861 |
549 | High Five LeetCode Solution | 1858 |
550 | Find the Lost Element From a Duplicated Array | 1858 |
551 | Subarrays with K Different Integers Leetcode Solution | 1857 |
552 | Edit Distance LeetCode Solution | 1848 |
553 | Check if Two given Strings are Isomorphic to each other | 1841 |
554 | Decode Ways | 1837 |
555 | Build an Array With Stack Operations Leetcode Solution | 1836 |
556 | Spiral Matrix III LeetCode Solution | 1834 |
557 | Sort Colors | 1831 |
558 | Number of Distinct Islands Leetcode Solution | 1827 |
559 | Palindrome Permutations of a String | 1824 |
560 | Substring with Concatenation of All Words Leetcode Solution | 1823 |
561 | 4Sum | 1823 |
562 | Merge Overlapping Intervals II | 1822 |
563 | K-th Distinct Element in an Array | 1820 |
564 | Analyze User Website Visit Pattern LeetCode Solution | 1818 |
565 | Find if an Expression has Duplicate Parenthesis or Not | 1804 |
566 | Reorder an Array According to the Given Indexes | 1794 |
567 | Maximum Depth of N-ary Tree Leetcode Solution | 1791 |
568 | Sliding Window Median Leetcode Solution | 1790 |
569 | Swapping Nodes in a Linked List Leetcode Solution | 1790 |
570 | Queue based approach for first non-repeating character in a stream | 1790 |
571 | Subset sum problem | 1790 |
572 | Rectangle Overlap LeetCode Solution | 1789 |
573 | Largest rectangular sub-matrix whose sum is 0 | 1787 |
574 | Custom Sort String Leetcode Solution | 1786 |
575 | Find the Subarray of given length with Least Average | 1783 |
576 | Nearest Exit from Entrance in Maze LeetCode Solution | 1779 |
577 | Design a Stack With Increment Operation Leetcode Solution | 1779 |
578 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 1776 |
579 | Merge Two Balanced Binary Search Trees | 1768 |
580 | Possible Bipartition LeetCode Solution | 1766 |
581 | Sliding Window Maximum | 1764 |
582 | Monotonic Array Leetcode Solution | 1763 |
583 | Find Largest Value in Each Tree Row LeetCode Solution | 1762 |
584 | Number of Equivalent Domino Pairs Leetcode Solution | 1761 |
585 | Detect Capital Leetcode Solution | 1757 |
586 | Camelcase Matching Leetcode Solution | 1754 |
587 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 1752 |
588 | Maximum sum rectangle in a 2D matrix | 1752 |
589 | Caesar Cipher | 1749 |
590 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 1747 |
591 | Find maximum length Snake sequence | 1747 |
592 | First missing positive | 1745 |
593 | Palindromic Substrings Leetcode Solution | 1738 |
594 | Minimum Height Trees LeetCode Solution | 1735 |
595 | Maximize Elements Using Another Array | 1725 |
596 | Most Stones Removed with Same Row or Column LeetCode Solution | 1723 |
597 | Shifting Letters LeetCode Solution | 1723 |
598 | Find Maximum of Minimum for Every Window Size in a Given Array | 1723 |
599 | Maximum Product of Splitted Binary Tree LeetCode Solution | 1720 |
600 | Valid Boomerang Leetcode Solution | 1719 |
601 | Check if a Linked list of Strings form a Palindrome | 1719 |
602 | Distance Between Bus Stops Leetcode Solution | 1712 |
603 | Sliding Window Maximum LeetCode Solution | 1709 |
604 | Palindrome Partitioning Leetcode Solution | 1706 |
605 | Best Meeting Point LeetCode Solution | 1705 |
606 | 3 Sum | 1705 |
607 | Sort a stack using recursion | 1704 |
608 | Sort a String According to Another String | 1701 |
609 | Contiguous Array LeetCode Solution | 1690 |
610 | Word Break | 1690 |
611 | Pair with given product | 1688 |
612 | A Space Optimized DP solution for 0-1 Knapsack Problem | 1687 |
613 | How to Efficiently Implement k Stacks in a Single Array? | 1687 |
614 | Brick Wall LeetCode Solution | 1685 |
615 | Maximum Frequency Stack Leetcode Solution | 1685 |
616 | Web Crawler LeetCode Solution | 1678 |
617 | Find all pairs (a, b) in an array such that a % b = k | 1677 |
618 | Populating Next Right Pointers in Each Node Leetcode Solution | 1675 |
619 | Minimum Sum Path in a Triangle | 1674 |
620 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 1674 |
621 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 1673 |
622 | Perfect Squares LeetCode Solution | 1671 |
623 | Palindrome Permutation | 1669 |
624 | Perform String Shifts Leetcode | 1669 |
625 | Number of palindromic paths in a matrix | 1668 |
626 | Merge K Sorted Arrays and Print Sorted Output | 1668 |
627 | Check if String Follows Order of Characters by a Pattern or not | 1667 |
628 | Find the First Circular Tour that visits all the Petrol Pumps | 1665 |
629 | Elements Appear more than N/K times in Array | 1663 |
630 | Partition Problem | 1662 |
631 | Binary Tree zigzag level order Traversal | 1657 |
632 | Rearrange Spaces Between Words Leetcode Solution | 1651 |
633 | Split Array Into Consecutive Subsequences | 1651 |
634 | Count pair with Given Sum | 1650 |
635 | Find Median from data Stream | 1646 |
636 | Find the Town Judge LeetCode Solution | 1645 |
637 | Convert Sorted List to Binary Search Tree | 1641 |
638 | Morris Traversal | 1637 |
639 | Valid Sudoku | 1637 |
640 | Queue using Stacks | 1624 |
641 | Valid Parentheses Leetcode Solution | 1616 |
642 | Special Positions in a Binary Matrix Leetcode Solution | 1616 |
643 | Add two numbers | 1614 |
644 | My Calendar I LeetCode Solution | 1612 |
645 | Sort 0s 1s and 2s in an Array | 1611 |
646 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 1608 |
647 | Construction of Longest Increasing Subsequence (N log N) | 1605 |
648 | Maximum Number of Ways to Partition an Array LeetCode Solution | 1603 |
649 | Maximum difference between two elements such as larger element comes after smaller | 1602 |
650 | Print Fibonacci sequence using 2 variables | 1601 |
651 | Huffman Coding | 1600 |
652 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 1599 |
653 | All Unique Triplets that Sum up to a Given Value | 1597 |
654 | Print all subarrays with 0 sum | 1594 |
655 | Finding K closest element | 1593 |
656 | Word Pattern | 1591 |
657 | Construct BST from its given Level Order Traversal | 1590 |
658 | Partition to K Equal Sum Subsets Leetcode Solution | 1589 |
659 | Longest Subarray Having Count of 1s One More than Count of 0s | 1587 |
660 | Nested List Weight Sum II LeetCode Solution | 1584 |
661 | Remove Palindromic Subsequences Leetcode Solution | 1584 |
662 | Count items common to both the lists but with different prices | 1583 |
663 | Mean of Array After Removing Some Elements Leetcode Solution | 1581 |
664 | Reach a Number LeetCode Solution | 1580 |
665 | All Possible Full Binary Trees LeetCode Solution | 1579 |
666 | Reorder Array Using Given Indexes | 1579 |
667 | Count ways to reach the nth stair using step 1, 2 or 3 | 1578 |
668 | Remove brackets from an algebraic string containing + and – operators | 1576 |
669 | Largest Sum Contiguous Subarray | 1575 |
670 | Recover Binary Search Tree | 1575 |
671 | Difference Array | Range update query in O(1) | 1570 |
672 | Find whether a subarray is in form of a mountain or not | 1570 |
673 | Rearrange an Array Such that arr[i] is equal to i | 1569 |
674 | Minimum number of jumps to reach end | 1568 |
675 | Swap Kth Node from beginning with Kth Node from End | 1568 |
676 | Smallest Good Base | 1565 |
677 | Merge K Sorted Linked Lists | 1554 |
678 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 1549 |
679 | Level order Traversal in Spiral Form | 1547 |
680 | Populating Next Right Pointers in Each Node | 1547 |
681 | Find All Pairs With a Given Difference | 1547 |
682 | Count Distinct Elements in Every Window of Size K | 1546 |
683 | MiniMax Algorithm | 1546 |
684 | Check if any two intervals overlap among a given set of intervals | 1537 |
685 | Count Minimum Steps to Get the given Array | 1536 |
686 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 1535 |
687 | Length of Longest Fibonacci Subsequence | 1534 |
688 | Maximum Product Subarray II | 1533 |
689 | Concatenation of Array LeetCode Solution | 1528 |
690 | Maximum Distance in Array | 1525 |
691 | Find four elements that sum to a given value (Hashmap) | 1524 |
692 | Minimum Distance Between BST Nodes Leetcode Solution | 1523 |
693 | Minimum time required to rot all oranges | 1523 |
694 | Find Duplicate Subtrees | 1519 |
695 | Construct BST from given Preorder Traversal | 1518 |
696 | Increasing Subsequence of Length three with Maximum Product | 1516 |
697 | Segregate 0s and 1s in an Array | 1510 |
698 | Linked List Cycle | 1508 |
699 | Bubble sort using two Stacks | 1506 |
700 | Count Sub Islands LeetCode Solution | 1503 |
701 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 1503 |
702 | Check for Balanced Parentheses in an Expression | 1503 |
703 | Counting Bits | 1502 |
704 | Validate Binary Search Tree | 1502 |
705 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 1501 |
706 | Flatten 2D Vector LeetCode Solution | 1499 |
707 | Check if Two Expressions With Brackets are Same | 1496 |
708 | Design Skiplist LeetCode Solution | 1485 |
709 | Fibonacci Number LeetCode Solution | 1484 |
710 | An Interesting Method to generate Binary Numbers from 1 to n | 1483 |
711 | Best Time to Buy and Sell Stock IV LeetCode Solution | 1476 |
712 | Binary Tree to Binary Search Tree Conversion | 1465 |
713 | Implement strStr() LeetCode Solution | 1464 |
714 | Find all triplets with zero sum | 1461 |
715 | Maximize Sum of Array after K Negations Leetcode Solution | 1459 |
716 | K maximum sums of overlapping contiguous sub-arrays | 1459 |
717 | Isomorphic Strings LeetCode Solution | 1456 |
718 | Smallest Range II Leetcode Solution | 1456 |
719 | Heap Sort | 1456 |
720 | Sorting a K Sorted Array | 1453 |
721 | Longest Common Prefix Using Binary Search II | 1451 |
722 | Binary Tree Right Side View LeetCode Solution | 1447 |
723 | Queue Reconstruction by Height | 1446 |
724 | Range Sum Query 2D – Immutable LeetCode Solution | 1443 |
725 | Inorder Successor of a node in Binary Tree | 1440 |
726 | Merge Two Sorted Lists Leetcode | 1433 |
727 | String comparison containing wildcards | 1433 |
728 | Delete Nth node from the end of the given linked list | 1427 |
729 | Find subarray with given sum (Handles Negative Numbers) | 1424 |
730 | Reverse Nodes in K-Group | 1423 |
731 | Union and Intersection of two Linked Lists | 1421 |
732 | Sum Root to Leaf Numbers LeetCode Solution | 1420 |
733 | Container with Most Water | 1418 |
734 | Symmetric Tree | 1410 |
735 | Contiguous Array Leetcode | 1406 |
736 | Minimum Swaps to Make Strings Equal Leetcode Solution | 1405 |
737 | Root to Leaf path with target sum Leetcode Solutions | 1401 |
738 | Climbing stairs | 1397 |
739 | Print a Binary Tree in Vertical Order | 1396 |
740 | Longest Common Prefix Word by Word Matching | 1393 |
741 | Vertical sum in a given binary tree | 1387 |
742 | Delete Nodes and Return Forest Leetcode Solution | 1383 |
743 | Longest Increasing Subsequence | 1382 |
744 | Merging Intervals | 1382 |
745 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 1380 |
746 | Kill Process LeetCode Solution | 1379 |
747 | Count pairs from two linked lists whose sum is equal to a given value | 1379 |
748 | Valid Parenthesis String | 1373 |
749 | Alien Dictionary | 1373 |
750 | Find K Closest Elements LeetCode Solution | 1372 |
751 | Happy Number | 1371 |
752 | Parallel Courses II LeetCode Solution | 1370 |
753 | Iterative Depth First Traversal of Graph | 1369 |
754 | Queries on Probability of Even or Odd Number in given Ranges | 1366 |
755 | Unique Binary Search Trees | 1365 |
756 | Substring With Concatenation Of All Words | 1364 |
757 | Score of Parenthesis LeetCode Solution | 1362 |
758 | Serialize and Deserialize Binary Tree LeetCode Solution | 1360 |
759 | Path Crossing Leetcode Solution | 1360 |
760 | Peak Index in a Mountain Array LeetCode Solution | 1359 |
761 | New 21 Game | 1357 |
762 | Check if a queue can be sorted into another queue using a stack | 1356 |
763 | Find Maximum Sum Possible Equal Sum of Three Stacks | 1355 |
764 | Breadth First Search (BFS) for a Graph | 1350 |
765 | Find pairs with given sum such that elements of pair are in different rows | 1349 |
766 | Median of Two Sorted Arrays | 1342 |
767 | Maximum size subarray sum equals k | 1338 |
768 | Construct Binary Tree from given Parent Array representation | 1335 |
769 | Range LCM Queries | 1334 |
770 | Tree Traversal (Preorder, Inorder & Postorder) | 1332 |
771 | Find Nth Node | 1324 |
772 | Find the Difference Leetcode Solution | 1323 |
773 | Find the largest multiple of 3 | 1321 |
774 | Minimum Size Subarray Sum | 1321 |
775 | Closest Leaf in a Binary Tree LeetCode Solution | 1319 |
776 | Maximum Score After Splitting a String Leetcode Solution | 1319 |
777 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 1318 |
778 | Remove duplicates from sorted array | 1317 |
779 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 1317 |
780 | Non-overlapping sum of two sets | 1316 |
781 | Rotate Array | 1316 |
782 | Find Sum of all unique sub-array sum for a given array | 1313 |
783 | Verify Preorder Serialization of a Binary Tree | 1313 |
784 | Matrix Chain Multiplication | 1311 |
785 | Boolean Parenthesization Problem | 1307 |
786 | Infix to Postfix | 1306 |
787 | Iterative Preorder Traversal | 1304 |
788 | Number of siblings of a given Node in n-ary Tree | 1304 |
789 | Print all triplets in sorted array that form AP | 1303 |
790 | Given a binary tree, how do you remove all the half nodes? | 1303 |
791 | Remove Duplicates from Sorted List II | 1303 |
792 | Find Element Using Binary Search in Sorted Array | 1303 |
793 | Find K Length Subarray of Maximum Average | 1300 |
794 | Find the first repeating element in an array of integers | 1298 |
795 | Count and Say | 1296 |
796 | Count Good Nodes in Binary Tree LeetCode Solution | 1292 |
797 | Maximum subsequence sum such that no three are consecutive | 1292 |
798 | Check Completeness of a Binary Tree LeetCode Solution | 1288 |
799 | Bold Words in String LeetCode Solution | 1282 |
800 | The Painter’s Partition Problem | 1279 |
801 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 1277 |
802 | Sort Array by Increasing Frequency Leetcode Solution | 1277 |
803 | Boundary Traversal of binary tree | 1277 |
804 | Partition Equal Subset Sum | 1273 |
805 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 1272 |
806 | Find Peak Element | 1271 |
807 | Reservoir Sampling | 1269 |
808 | Find distance between two nodes of a Binary Tree | 1268 |
809 | Maximum Product Subarray | 1268 |
810 | Friends Of Appropriate Ages LeetCode Solution | 1266 |
811 | Print All Distinct Elements of a Given Integer Array | 1263 |
812 | Hamming Distance | 1263 |
813 | Employee Importance LeetCode Solution | 1260 |
814 | Subset Sum Problem in O(sum) space | 1259 |
815 | Create Maximum Number | 1259 |
816 | Isomorphic Strings | 1258 |
817 | Longest Palindromic Subsequence | 1247 |
818 | Find Common Characters Leetcode Solution | 1244 |
819 | Products of ranges in an array | 1244 |
820 | Four Elements that Sum to Given | 1244 |
821 | Level order traversal using two Queues | 1240 |
822 | Valid Anagrams | 1237 |
823 | Transform a BST to Greater sum Tree | 1237 |
824 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 1235 |
825 | Flatten Binary Tree to Linked List LeetCode Solution | 1234 |
826 | Missing Number | 1234 |
827 | Largest BST Subtree LeetCode Solution | 1229 |
828 | Valid Number | 1228 |
829 | Third Maximum Number Leetcode Solution | 1226 |
830 | Distinct Subsequences | 1216 |
831 | Next Greater Element II LeetCode Solution | 1214 |
832 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 1211 |
833 | Largest divisible pairs subset | 1208 |
834 | Merge Two Sorted Arrays | 1206 |
835 | Palindrome Partitioning | 1204 |
836 | Defanging an IP Address LeetCode Solution | 1203 |
837 | Binary array after M range toggle operations | 1203 |
838 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 1202 |
839 | Find minimum number of merge operations to make an array palindrome | 1201 |
840 | Sort Elements by Frequency II | 1199 |
841 | Pancake Sorting | 1199 |
842 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 1198 |
843 | Count number of triplets with product equal to given number | 1192 |
844 | Super Ugly Number | 1188 |
845 | Unique Binary Search Trees LeetCode Solution | 1187 |
846 | Maximum Sum of 3 Non-Overlapping Subarrays | 1187 |
847 | BFS vs DFS for Binary Tree | 1186 |
848 | Diameter of N-Ary Tree LeetCode Solution | 1185 |
849 | Level of Each node in a Tree from source node | 1183 |
850 | Number Of Longest Increasing Subsequence | 1177 |
851 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 1174 |
852 | Next Greater Element in an Array | 1173 |
853 | Integer to Roman | 1172 |
854 | Valid Triangle Number LeetCode Solution | 1171 |
855 | Kth Smallest Number in Multiplication Table Leetcode Solution | 1164 |
856 | Check if two nodes are on the same path in a Tree | 1164 |
857 | Averages of Levels in Binary Tree | 1163 |
858 | Deletion in a Binary Tree | 1161 |
859 | Maximum number of segments of lengths a, b and c | 1160 |
860 | Path Sum | 1159 |
861 | Maximum Population Year LeetCode Solution | 1158 |
862 | Permutations of a Given String Using STL | 1158 |
863 | Array Nesting Leetcode Solution | 1157 |
864 | Trapping Rain Water II LeetCode Solution | 1155 |
865 | Largest Submatrix With Rearrangements LeetCode Solution | 1155 |
866 | Maximum difference between first and last indexes of an element in array | 1155 |
867 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 1153 |
868 | Shuffle an Array | 1153 |
869 | Reorganize String | 1143 |
870 | Find Smallest Range Containing Elements from k Lists | 1142 |
871 | Valid Triangle Number LeetCode Solution | 1141 |
872 | Insert Delete GetRandom | 1140 |
873 | Closest Binary Search Tree Value Leetcode Solution | 1137 |
874 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 1133 |
875 | Topological Sorting | 1129 |
876 | Sentence Screen Fitting LeetCode Solution | 1127 |
877 | Encoded String With Shortest Length LeetCode Solution | 1123 |
878 | Stone Game IV LeetCode Solution | 1121 |
879 | Binary Search Tree Search and Insertion | 1121 |
880 | Find Largest d in Array such that a + b + c = d | 1117 |
881 | Count the Pairs at Same Distance as in English Alphabets | 1116 |
882 | Merging Two Sorted Arrays | 1116 |
883 | Largest subarray with equal number of 0s and 1s | 1112 |
884 | Newman-Conway Sequence | 1111 |
885 | Find Minimum In Rotated Sorted Array | 1110 |
886 | Binary Search Tree Delete Operation | 1108 |
887 | Reverse a Path in BST using Queue | 1107 |
888 | Find unique character in a string | 1103 |
889 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 1102 |
890 | Count Primes in Ranges | 1102 |
891 | Minimum sum of squares of character counts in a given string after removing k characters | 1102 |
892 | Print Right View of a Binary Tree | 1096 |
893 | Valid Tic-Tac-Toe State LeetCode Solution | 1094 |
894 | Iterative Postorder Traversal Using Two Stacks | 1094 |
895 | Contiguous Array | 1093 |
896 | Lowest Common Ancestor | 1092 |
897 | Arrange given numbers to form the biggest number | 1090 |
898 | Advantages of BST over Hash Table | 1086 |
899 | First Bad Version | 1085 |
900 | Red-Black Tree Introduction | 1084 |
901 | Valid Perfect Square LeetCode Solution | 1083 |
902 | Longest Substring Without Repeating Characters Leetcode Solution | 1082 |
903 | Lower Case To Upper Case | 1082 |
904 | Maximum Product Subarray | 1078 |
905 | Sorted Array to Balanced BST | 1075 |
906 | Stone Game IV LeetCode Solution | 1070 |
907 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 1069 |
908 | Longest Bitonic Subsequence | 1068 |
909 | Swap Nodes In Pairs | 1067 |
910 | Koko Eating Bananas LeetCode Solution | 1066 |
911 | Orderly Queue LeetCode Solution | 1066 |
912 | Arithmetic Slices II – Subsequence LeetCode Solution | 1065 |
913 | Balanced Binary Tree | 1065 |
914 | Serialize and Deserialize Binary Tree | 1062 |
915 | Diagonal Traversal of Binary Tree | 1061 |
916 | Minimum insertions to form a palindrome with permutations allowed | 1059 |
917 | Level Order Traversal of Binary Tree | 1059 |
918 | Friends Pairing Problem | 1058 |
919 | Largest Plus Sign Leetcode Solution | 1055 |
920 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 1050 |
921 | A program to check if a binary tree is BST or not | 1042 |
922 | Total Hamming Distance LeetCode Solution | 1041 |
923 | Check if all levels of two Binary Tree are anagrams or not | 1041 |
924 | Queries for Number of Distinct Elements in a Subarray | 1040 |
925 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 1039 |
926 | Find the smallest binary digit multiple of given number | 1039 |
927 | Construct Complete Binary Tree from its Linked List Representation | 1036 |
928 | Best Meeting Point LeetCode Solution | 1035 |
929 | Bottom View of a Binary Tree | 1034 |
930 | Height of a generic tree from parent array | 1033 |
931 | Longest Increasing Consecutive Subsequence | 1019 |
932 | Search in Sorted Rotated Array | 1018 |
933 | Dividing Array into Pairs With Sum Divisible by K | 1017 |
934 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 1016 |
935 | Edit Distance | 1014 |
936 | Guess The Word | 1013 |
937 | Maximum Sum Increasing Subsequence | 1011 |
938 | Maximum Product Subarray | 1010 |
939 | Range Sum Query using Sparse Table | 1009 |
940 | Find the node with minimum value in a Binary Search Tree | 1009 |
941 | Convert BST into a Min-Heap without using array | 1008 |
942 | Find postorder traversal of BST from preorder traversal | 1007 |
943 | Constant time range add operation on an array | 1007 |
944 | Design Add and Search Words Data Structure LeetCode Solution | 1005 |
945 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1005 |
946 | Print Next Greater Number of Q queries | 1002 |
947 | Check if an Array is Stack Sortable | 1001 |
948 | Shuffle a given Array | 1001 |
949 | The Number of Weak Characters in the Game LeetCode Solution | 999 |
950 | Greatest Sum Divisible by Three LeetCode Solution | 999 |
951 | Longest Common Prefix using Character by Character Matching | 998 |
952 | Print n terms of Newman-Conway Sequence | 994 |
953 | Print all Possible Ways to Break a String in Bracket Form | 989 |
954 | Next greater element | 986 |
955 | Write a function to get the intersection point of two Linked Lists | 982 |
956 | Queries on XOR of greatest odd divisor of the range | 981 |
957 | K’th Largest element in BST using constant extra space | 981 |
958 | Collect maximum points in a grid using two traversals | 981 |
959 | Print modified array after multiple array range increment operations | 980 |
960 | Group Shifted Strings Leetcode Solution | 977 |
961 | Insert into a Sorted Circular Linked List LeetCode Solution | 976 |
962 | Array Queries for multiply replacements and product | 974 |
963 | Find Maximum Depth of Nested Parenthesis in a String | 969 |
964 | Priority Queue | 968 |
965 | Design Underground System Leetcode Solution | 964 |
966 | Swim in Rising Water LeetCode Solution | 962 |
967 | K’th Largest Element in BST when modification to BST is not allowed | 961 |
968 | Segment Tree | 954 |
969 | Clone a Binary Tree with Random Pointers | 951 |
970 | Image Overlap LeetCode Solution | 947 |
971 | Merge Sort | 945 |
972 | Maximum Array from Two given Arrays Keeping Order Same | 941 |
973 | Power of Two | 941 |
974 | Count and Toggle Queries on a Binary Array | 940 |
975 | Excel Sheet Column Number LeetCode Solution | 939 |
976 | Moving Stones Until Consecutive Leetcode Solution | 939 |
977 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 936 |
978 | Binary Search Tree | 935 |
979 | Range Queries for Longest Correct Bracket Subsequence | 931 |
980 | Write Code to Determine if Two Trees are Identical | 928 |
981 | Numbers with prime frequencies greater than or equal to k | 928 |
982 | Form minimum number from given sequence | 923 |
983 | Decrease Elements To Make Array Zigzag LeetCode Solution | 912 |
984 | Check for Palindrome after every character replacement Query | 912 |
985 | Check if each internal node of a BST has exactly one child | 910 |
986 | Cutting a Rod | 908 |
987 | K Empty Slots | 904 |
988 | Form Minimum Number From Given Sequence | 902 |
989 | Number of elements less than or equal to a given number in a given subarray | 898 |
990 | Number of Orders in the Backlog Leetcode Solution | 896 |
991 | Count even length binary sequences with same sum of first and second half bits | 896 |
992 | Merge Sorted Array | 895 |
993 | Random Pick Index LeetCode Solution | 894 |
994 | Factorial Trailing Zeroes LeetCode Solution | 894 |
995 | Merge two BSTs with limited extra space | 893 |
996 | Check if X can give change to every person in the Queue | 890 |
997 | Lowest Common Ancestor in Binary Search Tree | 886 |
998 | Regular Expression Matching | 880 |
999 | Minimum Moves to Equal Array Elements LeetCode Solution | 878 |
1000 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 868 |
1001 | Kth Smallest Element in a BST | 868 |
1002 | Maximum weight transformation of a given string | 867 |
1003 | Shortest Unsorted Continuous Subarray LeetCode Solution | 866 |
1004 | Sum of Left Leaves LeetCode Solution | 864 |
1005 | How to print maximum number of A’s using given four keys | 864 |
1006 | Symmetric Tree LeetCode Solution Leetcode Solution | 862 |
1007 | Find maximum average subarray of k length | 855 |
1008 | Graph Cloning | 852 |
1009 | Count Pairs Whose Products Exist in Array | 848 |
1010 | Closest Binary Search Tree Value II LeetCode Solution | 842 |
1011 | Search an Element in Sorted Rotated Array | 841 |
1012 | Maximum Depth Of Binary Tree | 839 |
1013 | Queries for Decimal Values of Subarrays of a Binary Array | 838 |
1014 | Print Ancestors of a Given Binary Tree Node Without Recursion | 835 |
1015 | Unique Paths II | 834 |
1016 | Find k-th smallest element in BST (Order Statistics in BST) | 830 |
1017 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 819 |
1018 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 816 |
1019 | Maximum Binary Tree | 803 |
1020 | Check given array of size n can represent BST of n levels or not | 800 |
1021 | Excel Sheet Column Title LeetCode Solution | 781 |
1022 | Data Structure Designing | 781 |
1023 | Iterative method to find ancestors of a given binary tree | 767 |
1024 | Palindrome Partitioning | 750 |
1025 | Next Greater Element I Leetcode Solution | 726 |
1026 | Find the Town Judge LeetCode Solution | 722 |
1027 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 720 |
1028 | Binary Tree to Binary Search Tree Conversion using STL set | 713 |
1029 | Print Maximum Length Chain of Pairs | 706 |
1030 | Peeking Iterator LeetCode Solution | 679 |
1031 | Flatten Binary Tree to Linked List LeetCode Solution | 612 |