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 | 32554 |
2 | Maximum occurring character in a string | 17455 |
3 | Plus One Leetcode Solution | 16142 |
4 | Valid Parentheses LeetCode Solution | 15337 |
5 | 3Sum Leetcode Solution | 13003 |
6 | First Repeating Element | 12870 |
7 | Single Number Leetcode Solution | 11931 |
8 | Pow(x, n) Leetcode Solution | 11278 |
9 | Sqrt(x) Leetcode Solution | 10968 |
10 | Merge Sorted Arrays Leetcode Solution | 10689 |
11 | Meeting Rooms II LeetCode Solution | 10647 |
12 | Concatenation of Array LeetCode Solution | 10043 |
13 | Contains Duplicate II Leetcode Solution | 9746 |
14 | Roman to Integer Leetcode Solution | 9484 |
15 | Count Primes Leetcode Solutions | 9440 |
16 | Palindrome Number LeetCode Solution | 9331 |
17 | Search Insert Position Leetcode Solution | 9306 |
18 | Valid Palindrome Leetcode Solution | 9103 |
19 | Reverse Vowels of a String Leetcode Solution | 8972 |
20 | Jump Game Leetcode Solution | 8623 |
21 | Intersection of Two Arrays II Leetcode Solution | 8618 |
22 | Kids With the Greatest Number of Candies Leetcode Solution | 8450 |
23 | House Robber Leetcode Solution | 8377 |
24 | Spiral Matrix LeetCode Solution | 8350 |
25 | Text Justification LeetCode Solution | 8343 |
26 | Find the Maximum Repeating Number in Array | 8337 |
27 | Number of Good Pairs Leetcode Solution | 8294 |
28 | Add Binary Leetcode Solution | 8215 |
29 | Longest Substring Without Repeating Characters LeetCode Solution | 7850 |
30 | Longest Palindromic Substring LeetCode Solution | 7754 |
31 | Jewels and Stones Leetcode Solution | 7728 |
32 | Number Of 1 bits | 7724 |
33 | Power of Two Leetcode Solution | 7665 |
34 | Permutations Leetcode Solution | 7485 |
35 | Shuffle String Leetcode Solution | 7438 |
36 | Maximum Subarray Leetcode Solution | 7396 |
37 | Find All Numbers Disappeared in an Array Leetcode Solution | 7396 |
38 | Daily Temperatures Leetcode Solution | 7309 |
39 | Kth Missing Positive Number Leetcode Solution | 7217 |
40 | Maximum Profit in Job Scheduling Leetcode Solution | 7192 |
41 | Running Sum of 1d Array Leetcode Solution | 7175 |
42 | Min Stack Leetcode Solution | 7165 |
43 | Next Permutation Leetcode Solution | 7163 |
44 | Frog Jump Leetcode Solution | 7158 |
45 | Longest Common Prefix Leetcode Solution | 7092 |
46 | Number of Islands LeetCode Solution | 7006 |
47 | Third Maximum Number Leetcode Solution | 6970 |
48 | Move Zeroes LeetCode Solution | 6969 |
49 | Word Search Leetcode Solution | 6959 |
50 | Find Minimum Distance Between Two Numbers in an Array | 6958 |
51 | Rotate Image LeetCode Solution | 6787 |
52 | Combination Sum Leetcode Solution | 6740 |
53 | Bulb Switcher LeetCode Solution | 6731 |
54 | Next Greater Element I Leetcode Solution | 6676 |
55 | Shuffle the Array Leetcode Solution | 6634 |
56 | Median of Two Sorted Arrays LeetCode Solution | 6616 |
57 | 3Sum Closest LeetCode Solution | 6611 |
58 | Can Place Flowers LeetCode Solution | 6605 |
59 | Multiply Strings Leetcode Solution | 6547 |
60 | Search in Rotated Sorted Array Leetcode Solution | 6517 |
61 | House Robber II Leetcode Solution | 6515 |
62 | Reverse String Without Temporary Variable | 6515 |
63 | Remove Duplicates from Sorted Array Leetcode Solution | 6498 |
64 | Strobogrammatic Number LeetCode Solution | 6488 |
65 | Missing Number Leetcode Solution | 6440 |
66 | Count and Say Leetcode Solution | 6438 |
67 | Subarray and Subsequence | 6337 |
68 | Valid Anagram Leetcode Solution | 6316 |
69 | Excel Sheet Column Title Leetcode Solution | 6266 |
70 | Integer to Roman Leetcode Solution | 6264 |
71 | Count Pairs With Given Sum | 6219 |
72 | Koko Eating Bananas Leetcode Solution | 6136 |
73 | Product of array except self | 6081 |
74 | Isomorphic Strings Leetcode Solution | 6058 |
75 | Rotate String LeetCode Solution | 6057 |
76 | Evaluation of Postfix Expression | 6051 |
77 | String to Integer (atoi) LeetCode Solution | 6018 |
78 | Find the Difference Leetcode Solution | 5993 |
79 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 5939 |
80 | Largest Number Leetcode Solution | 5834 |
81 | Majority Element Leetcode Solution | 5777 |
82 | Candy LeetCode Solution | 5765 |
83 | Set Matrix Zeroes | 5749 |
84 | Find Common Characters Leetcode Solution | 5724 |
85 | Happy Number Leetcode Solution | 5721 |
86 | Balanced Binary Tree Leetcode Solution | 5704 |
87 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 5687 |
88 | Summary Ranges Leetcode Solution | 5624 |
89 | Smallest window in a string containing all characters of another string | 5573 |
90 | Is Subsequence Leetcode Solution | 5570 |
91 | Find the Town Judge Leetcode Solution | 5559 |
92 | Arranging Coins Leetcode Solution | 5543 |
93 | Word Pattern LeetCode Solution | 5525 |
94 | Sort Colors LeetCode Solution | 5470 |
95 | Unique Paths Leetcode Solution | 5469 |
96 | Rearrange Positive and Negative Numbers Alternatively in Array | 5456 |
97 | Subset Leetcode | 5394 |
98 | Asteroid Collision LeetCode Solution | 5301 |
99 | Repeated Substring Pattern LeetCode Solution | 5299 |
100 | String Compression LeetCode Solution | 5293 |
101 | Sort Characters By Frequency LeetCode Solution | 5288 |
102 | Linked List Cycle II LeetCode Solution | 5253 |
103 | Binary Search LeetCode Solution | 5247 |
104 | Sort Array By Parity LeetCode Solution | 5228 |
105 | Find the Winner of the Circular Game LeetCode Solution | 5216 |
106 | Find the Duplicate Number LeetCode Solution | 5202 |
107 | Reverse Integer Leetcode Solution | 5182 |
108 | Valid Palindrome II Leetcode Solution | 5160 |
109 | Sum of minimum and maximum elements of all subarrays of size k | 5114 |
110 | Product of Array Except Self LeetCode Solution | 5109 |
111 | Best Time to Buy and Sell Stock LeetCode Solution | 5095 |
112 | Zigzag Conversion LeetCode Solution | 5091 |
113 | Best Time to Buy and Sell Stock II Leetcode Solution | 5067 |
114 | Bus Routes Leetcode Solution | 5033 |
115 | Divide Two Integers Leetcode Solution | 5032 |
116 | A Product Array Puzzle | 4999 |
117 | Rabin Karp Algorithm | 4978 |
118 | Employee Free Time LeetCode Solution | 4977 |
119 | First element occurring k times in an array | 4931 |
120 | Group Anagrams LeetCode Solution | 4924 |
121 | Merge Two Sorted Lists Leetcode Solutions | 4915 |
122 | Expression Evaluation | 4903 |
123 | Pascal Triangle Leetcode | 4874 |
124 | Minimum Cost For Tickets Leetcode Solution | 4853 |
125 | Build Array From Permutation Leetcode Solution | 4837 |
126 | Postfix to Infix Conversion | 4786 |
127 | Optimal Account Balancing LeetCode Solution | 4757 |
128 | Minimum Steps to reach target by a Knight | 4757 |
129 | Number of Provinces Leetcode Solution | 4749 |
130 | Kth largest element in an Array Leetcode Solutions | 4738 |
131 | Increasing Triplet Subsequence LeetCode Solution | 4733 |
132 | Page Replacement Algorithms in Operating Systems | 4705 |
133 | Matrix Chain Multiplication using Dynamic Programming | 4704 |
134 | Assign Cookies Leetcode Solution | 4692 |
135 | Implementation of Deque using Doubly Linked List | 4685 |
136 | H-Index Leetcode Solution | 4668 |
137 | Fibonacci Number LeetCode Solution | 4664 |
138 | Length of Last Word Leetcode Solution | 4659 |
139 | Decode String Leetcode Solution | 4635 |
140 | Robot Room Cleaner Leetcode Solution | 4617 |
141 | Defanging an IP Address Leetcode Solution | 4610 |
142 | First Unique Character in a String LeetCode Solution | 4553 |
143 | Convert array into Zig-Zag fashion | 4537 |
144 | Subarray with Given Sum | 4515 |
145 | Remove Duplicates from Sorted Array II Leetcode Solution | 4501 |
146 | Find Smallest Missing Number in a Sorted Array | 4484 |
147 | Generate Parentheses Leetcode Solution | 4465 |
148 | Subarray Product Less Than K LeetCode Solution | 4440 |
149 | Length of the largest subarray with contiguous elements | 4431 |
150 | Check if the Elements of an Array are Consecutive | 4425 |
151 | K-th Smallest Element in a Sorted Matrix | 4420 |
152 | Prefix to Infix Conversion | 4417 |
153 | Swap Nodes in Pairs Leetcode Solutions | 4416 |
154 | Guess Number Higher or Lower LeetCode Solution | 4404 |
155 | Pascal’s Triangle II Leetcode Solution | 4388 |
156 | Bellman Ford Algorithm | 4374 |
157 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 4360 |
158 | Add Two Numbers II Leetcode Solution | 4356 |
159 | Reverse Words in a String III LeetCode Solution | 4334 |
160 | Find the Missing Number | 4333 |
161 | Coin Change 2 Leetcode Solution | 4330 |
162 | Last Stone Weight | 4317 |
163 | Island Perimeter Leetcode Solution | 4310 |
164 | Max Consecutive Ones Leetcode Solution | 4296 |
165 | Lemonade Change Leetcode Solution | 4283 |
166 | Form Minimum Number from Given Sequence of D’s and I’s | 4283 |
167 | Design Parking System Leetcode Solution | 4256 |
168 | Majority Element II Leetcode Solution | 4255 |
169 | Capacity To Ship Packages Within D Days Leetcode Solution | 4254 |
170 | First negative integer in every window of size k | 4244 |
171 | KMP Algorithm | 4241 |
172 | Remove Linked List Elements Leetcode Solution | 4210 |
173 | Combinations Leetcode Solution | 4210 |
174 | Find Pair with Given Difference | 4184 |
175 | Backspace String Compare | 4180 |
176 | String Compression | 4177 |
177 | Palindrome Linked List Leetcode Solution | 4165 |
178 | Trapping Rain Water Leetcode Solution | 4160 |
179 | Iterative Implementation of Quick Sort | 4160 |
180 | Find All Duplicates in an Array LeetCode Solution | 4151 |
181 | Remove Duplicates from Sorted List II LeetCode Solution | 4137 |
182 | OSI Model | 4137 |
183 | Delete middle element of a stack | 4127 |
184 | Repeated Substring Pattern | 4077 |
185 | Break a Palindrome LeetCode Solution | 4056 |
186 | Same Tree LeetCode Solution | 4047 |
187 | Word Ladder LeetCode Solution | 4037 |
188 | Remove All Occurrences of a Substring LeetCode Solution | 4036 |
189 | Slowest Key Leetcode Solution | 4036 |
190 | Monotonic Array LeetCode Solution | 4032 |
191 | Continuous Subarray Sum LeetCode Solution | 3971 |
192 | Merge Sorted Array LeetCode Solution | 3945 |
193 | Merge k Sorted Lists Leetcode Solution | 3943 |
194 | 01 Matrix LeetCode Solution | 3943 |
195 | Subarray Sum Equals K LeetCode Solution | 3931 |
196 | Number of Dice Rolls With Target Sum LeetCode Solution | 3912 |
197 | Convert a Number to Hexadecimal Leetcode Solution | 3910 |
198 | Find Peak Element LeetCode Solution | 3905 |
199 | Rearrange given Array in Maximum Minimum Form | 3903 |
200 | Second Most Repeated Word in a Sequence | 3886 |
201 | The K Weakest Rows in a Matrix Leetcode Solution | 3877 |
202 | Delete Node in a Linked List Leetcode Solution | 3860 |
203 | Time Based Key-Value Store LeetCode Solution | 3858 |
204 | Find N Unique Integers Sum up to Zero Leetcode Solution | 3847 |
205 | Kth Largest Element in a Stream Leetcode Solution | 3840 |
206 | Printing brackets in Matrix Chain Multiplication Problem | 3839 |
207 | Moving Average from Data Stream Leetcode Solution | 3828 |
208 | Find the Row with Maximum Number of 1’s | 3817 |
209 | Target Sum | 3813 |
210 | Leetcode Permutations | 3811 |
211 | Combination Sum | 3807 |
212 | Find the Duplicate Element | 3801 |
213 | Insert Delete GetRandom O(1) Leetcode Solution | 3800 |
214 | Valid Perfect Square Leetcode Solution | 3793 |
215 | Subarray Sum Equals k | 3792 |
216 | Single Element in a Sorted Array LeetCode Solution | 3777 |
217 | Rotate List Leetcode Solution | 3759 |
218 | Maximum Product of Three Numbers LeetCode Solution | 3758 |
219 | Longest Common Subsequence LeetCode Solution | 3757 |
220 | Max Area of Island | 3743 |
221 | Check If Two String Arrays are Equivalent Leetcode Solution | 3742 |
222 | Generate all Binary Strings Without Consecutive 1’s | 3738 |
223 | Palindrome Number | 3735 |
224 | Top K Frequent Elements LeetCode Solution | 3732 |
225 | Reverse Only Letters LeetCode Solution | 3721 |
226 | Make The String Great Leetcode Solution | 3710 |
227 | Cuckoo sequence program | 3704 |
228 | Minimum Knight Moves LeetCode Solution | 3694 |
229 | Relative Ranks Leetcode Solution | 3694 |
230 | Find Leaders in an Array | 3677 |
231 | Find Triplet in Array With a Given Sum | 3671 |
232 | Relative Sort Array Leetcode Solution | 3669 |
233 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 3668 |
234 | Prefix to Postfix Conversion | 3667 |
235 | Flipping an Image LeetCode Solution | 3651 |
236 | Scramble String | 3632 |
237 | Maximum Population Year LeetCode Solution | 3629 |
238 | Smallest Positive Number Missing in an Unsorted Array | 3624 |
239 | LRU Cache LeetCode Solution | 3618 |
240 | Letter Combinations of a Phone Number | 3614 |
241 | Unique Paths II Leetcode Solution | 3598 |
242 | Count Good Nodes in Binary Tree Leetcode Solution | 3596 |
243 | Permutation in String Leetcode Solution | 3595 |
244 | Check If N and Its Double Exist Leetcode Solution | 3579 |
245 | Stock Buy Sell to Maximize Profit | 3556 |
246 | Minimum swaps required to bring all elements less than or equal to k together | 3537 |
247 | Given two unsorted arrays find all pairs whose sum is x | 3534 |
248 | Maximum Subarray Sum using Divide and Conquer | 3534 |
249 | Search Suggestions System LeetCode Solution | 3530 |
250 | The kth Factor of n Leetcode Solution | 3526 |
251 | Minimum Operations to convert X to Y | 3526 |
252 | Remove Minimum Characters so that Two Strings Become Anagrams | 3526 |
253 | To Lower Case Leetcode Solution | 3509 |
254 | Top K Frequent Elements | 3505 |
255 | Sum of Subarray Ranges Leetcode Solution | 3477 |
256 | N-Queens LeetCode Solution | 3471 |
257 | Student Attendance Record I Leetcode Solution | 3464 |
258 | Maximize Distance to Closest Person LeetCode Solution | 3452 |
259 | Arithmetic Expression Evaluation | 3447 |
260 | Find the Number Occurring Odd Number of Times in an Array | 3443 |
261 | License Key Formatting Leetcode Solution | 3440 |
262 | Min Cost Climbing Stairs LeetCode Solution | 3436 |
263 | Top K Frequent Words LeetCode Solution | 3431 |
264 | Set Matrix Zeroes Leetcode Solution | 3431 |
265 | Remove Duplicates from Sorted List LeetCode Solution | 3418 |
266 | Maximum Sum Increasing Subsequence | 3402 |
267 | Reformat Date LeetCode Solution | 3399 |
268 | Arrange given Numbers to Form the Biggest Number II | 3338 |
269 | Next Permutation | 3336 |
270 | Most Frequent Element in an Array | 3322 |
271 | Design A Leaderboard Leetcode Solution | 3301 |
272 | Minimum Path Sum Leetcode Solution | 3300 |
273 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 3291 |
274 | Stone Game LeetCode | 3288 |
275 | Reverse individual words | 3285 |
276 | Diagonal Traverse LeetCode Solution | 3278 |
277 | Prim’s Algorithm | 3272 |
278 | Construct Binary Tree from Given Inorder and Preorder Traversals | 3269 |
279 | Count of index pairs with equal elements in an array | 3266 |
280 | Find any one of the multiple repeating elements in read only array | 3266 |
281 | Minimum Characters to be Added at Front to Make String Palindrome | 3262 |
282 | Spiral Matrix II Leetcode Solution | 3250 |
283 | Sort Elements by Frequency of Occurrences | 3247 |
284 | Container With Most Water LeetCode Solution | 3240 |
285 | Implement a stack using single queue | 3238 |
286 | Intersection of Two Arrays | 3237 |
287 | Find if Path Exists in Graph Leetcode Solution | 3235 |
288 | Evaluate Division | 3231 |
289 | BFS for Disconnected Graph | 3228 |
290 | Diagonal Traversal LeetCode Solution | 3225 |
291 | Find Words That Can Be Formed by Characters Leetcode Solution | 3195 |
292 | Min Stack | 3188 |
293 | Maximum Depth of Binary Tree Leetcode Solution | 3179 |
294 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 3167 |
295 | Count Number of Occurrences in a Sorted Array | 3166 |
296 | Length of Longest valid Substring | 3159 |
297 | Invalid Transactions LeetCode Solution | 3154 |
298 | Reverse words in a string | 3153 |
299 | Best Time to Buy and Sell Stock III Leetcode Solution | 3146 |
300 | Least Number of Unique Integers after K Removals Leetcode Solution | 3143 |
301 | Minimum number of Merge Operations to make an Array Palindrome | 3143 |
302 | Robot Bounded In Circle LeetCode Solution | 3138 |
303 | House Robber | 3135 |
304 | Longest Common Subsequence | 3109 |
305 | Special Positions in a Binary Matrix Leetcode Solution | 3105 |
306 | Maximum Size Subarray Sum Equals k Leetcode Solution | 3103 |
307 | Find The Duplicate Number | 3096 |
308 | Symmetric Tree Leetcode Solution | 3085 |
309 | Brightest Position on Street LeetCode Solution | 3079 |
310 | Remove Nth Node From End of List Leetcode Solution | 3066 |
311 | Last Stone Weight II LeetCode Solution | 3062 |
312 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3052 |
313 | The Celebrity Problem | 3046 |
314 | Single Number | 3038 |
315 | Find Leaves of Binary Tree LeetCode Solution | 3037 |
316 | Next Greater Element III LeetCode Solution | 3021 |
317 | Partition Labels LeetCode Solution | 3019 |
318 | Alien Dictionary LeetCode Solution | 3015 |
319 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3012 |
320 | Shortest Word Distance Leetcode Solution | 3008 |
321 | One Edit Distance LeetCode Solution | 3004 |
322 | Invert Binary Tree LeetCode Solution | 3002 |
323 | Contains Duplicate LeetCode Solution | 3000 |
324 | Find the Closest Palindrome number | 2995 |
325 | Check whether Strings are K Distance Apart or Not | 2991 |
326 | Sudoku Solver | 2990 |
327 | Reveal Cards In Increasing Order Leetcode Solution | 2969 |
328 | N-th Tribonacci Number Leetcode Solution | 2966 |
329 | Binary Tree Inorder Traversal LeetCode Solution | 2964 |
330 | Range Sum Query 2D – Immutable Leetcode Solution | 2947 |
331 | Count of Triplets With Sum Less than Given Value | 2943 |
332 | Pair of Positive Negative Values in an Array | 2938 |
333 | Mobile Numeric Keypad Problem | 2928 |
334 | Find Duplicates in an Array in Most Efficient Way | 2928 |
335 | Next Permutation LeetCode Solution | 2924 |
336 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 2924 |
337 | Jump Game | 2924 |
338 | Remove All Ones With Row and Column Flips Leetcode Solution | 2906 |
339 | Remove Invalid Parentheses Leetcode Solution | 2905 |
340 | Minimum operation to make all elements equal in array | 2902 |
341 | Clone Graph LeetCode Solution | 2896 |
342 | Sort Array By Parity II Leetcode Solution | 2895 |
343 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 2894 |
344 | Painting Fence Algorithm | 2893 |
345 | Round Robin Scheduling | 2878 |
346 | Reverse Bits | 2866 |
347 | Largest Rectangle in Histogram LeetCode Solution | 2865 |
348 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 2864 |
349 | Find the First and Second Smallest Elements | 2858 |
350 | Find Top K (or Most Frequent) Numbers in a Stream | 2850 |
351 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 2849 |
352 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 2848 |
353 | Combination Sum IV LeetCode Solution | 2847 |
354 | Rank Transform of an Array Leetcode Solution | 2838 |
355 | Tug of War | 2838 |
356 | Minimum Time Visiting All Points Leetcode Solution | 2835 |
357 | Merge Two Sorted Linked Lists | 2833 |
358 | Number of Smaller Elements on Right Side | 2817 |
359 | Maximal Square | 2811 |
360 | Find minimum difference between any two elements | 2810 |
361 | Find the subarray with least average | 2806 |
362 | Check if a given array contains duplicate elements within k distance from each other | 2804 |
363 | Minimum Moves to Equal Array Elements Leetcode Solution | 2800 |
364 | Longest subarray not having more than K distinct elements | 2799 |
365 | Longest subsequence such that difference between adjacents is one | 2795 |
366 | K Empty Slots LeetCode | 2789 |
367 | Unique Paths | 2788 |
368 | Range Sum of BST LeetCode Solution | 2787 |
369 | Sort a stack using a temporary stack | 2785 |
370 | Maximum Number of Occurrences of a Substring Leetcode Solution | 2780 |
371 | LRU Cache Leetcode Solution | 2779 |
372 | Path With Maximum Minimum Value LeetCode Solution | 2778 |
373 | Design Browser History LeetCode Solution | 2775 |
374 | Minimum Depth of Binary Tree Leetcode Solution | 2775 |
375 | LRU Cache Implementation | 2774 |
376 | Find the Smallest Divisor given a Threshold Leetcode Solution | 2772 |
377 | String Matching in an Array Leetcode Solution | 2767 |
378 | Reverse Nodes in k-Group LeetCode Solution | 2764 |
379 | Missing Element in Sorted Array LeetCode Solution | 2764 |
380 | Integer Break LeetCode Solution | 2761 |
381 | Bitwise AND of Numbers Range LeetCode Solution | 2752 |
382 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 2752 |
383 | Sliding Window Technique | 2751 |
384 | Ugly Number II LeetCode Solution | 2750 |
385 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 2745 |
386 | Paint House LeetCode Solution | 2744 |
387 | Minimum Cost to Hire K Workers | 2744 |
388 | Smallest Subarray with k Distinct Numbers | 2743 |
389 | Longest Common Prefix using Trie | 2741 |
390 | Minimize Maximum Pair Sum in Array LeetCode Solution | 2740 |
391 | Maximum Circular Subarray Sum | 2740 |
392 | First Circular Tour to Visit all the Petrol Bunks | 2738 |
393 | Graph Valid Tree LeetCode Solution | 2735 |
394 | Common elements in all rows of a given matrix | 2735 |
395 | Permutation Sequence LeetCode Solution | 2732 |
396 | Find Maximum Level sum in Binary Tree | 2727 |
397 | Non-decreasing Array LeetCode Solution | 2720 |
398 | Find the Peak Element from an Array | 2716 |
399 | Consecutive Characters LeetCode Solution | 2713 |
400 | Insert Interval Leetcode Solution | 2712 |
401 | Split Linked List in Parts Leetcode Solution | 2692 |
402 | Hamming Distance Leetcode Solution | 2692 |
403 | Number of Closed Islands Leetcode Solution | 2689 |
404 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 2688 |
405 | K Closest Points to Origin Leetcode Solution | 2683 |
406 | Find duplicates in a given array when elements are not limited to a range | 2679 |
407 | Queries for counts of array elements with values in given range | 2679 |
408 | Number of Islands II LeetCode Solution | 2678 |
409 | Transpose Graph | 2676 |
410 | Minesweeper LeetCode Solution | 2672 |
411 | Given an Array of Pairs Find all Symmetric Pairs in it | 2672 |
412 | Invert Binary Tree LeetCode Solution | 2658 |
413 | Unique Paths III LeetCode Solution | 2647 |
414 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 2647 |
415 | Priority Queue using doubly linked list | 2646 |
416 | Stone Game II Leetcode | 2641 |
417 | Dijkstra Algorithm | 2641 |
418 | Sort elements by frequency | 2640 |
419 | Implementation of Deque using circular array | 2638 |
420 | Move All the Zeros to the End of the Given Array | 2637 |
421 | Max stack | 2625 |
422 | Maximum Consecutive Numbers Present in an Array | 2617 |
423 | Decompress Run-Length Encoded List Leetcode Solution | 2616 |
424 | Longest Common Prefix using Sorting | 2612 |
425 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 2609 |
426 | Is Graph Bipartite? LeetCode Solution | 2601 |
427 | Snakes and Ladders LeetCode Solution | 2601 |
428 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 2598 |
429 | Stack Permutations (Check if an array is stack permutation of other) | 2597 |
430 | Binary Tree Maximum Path Sum LeetCode Solution | 2594 |
431 | Top View of Binary Tree | 2593 |
432 | Odd Even Linked List Leetcode Solution | 2592 |
433 | Expression Contains Redundant Bracket or Not | 2592 |
434 | Sorting array using Stacks | 2590 |
435 | Nth Catalan Number | 2588 |
436 | Count Submatrices With All Ones LeetCode Solution | 2584 |
437 | Partition List Leetcode Solution | 2583 |
438 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 2576 |
439 | Word Search | 2570 |
440 | Kth Smallest Element in a BST Leetcode Solution | 2566 |
441 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 2564 |
442 | Path Sum II LeetCode Solution | 2560 |
443 | Priority Queue in C++ | 2559 |
444 | Reverse a linked list | 2555 |
445 | Restore IP Addresses Leetcode Solution | 2552 |
446 | Number of Days Between Two Dates LeetCode Solution | 2539 |
447 | Find a Peak Element II LeetCode Solution | 2536 |
448 | Integer to English words | 2533 |
449 | Validate Stack Sequences LeetCode Solution | 2528 |
450 | Kth Non-repeating Character | 2528 |
451 | Longest Increasing Path in a Matrix LeetCode Solution | 2527 |
452 | Vertical Order Traversal of Binary Tree LeetCode Solution | 2522 |
453 | How to Implement Stack Using Priority Queue or Heap? | 2522 |
454 | Find a Fixed Point in a Given Array | 2517 |
455 | Multiplication of Two Matrices | 2513 |
456 | Sequences of given length where every element is more than or equal to twice of previous | 2512 |
457 | Rearrange array such that even positioned are greater than odd | 2508 |
458 | Flood Fill LeetCode | 2507 |
459 | Cells with Odd Values in a Matrix LeetCode Solution | 2501 |
460 | Queries for GCD of all numbers of an array except elements in a given range | 2501 |
461 | Gold Mine Problem | 2501 |
462 | Toeplitz Matrix | 2501 |
463 | Palindrome Substring Queries | 2500 |
464 | Reorder Data in Log Files LeetCode Solution | 2499 |
465 | Find All Possible Recipes from Given Supplies LeetCode Solution | 2493 |
466 | Search a 2D Matrix II Leetcode Solution | 2492 |
467 | Maximum Subarray | 2487 |
468 | Number Complement Leetcode Solution | 2486 |
469 | Minimum Absolute Difference in BST Leetcode Solution | 2482 |
470 | Shortest Completing Word Leetcode Solution | 2478 |
471 | Recursion | 2477 |
472 | Search in a Binary Search Tree Leetcode Solution | 2475 |
473 | Distance of nearest cell having 1 in a binary matrix | 2472 |
474 | Majority Element | 2472 |
475 | Intersection of Two Linked Lists LeetCode Solution | 2469 |
476 | Detect a loop in the Linked List | 2463 |
477 | Minimum Path Sum | 2462 |
478 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 2461 |
479 | Merge Two Binary Trees LeetCode Solution | 2452 |
480 | Find Median from Data Stream LeetCode Solution | 2447 |
481 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 2447 |
482 | Best Time to Buy and Sell Stock | 2443 |
483 | Scramble String LeetCode Solution | 2438 |
484 | Find the Minimum Element in a Sorted and Rotated Array | 2425 |
485 | High Five LeetCode Solution | 2424 |
486 | The Stock Span Problem | 2424 |
487 | Design Hit Counter LeetCode Solution | 2422 |
488 | Guess Number Higher or Lower II | 2422 |
489 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 2422 |
490 | Trapping Rain Water LeetCode Solution | 2422 |
491 | Insert Node in the Sorted Linked List | 2420 |
492 | Largest rectangular sub-matrix whose sum is 0 | 2419 |
493 | Check If Array Pairs Are Divisible by k LeetCode Solution | 2418 |
494 | Race Car LeetCode Solution | 2417 |
495 | Balanced Expression with Replacement | 2416 |
496 | Generate all Binary Strings from Given Pattern | 2416 |
497 | The Maze III LeetCode Solution | 2413 |
498 | Shortest Palindrome | 2409 |
499 | Tiling Problem | 2408 |
500 | Kruskal Algorithm | 2403 |
501 | Longest Common Prefix using Divide and Conquer | 2399 |
502 | Implement Trie (Prefix Tree) Leetcode Solution | 2397 |
503 | Divide Chocolate LeetCode Solution | 2391 |
504 | Letter Case Permutation | 2386 |
505 | Pancake Sorting Problem | 2386 |
506 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 2385 |
507 | Insert into a Binary Search Tree Leetcode Solution | 2385 |
508 | Camelcase Matching Leetcode Solution | 2383 |
509 | Largest Subarray with Equal Number of 0’s and 1’s | 2377 |
510 | Postfix to Prefix Conversion | 2376 |
511 | Print all Palindromic Partitions of a String | 2372 |
512 | Count subarrays having total distinct elements same as original array | 2368 |
513 | Evaluate Reverse Polish Notation LeetCode Solution | 2366 |
514 | Custom Sort String Leetcode Solution | 2366 |
515 | Convert BST to Min Heap | 2361 |
516 | Spiral Matrix III LeetCode Solution | 2359 |
517 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 2359 |
518 | Palindrome Permutation LeetCode Solution | 2357 |
519 | Substring with Concatenation of All Words Leetcode Solution | 2349 |
520 | Count Possible Triangles | 2348 |
521 | Sort Colors | 2345 |
522 | Interval Tree | 2343 |
523 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 2342 |
524 | LCS (Longest Common Subsequence) of three strings | 2340 |
525 | Find Pythagorean Triplets from Array | 2340 |
526 | Kth ancestor of a node in binary tree | 2338 |
527 | Analyze User Website Visit Pattern LeetCode Solution | 2331 |
528 | Merge Overlapping Intervals | 2331 |
529 | Sliding Window Maximum LeetCode Solution | 2330 |
530 | Check if Two given Strings are Isomorphic to each other | 2328 |
531 | Edit Distance LeetCode Solution | 2327 |
532 | Find the first Repeating Number in a Given Array | 2327 |
533 | Iterative Method to find Height of Binary Tree | 2325 |
534 | Sieve of Eratosthenes | 2324 |
535 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 2323 |
536 | Maximum Sum of Non Consecutive Elements | 2320 |
537 | Find a Sorted Subsequence of size 3 | 2310 |
538 | Longest Repeated Subsequence | 2307 |
539 | 4Sum | 2307 |
540 | Sliding Window Median Leetcode Solution | 2306 |
541 | Minimum Bracket Reversals | 2304 |
542 | Sort an array according to the order defined by another array | 2303 |
543 | Minimum Jumps to Reach Home LeetCode Solution | 2301 |
544 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 2301 |
545 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2292 |
546 | Implement Two Stacks in an Array | 2292 |
547 | Maximum Length of Chain Pairs | 2292 |
548 | How to Create Mergable Stack? | 2290 |
549 | Fibonacci numbers | 2277 |
550 | Coin Change Problem | 2277 |
551 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 2267 |
552 | Group Anagrams | 2263 |
553 | Maximum Number of Ways to Partition an Array LeetCode Solution | 2261 |
554 | Decode String | 2261 |
555 | Find maximum length Snake sequence | 2257 |
556 | Perfect Squares LeetCode Solution | 2256 |
557 | Path Crossing Leetcode Solution | 2247 |
558 | Different Ways to Add Parentheses Leetcode Solution | 2246 |
559 | Maximum Element in an Array which is Increasing and then Decreasing | 2244 |
560 | Number of Distinct Islands Leetcode Solution | 2243 |
561 | K-th Distinct Element in an Array | 2242 |
562 | Minimum Height Trees | 2241 |
563 | Rectangle Overlap LeetCode Solution | 2237 |
564 | Find the Lost Element From a Duplicated Array | 2236 |
565 | Sorted Linked List to Balanced BST | 2234 |
566 | N queen problem | 2233 |
567 | Decode Ways | 2231 |
568 | Champagne Tower LeetCode Solution | 2230 |
569 | Build an Array With Stack Operations Leetcode Solution | 2229 |
570 | Recover Binary Search Tree Leetcode Solution | 2223 |
571 | Shifting Letters LeetCode Solution | 2221 |
572 | Contains Duplicate | 2210 |
573 | Most Stones Removed with Same Row or Column LeetCode Solution | 2209 |
574 | Nearest Exit from Entrance in Maze LeetCode Solution | 2209 |
575 | 3 Sum | 2205 |
576 | Jump Game IV LeetCode Solution | 2197 |
577 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 2191 |
578 | Possible Bipartition LeetCode Solution | 2189 |
579 | Find Largest Value in Each Tree Row LeetCode Solution | 2188 |
580 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 2188 |
581 | Contiguous Array LeetCode Solution | 2183 |
582 | Find if an Expression has Duplicate Parenthesis or Not | 2182 |
583 | Monotonic Array Leetcode Solution | 2176 |
584 | Detect Capital Leetcode Solution | 2173 |
585 | Number of Equivalent Domino Pairs Leetcode Solution | 2170 |
586 | Queue based approach for first non-repeating character in a stream | 2168 |
587 | Fibonacci Number LeetCode Solution | 2166 |
588 | Subarrays with K Different Integers Leetcode Solution | 2163 |
589 | Valid Boomerang Leetcode Solution | 2162 |
590 | Design a Stack With Increment Operation Leetcode Solution | 2161 |
591 | Maximum Frequency Stack Leetcode Solution | 2159 |
592 | Subset sum problem | 2159 |
593 | Sort a stack using recursion | 2158 |
594 | Count items common to both the lists but with different prices | 2157 |
595 | Palindrome Partitioning Leetcode Solution | 2150 |
596 | Palindrome Permutations of a String | 2148 |
597 | First missing positive | 2147 |
598 | Merge Overlapping Intervals II | 2146 |
599 | Sliding Window Maximum | 2143 |
600 | Find the Town Judge LeetCode Solution | 2137 |
601 | Palindromic Substrings Leetcode Solution | 2137 |
602 | Merge Two Balanced Binary Search Trees | 2129 |
603 | Distance Between Bus Stops Leetcode Solution | 2119 |
604 | Reorder an Array According to the Given Indexes | 2114 |
605 | Sort a String According to Another String | 2113 |
606 | Best Meeting Point LeetCode Solution | 2112 |
607 | Minimum Height Trees LeetCode Solution | 2109 |
608 | Swapping Nodes in a Linked List Leetcode Solution | 2108 |
609 | Rearrange Spaces Between Words Leetcode Solution | 2107 |
610 | Number of palindromic paths in a matrix | 2105 |
611 | Word Break | 2099 |
612 | Find the Subarray of given length with Least Average | 2097 |
613 | Maximum Depth of N-ary Tree Leetcode Solution | 2096 |
614 | Maximum sum rectangle in a 2D matrix | 2096 |
615 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2086 |
616 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2085 |
617 | Find Median from data Stream | 2074 |
618 | All Possible Full Binary Trees LeetCode Solution | 2073 |
619 | Merge K Sorted Arrays and Print Sorted Output | 2072 |
620 | Perform String Shifts Leetcode | 2071 |
621 | Maximum Score After Splitting a String Leetcode Solution | 2065 |
622 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2064 |
623 | Brick Wall LeetCode Solution | 2064 |
624 | Construction of Longest Increasing Subsequence (N log N) | 2054 |
625 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2054 |
626 | Valid Parentheses Leetcode Solution | 2052 |
627 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2052 |
628 | Reach a Number LeetCode Solution | 2051 |
629 | Find the First Circular Tour that visits all the Petrol Pumps | 2039 |
630 | Maximize Elements Using Another Array | 2037 |
631 | Morris Traversal | 2035 |
632 | Caesar Cipher | 2035 |
633 | Pair with given product | 2033 |
634 | Palindrome Permutation | 2022 |
635 | Word Pattern | 2022 |
636 | My Calendar I LeetCode Solution | 2017 |
637 | Queue using Stacks | 2015 |
638 | Mean of Array After Removing Some Elements Leetcode Solution | 2014 |
639 | Smallest Good Base | 2012 |
640 | Split Array Into Consecutive Subsequences | 2012 |
641 | Recover Binary Search Tree | 2006 |
642 | Convert Sorted List to Binary Search Tree | 2006 |
643 | Implement strStr() LeetCode Solution | 2004 |
644 | Populating Next Right Pointers in Each Node Leetcode Solution | 2002 |
645 | Check if a Linked list of Strings form a Palindrome | 2001 |
646 | Binary Tree zigzag level order Traversal | 1999 |
647 | How to Efficiently Implement k Stacks in a Single Array? | 1997 |
648 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 1994 |
649 | Valid Sudoku | 1993 |
650 | Minimum Sum Path in a Triangle | 1992 |
651 | Find all pairs (a, b) in an array such that a % b = k | 1989 |
652 | Minimum number of jumps to reach end | 1989 |
653 | Web Crawler LeetCode Solution | 1984 |
654 | Count pair with Given Sum | 1977 |
655 | Construct BST from its given Level Order Traversal | 1975 |
656 | Check if String Follows Order of Characters by a Pattern or not | 1975 |
657 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 1970 |
658 | Largest Sum Contiguous Subarray | 1962 |
659 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 1961 |
660 | Concatenation of Array LeetCode Solution | 1957 |
661 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 1954 |
662 | Print Fibonacci sequence using 2 variables | 1951 |
663 | Remove brackets from an algebraic string containing + and – operators | 1950 |
664 | Find Maximum of Minimum for Every Window Size in a Given Array | 1950 |
665 | Length of Longest Fibonacci Subsequence | 1947 |
666 | Add two numbers | 1942 |
667 | Minimum time required to rot all oranges | 1941 |
668 | Arithmetic Slices II – Subsequence LeetCode Solution | 1938 |
669 | Print all subarrays with 0 sum | 1936 |
670 | Count ways to reach the nth stair using step 1, 2 or 3 | 1932 |
671 | Binary Tree Right Side View LeetCode Solution | 1931 |
672 | Find whether a subarray is in form of a mountain or not | 1931 |
673 | Design Skiplist LeetCode Solution | 1927 |
674 | Longest Subarray Having Count of 1s One More than Count of 0s | 1924 |
675 | Partition to K Equal Sum Subsets Leetcode Solution | 1922 |
676 | Best Time to Buy and Sell Stock IV LeetCode Solution | 1917 |
677 | Finding K closest element | 1907 |
678 | Count Sub Islands LeetCode Solution | 1906 |
679 | Level order Traversal in Spiral Form | 1904 |
680 | Range Sum Query 2D – Immutable LeetCode Solution | 1901 |
681 | Huffman Coding | 1898 |
682 | Sort 0s 1s and 2s in an Array | 1898 |
683 | Partition Problem | 1892 |
684 | Populating Next Right Pointers in Each Node | 1891 |
685 | Elements Appear more than N/K times in Array | 1891 |
686 | Segregate 0s and 1s in an Array | 1889 |
687 | Swap Kth Node from beginning with Kth Node from End | 1888 |
688 | Isomorphic Strings LeetCode Solution | 1882 |
689 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 1881 |
690 | Construct BST from given Preorder Traversal | 1880 |
691 | Count Distinct Elements in Every Window of Size K | 1877 |
692 | All Unique Triplets that Sum up to a Given Value | 1875 |
693 | Find four elements that sum to a given value (Hashmap) | 1875 |
694 | Validate Binary Search Tree | 1867 |
695 | Difference Array | Range update query in O(1) | 1865 |
696 | Nested List Weight Sum II LeetCode Solution | 1862 |
697 | Remove Palindromic Subsequences Leetcode Solution | 1859 |
698 | Bubble sort using two Stacks | 1851 |
699 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 1850 |
700 | Find all triplets with zero sum | 1848 |
701 | Heap Sort | 1847 |
702 | Find All Pairs With a Given Difference | 1845 |
703 | Maximize Sum of Array after K Negations Leetcode Solution | 1844 |
704 | Check for Balanced Parentheses in an Expression | 1844 |
705 | Counting Bits | 1844 |
706 | Rearrange an Array Such that arr[i] is equal to i | 1841 |
707 | Reorder Array Using Given Indexes | 1828 |
708 | Maximum difference between two elements such as larger element comes after smaller | 1822 |
709 | MiniMax Algorithm | 1821 |
710 | Check if Two Expressions With Brackets are Same | 1816 |
711 | Maximum Distance in Array | 1815 |
712 | Minimum Distance Between BST Nodes Leetcode Solution | 1806 |
713 | Maximum Product Subarray II | 1804 |
714 | Binary Tree to Binary Search Tree Conversion | 1803 |
715 | Check if any two intervals overlap among a given set of intervals | 1802 |
716 | Find Duplicate Subtrees | 1802 |
717 | Increasing Subsequence of Length three with Maximum Product | 1802 |
718 | Root to Leaf path with target sum Leetcode Solutions | 1801 |
719 | Count Minimum Steps to Get the given Array | 1799 |
720 | Linked List Cycle | 1798 |
721 | Contiguous Array Leetcode | 1798 |
722 | Merge K Sorted Linked Lists | 1794 |
723 | String comparison containing wildcards | 1789 |
724 | Flatten 2D Vector LeetCode Solution | 1785 |
725 | Longest Increasing Subsequence | 1784 |
726 | Parallel Courses II LeetCode Solution | 1776 |
727 | Happy Number | 1770 |
728 | Merge Two Sorted Lists Leetcode | 1769 |
729 | Inorder Successor of a node in Binary Tree | 1767 |
730 | Container with Most Water | 1764 |
731 | An Interesting Method to generate Binary Numbers from 1 to n | 1763 |
732 | K maximum sums of overlapping contiguous sub-arrays | 1763 |
733 | Alien Dictionary | 1761 |
734 | Symmetric Tree | 1760 |
735 | Queue Reconstruction by Height | 1751 |
736 | Reverse Nodes in K-Group | 1751 |
737 | Longest Common Prefix Using Binary Search II | 1748 |
738 | Sum Root to Leaf Numbers LeetCode Solution | 1746 |
739 | Smallest Range II Leetcode Solution | 1736 |
740 | Delete Nodes and Return Forest Leetcode Solution | 1732 |
741 | Minimum Swaps to Make Strings Equal Leetcode Solution | 1731 |
742 | Delete Nth node from the end of the given linked list | 1730 |
743 | Queries on Probability of Even or Odd Number in given Ranges | 1729 |
744 | Rotate Array | 1727 |
745 | Find pairs with given sum such that elements of pair are in different rows | 1726 |
746 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 1725 |
747 | Find the first repeating element in an array of integers | 1725 |
748 | Score of Parenthesis LeetCode Solution | 1723 |
749 | Kill Process LeetCode Solution | 1721 |
750 | Count Good Nodes in Binary Tree LeetCode Solution | 1716 |
751 | Union and Intersection of two Linked Lists | 1714 |
752 | Print a Binary Tree in Vertical Order | 1713 |
753 | Merging Intervals | 1711 |
754 | Find subarray with given sum (Handles Negative Numbers) | 1706 |
755 | Longest Common Prefix Word by Word Matching | 1702 |
756 | Iterative Depth First Traversal of Graph | 1700 |
757 | Climbing stairs | 1698 |
758 | Peak Index in a Mountain Array LeetCode Solution | 1697 |
759 | Check if a queue can be sorted into another queue using a stack | 1694 |
760 | New 21 Game | 1691 |
761 | Count pairs from two linked lists whose sum is equal to a given value | 1686 |
762 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 1682 |
763 | Breadth First Search (BFS) for a Graph | 1678 |
764 | Maximum size subarray sum equals k | 1671 |
765 | Substring With Concatenation Of All Words | 1667 |
766 | Valid Parenthesis String | 1662 |
767 | Sort Array by Increasing Frequency Leetcode Solution | 1656 |
768 | Find the Difference Leetcode Solution | 1656 |
769 | Find K Closest Elements LeetCode Solution | 1655 |
770 | Sorting a K Sorted Array | 1654 |
771 | Range LCM Queries | 1649 |
772 | Minimum Size Subarray Sum | 1647 |
773 | Vertical sum in a given binary tree | 1645 |
774 | Find Maximum Sum Possible Equal Sum of Three Stacks | 1644 |
775 | Iterative Preorder Traversal | 1642 |
776 | Matrix Chain Multiplication | 1641 |
777 | Verify Preorder Serialization of a Binary Tree | 1641 |
778 | Friends Of Appropriate Ages LeetCode Solution | 1640 |
779 | Construct Binary Tree from given Parent Array representation | 1639 |
780 | Find Sum of all unique sub-array sum for a given array | 1634 |
781 | Remove duplicates from sorted array | 1632 |
782 | Find K Length Subarray of Maximum Average | 1629 |
783 | Reservoir Sampling | 1619 |
784 | Flatten Binary Tree to Linked List LeetCode Solution | 1610 |
785 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 1608 |
786 | Given a binary tree, how do you remove all the half nodes? | 1606 |
787 | Remove Duplicates from Sorted List II | 1606 |
788 | Defanging an IP Address LeetCode Solution | 1605 |
789 | Find the largest multiple of 3 | 1605 |
790 | Maximum Product Subarray | 1604 |
791 | Unique Binary Search Trees | 1603 |
792 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 1601 |
793 | Number of siblings of a given Node in n-ary Tree | 1600 |
794 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 1600 |
795 | Employee Importance LeetCode Solution | 1596 |
796 | Boolean Parenthesization Problem | 1595 |
797 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 1590 |
798 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 1590 |
799 | Boundary Traversal of binary tree | 1590 |
800 | The Painter’s Partition Problem | 1589 |
801 | Median of Two Sorted Arrays | 1589 |
802 | Non-overlapping sum of two sets | 1588 |
803 | Print All Distinct Elements of a Given Integer Array | 1586 |
804 | Valid Anagrams | 1584 |
805 | Closest Leaf in a Binary Tree LeetCode Solution | 1582 |
806 | Tree Traversal (Preorder, Inorder & Postorder) | 1578 |
807 | Check Completeness of a Binary Tree LeetCode Solution | 1577 |
808 | Print all triplets in sorted array that form AP | 1572 |
809 | Find Peak Element | 1569 |
810 | Partition Equal Subset Sum | 1567 |
811 | Distinct Subsequences | 1564 |
812 | Bold Words in String LeetCode Solution | 1559 |
813 | Products of ranges in an array | 1559 |
814 | Infix to Postfix | 1559 |
815 | Level of Each node in a Tree from source node | 1558 |
816 | Subset Sum Problem in O(sum) space | 1555 |
817 | Serialize and Deserialize Binary Tree LeetCode Solution | 1553 |
818 | Find Element Using Binary Search in Sorted Array | 1551 |
819 | Largest BST Subtree LeetCode Solution | 1550 |
820 | Count and Say | 1548 |
821 | Third Maximum Number Leetcode Solution | 1547 |
822 | Maximum subsequence sum such that no three are consecutive | 1547 |
823 | Find distance between two nodes of a Binary Tree | 1547 |
824 | Longest Palindromic Subsequence | 1538 |
825 | Count number of triplets with product equal to given number | 1535 |
826 | Create Maximum Number | 1533 |
827 | Largest divisible pairs subset | 1531 |
828 | Level order traversal using two Queues | 1528 |
829 | Find Nth Node | 1527 |
830 | Deletion in a Binary Tree | 1526 |
831 | Missing Number | 1526 |
832 | Hamming Distance | 1522 |
833 | Super Ugly Number | 1516 |
834 | Unique Binary Search Trees LeetCode Solution | 1513 |
835 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 1511 |
836 | Find Common Characters Leetcode Solution | 1511 |
837 | Four Elements that Sum to Given | 1511 |
838 | Array Nesting Leetcode Solution | 1508 |
839 | Palindrome Partitioning | 1507 |
840 | Pancake Sorting | 1503 |
841 | Largest Submatrix With Rearrangements LeetCode Solution | 1500 |
842 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 1498 |
843 | Valid Number | 1497 |
844 | Valid Triangle Number LeetCode Solution | 1496 |
845 | Isomorphic Strings | 1494 |
846 | Next Greater Element II LeetCode Solution | 1493 |
847 | Transform a BST to Greater sum Tree | 1490 |
848 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 1483 |
849 | Binary array after M range toggle operations | 1483 |
850 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 1481 |
851 | Sort Elements by Frequency II | 1481 |
852 | Lowest Common Ancestor | 1477 |
853 | BFS vs DFS for Binary Tree | 1475 |
854 | Maximum number of segments of lengths a, b and c | 1473 |
855 | Shuffle an Array | 1470 |
856 | Averages of Levels in Binary Tree | 1470 |
857 | Check if two nodes are on the same path in a Tree | 1467 |
858 | Insert Delete GetRandom | 1465 |
859 | Find Smallest Range Containing Elements from k Lists | 1463 |
860 | Number Of Longest Increasing Subsequence | 1462 |
861 | Next Greater Element in an Array | 1461 |
862 | Trapping Rain Water II LeetCode Solution | 1459 |
863 | Sentence Screen Fitting LeetCode Solution | 1459 |
864 | Minimum insertions to form a palindrome with permutations allowed | 1458 |
865 | Newman-Conway Sequence | 1458 |
866 | Maximum Sum of 3 Non-Overlapping Subarrays | 1454 |
867 | Integer to Roman | 1454 |
868 | Maximum Population Year LeetCode Solution | 1453 |
869 | Largest subarray with equal number of 0s and 1s | 1448 |
870 | Valid Triangle Number LeetCode Solution | 1446 |
871 | Path Sum | 1445 |
872 | Merge Two Sorted Arrays | 1445 |
873 | Closest Binary Search Tree Value Leetcode Solution | 1444 |
874 | Encoded String With Shortest Length LeetCode Solution | 1441 |
875 | Minimum sum of squares of character counts in a given string after removing k characters | 1439 |
876 | Height of a generic tree from parent array | 1432 |
877 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 1430 |
878 | Kth Smallest Number in Multiplication Table Leetcode Solution | 1429 |
879 | Balanced Binary Tree | 1429 |
880 | Stone Game IV LeetCode Solution | 1428 |
881 | Stone Game IV LeetCode Solution | 1426 |
882 | Find minimum number of merge operations to make an array palindrome | 1426 |
883 | Permutations of a Given String Using STL | 1426 |
884 | Topological Sorting | 1425 |
885 | Diameter of N-Ary Tree LeetCode Solution | 1418 |
886 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 1410 |
887 | Count Primes in Ranges | 1409 |
888 | First Bad Version | 1406 |
889 | Reorganize String | 1403 |
890 | Contiguous Array | 1399 |
891 | Merging Two Sorted Arrays | 1397 |
892 | Maximum difference between first and last indexes of an element in array | 1396 |
893 | Red-Black Tree Introduction | 1394 |
894 | Arrange given numbers to form the biggest number | 1394 |
895 | Iterative Postorder Traversal Using Two Stacks | 1389 |
896 | Find Minimum In Rotated Sorted Array | 1389 |
897 | Find Largest d in Array such that a + b + c = d | 1387 |
898 | Print Right View of a Binary Tree | 1386 |
899 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 1385 |
900 | Orderly Queue LeetCode Solution | 1374 |
901 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 1374 |
902 | Find unique character in a string | 1374 |
903 | Check if all levels of two Binary Tree are anagrams or not | 1372 |
904 | Friends Pairing Problem | 1368 |
905 | Total Hamming Distance LeetCode Solution | 1364 |
906 | Diagonal Traversal of Binary Tree | 1363 |
907 | Longest Bitonic Subsequence | 1363 |
908 | Lower Case To Upper Case | 1363 |
909 | Binary Search Tree Delete Operation | 1362 |
910 | Largest Plus Sign Leetcode Solution | 1359 |
911 | Valid Perfect Square LeetCode Solution | 1359 |
912 | Swap Nodes In Pairs | 1359 |
913 | Reverse a Path in BST using Queue | 1358 |
914 | Count the Pairs at Same Distance as in English Alphabets | 1358 |
915 | Bottom View of a Binary Tree | 1357 |
916 | Serialize and Deserialize Binary Tree | 1356 |
917 | Next greater element | 1353 |
918 | Binary Search Tree Search and Insertion | 1349 |
919 | Koko Eating Bananas LeetCode Solution | 1347 |
920 | Level Order Traversal of Binary Tree | 1345 |
921 | Best Meeting Point LeetCode Solution | 1340 |
922 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 1337 |
923 | Maximum Product Subarray | 1332 |
924 | Range Sum Query using Sparse Table | 1325 |
925 | Valid Tic-Tac-Toe State LeetCode Solution | 1323 |
926 | Longest Substring Without Repeating Characters Leetcode Solution | 1320 |
927 | Maximum Product Subarray | 1320 |
928 | Advantages of BST over Hash Table | 1319 |
929 | Edit Distance | 1309 |
930 | The Number of Weak Characters in the Game LeetCode Solution | 1305 |
931 | Convert BST into a Min-Heap without using array | 1304 |
932 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 1303 |
933 | A program to check if a binary tree is BST or not | 1298 |
934 | Segment Tree | 1298 |
935 | Shuffle a given Array | 1296 |
936 | Find the smallest binary digit multiple of given number | 1295 |
937 | Greatest Sum Divisible by Three LeetCode Solution | 1292 |
938 | Maximum Sum Increasing Subsequence | 1290 |
939 | Construct Complete Binary Tree from its Linked List Representation | 1288 |
940 | Group Shifted Strings Leetcode Solution | 1277 |
941 | Array Queries for multiply replacements and product | 1277 |
942 | Longest Increasing Consecutive Subsequence | 1277 |
943 | Priority Queue | 1277 |
944 | Dividing Array into Pairs With Sum Divisible by K | 1276 |
945 | Write a function to get the intersection point of two Linked Lists | 1274 |
946 | K’th Largest element in BST using constant extra space | 1271 |
947 | Sorted Array to Balanced BST | 1271 |
948 | Image Overlap LeetCode Solution | 1269 |
949 | Design Add and Search Words Data Structure LeetCode Solution | 1268 |
950 | Constant time range add operation on an array | 1268 |
951 | Design Underground System Leetcode Solution | 1266 |
952 | Find postorder traversal of BST from preorder traversal | 1258 |
953 | Collect maximum points in a grid using two traversals | 1254 |
954 | Print Next Greater Number of Q queries | 1254 |
955 | Range Queries for Longest Correct Bracket Subsequence | 1253 |
956 | Find the node with minimum value in a Binary Search Tree | 1245 |
957 | Print n terms of Newman-Conway Sequence | 1244 |
958 | Insert into a Sorted Circular Linked List LeetCode Solution | 1242 |
959 | Swim in Rising Water LeetCode Solution | 1238 |
960 | Guess The Word | 1238 |
961 | Check if an Array is Stack Sortable | 1236 |
962 | Excel Sheet Column Number LeetCode Solution | 1234 |
963 | Power of Two | 1233 |
964 | Factorial Trailing Zeroes LeetCode Solution | 1228 |
965 | Queries on XOR of greatest odd divisor of the range | 1228 |
966 | Queries for Number of Distinct Elements in a Subarray | 1227 |
967 | Clone a Binary Tree with Random Pointers | 1223 |
968 | Form Minimum Number From Given Sequence | 1222 |
969 | Print modified array after multiple array range increment operations | 1221 |
970 | Lowest Common Ancestor in Binary Search Tree | 1220 |
971 | Numbers with prime frequencies greater than or equal to k | 1215 |
972 | Maximum Array from Two given Arrays Keeping Order Same | 1213 |
973 | K’th Largest Element in BST when modification to BST is not allowed | 1212 |
974 | Merge Sort | 1208 |
975 | Longest Common Prefix using Character by Character Matching | 1207 |
976 | Search in Sorted Rotated Array | 1201 |
977 | Find Maximum Depth of Nested Parenthesis in a String | 1197 |
978 | Print all Possible Ways to Break a String in Bracket Form | 1197 |
979 | Moving Stones Until Consecutive Leetcode Solution | 1195 |
980 | Form minimum number from given sequence | 1192 |
981 | K Empty Slots | 1191 |
982 | Count and Toggle Queries on a Binary Array | 1188 |
983 | Merge Sorted Array | 1188 |
984 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1186 |
985 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1182 |
986 | Cutting a Rod | 1175 |
987 | Check for Palindrome after every character replacement Query | 1174 |
988 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1172 |
989 | Check if each internal node of a BST has exactly one child | 1168 |
990 | Write Code to Determine if Two Trees are Identical | 1161 |
991 | Number of elements less than or equal to a given number in a given subarray | 1161 |
992 | Binary Search Tree | 1157 |
993 | Number of Orders in the Backlog Leetcode Solution | 1156 |
994 | Count even length binary sequences with same sum of first and second half bits | 1153 |
995 | Check if X can give change to every person in the Queue | 1148 |
996 | Queries for Decimal Values of Subarrays of a Binary Array | 1143 |
997 | Closest Binary Search Tree Value II LeetCode Solution | 1136 |
998 | Minimum Moves to Equal Array Elements LeetCode Solution | 1133 |
999 | Unique Paths II | 1130 |
1000 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1125 |
1001 | Merge two BSTs with limited extra space | 1125 |
1002 | Find maximum average subarray of k length | 1122 |
1003 | Symmetric Tree LeetCode Solution Leetcode Solution | 1118 |
1004 | Regular Expression Matching | 1114 |
1005 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1108 |
1006 | Count Pairs Whose Products Exist in Array | 1107 |
1007 | How to print maximum number of A’s using given four keys | 1103 |
1008 | Maximum weight transformation of a given string | 1102 |
1009 | Random Pick Index LeetCode Solution | 1090 |
1010 | Graph Cloning | 1087 |
1011 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1081 |
1012 | Kth Smallest Element in a BST | 1080 |
1013 | Sum of Left Leaves LeetCode Solution | 1075 |
1014 | Maximum Depth Of Binary Tree | 1066 |
1015 | Excel Sheet Column Title LeetCode Solution | 1064 |
1016 | Search an Element in Sorted Rotated Array | 1048 |
1017 | Check given array of size n can represent BST of n levels or not | 1043 |
1018 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1041 |
1019 | Next Greater Element I Leetcode Solution | 1025 |
1020 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1025 |
1021 | Palindrome Partitioning | 1025 |
1022 | Maximum Binary Tree | 1018 |
1023 | Iterative method to find ancestors of a given binary tree | 1013 |
1024 | Find k-th smallest element in BST (Order Statistics in BST) | 1008 |
1025 | Data Structure Designing | 994 |
1026 | Find the Town Judge LeetCode Solution | 967 |
1027 | Binary Tree to Binary Search Tree Conversion using STL set | 964 |
1028 | Peeking Iterator LeetCode Solution | 926 |
1029 | Print Maximum Length Chain of Pairs | 924 |
1030 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 898 |
1031 | Flatten Binary Tree to Linked List LeetCode Solution | 895 |