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 | 42751 |
2 | Maximum occurring character in a string | 19471 |
3 | Plus One Leetcode Solution | 18812 |
4 | Valid Parentheses LeetCode Solution | 18737 |
5 | 3Sum Leetcode Solution | 16699 |
6 | First Repeating Element | 14861 |
7 | Merge Sorted Arrays Leetcode Solution | 14679 |
8 | Single Number Leetcode Solution | 14582 |
9 | Count Primes Leetcode Solutions | 14263 |
10 | Pow(x, n) Leetcode Solution | 13887 |
11 | Sqrt(x) Leetcode Solution | 13675 |
12 | Meeting Rooms II LeetCode Solution | 12864 |
13 | Concatenation of Array LeetCode Solution | 12453 |
14 | Roman to Integer Leetcode Solution | 11662 |
15 | Valid Palindrome Leetcode Solution | 11491 |
16 | Search Insert Position Leetcode Solution | 11489 |
17 | Contains Duplicate II Leetcode Solution | 11445 |
18 | Palindrome Number LeetCode Solution | 11301 |
19 | Jump Game Leetcode Solution | 10919 |
20 | Reverse Vowels of a String Leetcode Solution | 10905 |
21 | Remove Duplicates from Sorted Array Leetcode Solution | 10778 |
22 | Intersection of Two Arrays II Leetcode Solution | 10767 |
23 | Number of Good Pairs Leetcode Solution | 10662 |
24 | Longest Substring Without Repeating Characters LeetCode Solution | 10615 |
25 | Spiral Matrix LeetCode Solution | 10565 |
26 | Kids With the Greatest Number of Candies Leetcode Solution | 10520 |
27 | House Robber Leetcode Solution | 10414 |
28 | Add Binary Leetcode Solution | 10354 |
29 | Maximum Subarray Leetcode Solution | 10000 |
30 | Find the Maximum Repeating Number in Array | 9764 |
31 | Number Of 1 bits | 9742 |
32 | Text Justification LeetCode Solution | 9594 |
33 | Jewels and Stones Leetcode Solution | 9484 |
34 | Move Zeroes LeetCode Solution | 9396 |
35 | Power of Two Leetcode Solution | 9341 |
36 | Longest Palindromic Substring LeetCode Solution | 9324 |
37 | Min Stack Leetcode Solution | 9305 |
38 | Permutations Leetcode Solution | 9164 |
39 | Shuffle String Leetcode Solution | 9092 |
40 | Third Maximum Number Leetcode Solution | 9004 |
41 | Word Search Leetcode Solution | 8995 |
42 | Find All Numbers Disappeared in an Array Leetcode Solution | 8963 |
43 | Next Permutation Leetcode Solution | 8953 |
44 | Daily Temperatures Leetcode Solution | 8936 |
45 | Median of Two Sorted Arrays LeetCode Solution | 8895 |
46 | Search in Rotated Sorted Array Leetcode Solution | 8830 |
47 | Number of Islands LeetCode Solution | 8805 |
48 | Kth Missing Positive Number Leetcode Solution | 8736 |
49 | Maximum Profit in Job Scheduling Leetcode Solution | 8716 |
50 | Longest Common Prefix Leetcode Solution | 8697 |
51 | Evaluation of Postfix Expression | 8689 |
52 | Next Greater Element I Leetcode Solution | 8634 |
53 | Frog Jump Leetcode Solution | 8551 |
54 | Find Minimum Distance Between Two Numbers in an Array | 8399 |
55 | Running Sum of 1d Array Leetcode Solution | 8309 |
56 | Valid Anagram Leetcode Solution | 8283 |
57 | Rotate Image LeetCode Solution | 8270 |
58 | Multiply Strings Leetcode Solution | 8242 |
59 | Shuffle the Array Leetcode Solution | 8221 |
60 | Combination Sum Leetcode Solution | 8195 |
61 | Can Place Flowers LeetCode Solution | 8184 |
62 | 3Sum Closest LeetCode Solution | 8118 |
63 | House Robber II Leetcode Solution | 8112 |
64 | Bulb Switcher LeetCode Solution | 8110 |
65 | Count and Say Leetcode Solution | 8099 |
66 | Excel Sheet Column Title Leetcode Solution | 7881 |
67 | Koko Eating Bananas Leetcode Solution | 7846 |
68 | Isomorphic Strings Leetcode Solution | 7834 |
69 | Happy Number Leetcode Solution | 7811 |
70 | Subarray and Subsequence | 7800 |
71 | Best Time to Buy and Sell Stock LeetCode Solution | 7724 |
72 | Count Pairs With Given Sum | 7721 |
73 | Integer to Roman Leetcode Solution | 7701 |
74 | Missing Number Leetcode Solution | 7699 |
75 | Majority Element Leetcode Solution | 7691 |
76 | Product of array except self | 7680 |
77 | Strobogrammatic Number LeetCode Solution | 7634 |
78 | Rotate String LeetCode Solution | 7586 |
79 | Reverse String Without Temporary Variable | 7544 |
80 | Candy LeetCode Solution | 7536 |
81 | Is Subsequence Leetcode Solution | 7455 |
82 | Find the Difference Leetcode Solution | 7437 |
83 | Largest Number Leetcode Solution | 7350 |
84 | A Product Array Puzzle | 7334 |
85 | Find the Duplicate Number LeetCode Solution | 7317 |
86 | Find Common Characters Leetcode Solution | 7316 |
87 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7304 |
88 | Expression Evaluation | 7285 |
89 | Binary Search LeetCode Solution | 7257 |
90 | String to Integer (atoi) LeetCode Solution | 7231 |
91 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7214 |
92 | Subset Leetcode | 7133 |
93 | Set Matrix Zeroes | 7131 |
94 | Summary Ranges Leetcode Solution | 7094 |
95 | Rabin Karp Algorithm | 7010 |
96 | Sort Characters By Frequency LeetCode Solution | 7008 |
97 | Word Pattern LeetCode Solution | 6990 |
98 | Find the Town Judge Leetcode Solution | 6987 |
99 | Balanced Binary Tree Leetcode Solution | 6967 |
100 | Unique Paths Leetcode Solution | 6923 |
101 | Find the Winner of the Circular Game LeetCode Solution | 6893 |
102 | Arranging Coins Leetcode Solution | 6893 |
103 | String Compression LeetCode Solution | 6821 |
104 | Rearrange Positive and Negative Numbers Alternatively in Array | 6817 |
105 | Repeated Substring Pattern LeetCode Solution | 6726 |
106 | Asteroid Collision LeetCode Solution | 6716 |
107 | Group Anagrams LeetCode Solution | 6703 |
108 | Smallest window in a string containing all characters of another string | 6683 |
109 | Sort Colors LeetCode Solution | 6645 |
110 | Page Replacement Algorithms in Operating Systems | 6585 |
111 | Postfix to Infix Conversion | 6538 |
112 | Best Time to Buy and Sell Stock II Leetcode Solution | 6533 |
113 | Matrix Chain Multiplication using Dynamic Programming | 6521 |
114 | Sort Array By Parity LeetCode Solution | 6518 |
115 | Zigzag Conversion LeetCode Solution | 6467 |
116 | Divide Two Integers Leetcode Solution | 6445 |
117 | Valid Palindrome II Leetcode Solution | 6434 |
118 | Sum of minimum and maximum elements of all subarrays of size k | 6399 |
119 | Kth largest element in an Array Leetcode Solutions | 6358 |
120 | Generate Parentheses Leetcode Solution | 6350 |
121 | Product of Array Except Self LeetCode Solution | 6302 |
122 | Reverse Integer Leetcode Solution | 6294 |
123 | Assign Cookies Leetcode Solution | 6287 |
124 | Remove Duplicates from Sorted Array II Leetcode Solution | 6264 |
125 | Length of Last Word Leetcode Solution | 6208 |
126 | Bus Routes Leetcode Solution | 6203 |
127 | Merge Two Sorted Lists Leetcode Solutions | 6202 |
128 | Decode String Leetcode Solution | 6180 |
129 | Pascal Triangle Leetcode | 6175 |
130 | H-Index Leetcode Solution | 6174 |
131 | Number of Provinces Leetcode Solution | 6172 |
132 | Linked List Cycle II LeetCode Solution | 6112 |
133 | Convert array into Zig-Zag fashion | 6080 |
134 | Minimum Steps to reach target by a Knight | 6065 |
135 | Defanging an IP Address Leetcode Solution | 6052 |
136 | Optimal Account Balancing LeetCode Solution | 6034 |
137 | Employee Free Time LeetCode Solution | 6027 |
138 | Minimum Cost For Tickets Leetcode Solution | 6001 |
139 | Find the Row with Maximum Number of 1’s | 5992 |
140 | Prefix to Infix Conversion | 5939 |
141 | First element occurring k times in an array | 5930 |
142 | Pascal’s Triangle II Leetcode Solution | 5915 |
143 | Build Array From Permutation Leetcode Solution | 5900 |
144 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 5878 |
145 | Increasing Triplet Subsequence LeetCode Solution | 5864 |
146 | Implementation of Deque using Doubly Linked List | 5823 |
147 | Majority Element II Leetcode Solution | 5797 |
148 | Island Perimeter Leetcode Solution | 5786 |
149 | Robot Room Cleaner Leetcode Solution | 5775 |
150 | Bellman Ford Algorithm | 5766 |
151 | Merge Sorted Array LeetCode Solution | 5746 |
152 | Max Consecutive Ones Leetcode Solution | 5727 |
153 | Find Pair with Given Difference | 5707 |
154 | Check if the Elements of an Array are Consecutive | 5694 |
155 | Swap Nodes in Pairs Leetcode Solutions | 5692 |
156 | K-th Smallest Element in a Sorted Matrix | 5684 |
157 | Guess Number Higher or Lower LeetCode Solution | 5659 |
158 | Fibonacci Number LeetCode Solution | 5642 |
159 | OSI Model | 5631 |
160 | First negative integer in every window of size k | 5611 |
161 | KMP Algorithm | 5609 |
162 | Design Parking System Leetcode Solution | 5602 |
163 | Find the Missing Number | 5601 |
164 | Add Two Numbers II Leetcode Solution | 5580 |
165 | Subarray Sum Equals K LeetCode Solution | 5574 |
166 | Lemonade Change Leetcode Solution | 5554 |
167 | Delete middle element of a stack | 5553 |
168 | Set Matrix Zeroes Leetcode Solution | 5537 |
169 | Trapping Rain Water Leetcode Solution | 5527 |
170 | Coin Change 2 Leetcode Solution | 5525 |
171 | String Compression | 5515 |
172 | First Unique Character in a String LeetCode Solution | 5509 |
173 | Subarray Product Less Than K LeetCode Solution | 5503 |
174 | Length of the largest subarray with contiguous elements | 5499 |
175 | Find All Duplicates in an Array LeetCode Solution | 5478 |
176 | Last Stone Weight | 5476 |
177 | Word Ladder LeetCode Solution | 5474 |
178 | Capacity To Ship Packages Within D Days Leetcode Solution | 5468 |
179 | Palindrome Linked List Leetcode Solution | 5461 |
180 | Monotonic Array LeetCode Solution | 5460 |
181 | Subarray with Given Sum | 5425 |
182 | Find Smallest Missing Number in a Sorted Array | 5411 |
183 | Repeated Substring Pattern | 5399 |
184 | Form Minimum Number from Given Sequence of D’s and I’s | 5387 |
185 | Combinations Leetcode Solution | 5355 |
186 | Remove Duplicates from Sorted List II LeetCode Solution | 5340 |
187 | 01 Matrix LeetCode Solution | 5311 |
188 | Reverse Words in a String III LeetCode Solution | 5298 |
189 | Single Element in a Sorted Array LeetCode Solution | 5281 |
190 | Continuous Subarray Sum LeetCode Solution | 5278 |
191 | Valid Perfect Square Leetcode Solution | 5275 |
192 | Same Tree LeetCode Solution | 5271 |
193 | Iterative Implementation of Quick Sort | 5259 |
194 | Prefix to Postfix Conversion | 5216 |
195 | Break a Palindrome LeetCode Solution | 5192 |
196 | Remove Linked List Elements Leetcode Solution | 5177 |
197 | Merge k Sorted Lists Leetcode Solution | 5165 |
198 | Slowest Key Leetcode Solution | 5161 |
199 | Backspace String Compare | 5151 |
200 | Combination Sum | 5146 |
201 | Leetcode Permutations | 5137 |
202 | Relative Ranks Leetcode Solution | 5117 |
203 | Rotate List Leetcode Solution | 5074 |
204 | Maximum Product of Three Numbers LeetCode Solution | 5061 |
205 | Find the Duplicate Element | 5059 |
206 | The K Weakest Rows in a Matrix Leetcode Solution | 5057 |
207 | Top K Frequent Elements LeetCode Solution | 5048 |
208 | Find Peak Element LeetCode Solution | 5034 |
209 | Insert Delete GetRandom O(1) Leetcode Solution | 5018 |
210 | Container With Most Water LeetCode Solution | 5000 |
211 | Second Most Repeated Word in a Sequence | 4987 |
212 | Longest Common Subsequence LeetCode Solution | 4985 |
213 | Printing brackets in Matrix Chain Multiplication Problem | 4976 |
214 | Kth Largest Element in a Stream Leetcode Solution | 4960 |
215 | Cuckoo sequence program | 4944 |
216 | Palindrome Number | 4943 |
217 | Remove All Occurrences of a Substring LeetCode Solution | 4942 |
218 | Make The String Great Leetcode Solution | 4923 |
219 | Rearrange given Array in Maximum Minimum Form | 4910 |
220 | Relative Sort Array Leetcode Solution | 4899 |
221 | Subarray Sum Equals k | 4899 |
222 | Contains Duplicate LeetCode Solution | 4898 |
223 | Max Area of Island | 4890 |
224 | Permutation in String Leetcode Solution | 4889 |
225 | Unique Paths II Leetcode Solution | 4877 |
226 | Convert a Number to Hexadecimal Leetcode Solution | 4875 |
227 | Delete Node in a Linked List Leetcode Solution | 4850 |
228 | Generate all Binary Strings Without Consecutive 1’s | 4837 |
229 | Arithmetic Expression Evaluation | 4836 |
230 | Find Leaders in an Array | 4835 |
231 | Target Sum | 4831 |
232 | Check If Two String Arrays are Equivalent Leetcode Solution | 4824 |
233 | Time Based Key-Value Store LeetCode Solution | 4798 |
234 | N-Queens LeetCode Solution | 4795 |
235 | Moving Average from Data Stream Leetcode Solution | 4790 |
236 | Scramble String | 4768 |
237 | Count Good Nodes in Binary Tree Leetcode Solution | 4765 |
238 | Construct Binary Tree from Given Inorder and Preorder Traversals | 4756 |
239 | Given two unsorted arrays find all pairs whose sum is x | 4749 |
240 | Number of Dice Rolls With Target Sum LeetCode Solution | 4748 |
241 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4748 |
242 | Letter Combinations of a Phone Number | 4738 |
243 | Next Permutation | 4731 |
244 | LRU Cache LeetCode Solution | 4713 |
245 | Check If N and Its Double Exist Leetcode Solution | 4710 |
246 | Find Triplet in Array With a Given Sum | 4698 |
247 | Stone Game LeetCode | 4682 |
248 | Flipping an Image LeetCode Solution | 4658 |
249 | Minimum swaps required to bring all elements less than or equal to k together | 4643 |
250 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4640 |
251 | Prim’s Algorithm | 4639 |
252 | Reverse Only Letters LeetCode Solution | 4636 |
253 | Remove Minimum Characters so that Two Strings Become Anagrams | 4620 |
254 | Min Cost Climbing Stairs LeetCode Solution | 4608 |
255 | Find The Duplicate Number | 4600 |
256 | Stock Buy Sell to Maximize Profit | 4600 |
257 | Student Attendance Record I Leetcode Solution | 4584 |
258 | Minimum Knight Moves LeetCode Solution | 4578 |
259 | Top K Frequent Elements | 4569 |
260 | To Lower Case Leetcode Solution | 4543 |
261 | Minimum Operations to convert X to Y | 4521 |
262 | The kth Factor of n Leetcode Solution | 4510 |
263 | Smallest Positive Number Missing in an Unsorted Array | 4508 |
264 | Min Stack | 4507 |
265 | License Key Formatting Leetcode Solution | 4503 |
266 | Reverse words in a string | 4491 |
267 | Maximum Subarray Sum using Divide and Conquer | 4472 |
268 | Maximum Sum Increasing Subsequence | 4440 |
269 | Single Number | 4429 |
270 | Maximum Population Year LeetCode Solution | 4421 |
271 | Search Suggestions System LeetCode Solution | 4412 |
272 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4397 |
273 | Find the Number Occurring Odd Number of Times in an Array | 4389 |
274 | Sum of Subarray Ranges Leetcode Solution | 4378 |
275 | Reformat Date LeetCode Solution | 4377 |
276 | Find Words That Can Be Formed by Characters Leetcode Solution | 4375 |
277 | Top K Frequent Words LeetCode Solution | 4373 |
278 | Longest Common Subsequence | 4368 |
279 | Remove Nth Node From End of List Leetcode Solution | 4351 |
280 | Minimum Path Sum Leetcode Solution | 4326 |
281 | Maximum Depth of Binary Tree Leetcode Solution | 4297 |
282 | N-th Tribonacci Number Leetcode Solution | 4295 |
283 | Reveal Cards In Increasing Order Leetcode Solution | 4279 |
284 | Reverse individual words | 4278 |
285 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4269 |
286 | Intersection of Two Arrays | 4267 |
287 | BFS for Disconnected Graph | 4265 |
288 | Evaluate Division | 4240 |
289 | Last Stone Weight II LeetCode Solution | 4236 |
290 | Maximize Distance to Closest Person LeetCode Solution | 4231 |
291 | House Robber | 4230 |
292 | Minimum Characters to be Added at Front to Make String Palindrome | 4224 |
293 | Best Time to Buy and Sell Stock III Leetcode Solution | 4218 |
294 | Diagonal Traverse LeetCode Solution | 4214 |
295 | Remove Duplicates from Sorted List LeetCode Solution | 4213 |
296 | Find any one of the multiple repeating elements in read only array | 4209 |
297 | Count Number of Occurrences in a Sorted Array | 4183 |
298 | Count of index pairs with equal elements in an array | 4181 |
299 | Length of Longest valid Substring | 4180 |
300 | Design A Leaderboard Leetcode Solution | 4175 |
301 | Binary Tree Inorder Traversal LeetCode Solution | 4174 |
302 | Find if Path Exists in Graph Leetcode Solution | 4168 |
303 | Sort Elements by Frequency of Occurrences | 4159 |
304 | Most Frequent Element in an Array | 4149 |
305 | Minimum number of Merge Operations to make an Array Palindrome | 4131 |
306 | Implement a stack using single queue | 4115 |
307 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4110 |
308 | Range Sum Query 2D – Immutable Leetcode Solution | 4104 |
309 | Find the Closest Palindrome number | 4083 |
310 | Reverse Nodes in k-Group LeetCode Solution | 4079 |
311 | Brightest Position on Street LeetCode Solution | 4076 |
312 | Find Leaves of Binary Tree LeetCode Solution | 4069 |
313 | Mobile Numeric Keypad Problem | 4066 |
314 | Reverse Bits | 4044 |
315 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4043 |
316 | Remove All Ones With Row and Column Flips Leetcode Solution | 4036 |
317 | Spiral Matrix II Leetcode Solution | 4031 |
318 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4030 |
319 | Sudoku Solver | 4029 |
320 | Special Positions in a Binary Matrix Leetcode Solution | 4026 |
321 | Invalid Transactions LeetCode Solution | 4023 |
322 | Sort Array By Parity II Leetcode Solution | 4007 |
323 | Symmetric Tree Leetcode Solution | 4000 |
324 | Shortest Word Distance Leetcode Solution | 3999 |
325 | Paint House LeetCode Solution | 3983 |
326 | Arrange given Numbers to Form the Biggest Number II | 3972 |
327 | Diagonal Traversal LeetCode Solution | 3971 |
328 | One Edit Distance LeetCode Solution | 3967 |
329 | Maximum Subarray | 3951 |
330 | Find Duplicates in an Array in Most Efficient Way | 3946 |
331 | Split Linked List in Parts Leetcode Solution | 3943 |
332 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 3930 |
333 | Remove Invalid Parentheses Leetcode Solution | 3924 |
334 | Rank Transform of an Array Leetcode Solution | 3920 |
335 | Jump Game | 3915 |
336 | Largest Rectangle in Histogram LeetCode Solution | 3914 |
337 | Partition Labels LeetCode Solution | 3901 |
338 | Unique Paths | 3901 |
339 | Round Robin Scheduling | 3897 |
340 | Minimum Moves to Equal Array Elements Leetcode Solution | 3894 |
341 | Dijkstra Algorithm | 3888 |
342 | Alien Dictionary LeetCode Solution | 3881 |
343 | Hamming Distance Leetcode Solution | 3879 |
344 | Construct BST from its given Level Order Traversal | 3876 |
345 | Range Sum of BST LeetCode Solution | 3852 |
346 | Bitwise AND of Numbers Range LeetCode Solution | 3848 |
347 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 3847 |
348 | Maximal Square | 3846 |
349 | The Celebrity Problem | 3842 |
350 | Minimum operation to make all elements equal in array | 3841 |
351 | Least Number of Unique Integers after K Removals Leetcode Solution | 3835 |
352 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 3834 |
353 | Tug of War | 3834 |
354 | Minimum Depth of Binary Tree Leetcode Solution | 3829 |
355 | Next Permutation LeetCode Solution | 3824 |
356 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 3814 |
357 | String Matching in an Array Leetcode Solution | 3812 |
358 | Pair of Positive Negative Values in an Array | 3804 |
359 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 3798 |
360 | Maximum Circular Subarray Sum | 3796 |
361 | Merge Two Sorted Linked Lists | 3787 |
362 | Longest Common Prefix using Trie | 3787 |
363 | Check whether Strings are K Distance Apart or Not | 3786 |
364 | Smallest Subarray with k Distinct Numbers | 3778 |
365 | Given an Array of Pairs Find all Symmetric Pairs in it | 3775 |
366 | Transpose Graph | 3770 |
367 | Minimum Time Visiting All Points Leetcode Solution | 3768 |
368 | Minimum Cost to Hire K Workers | 3765 |
369 | K Empty Slots LeetCode | 3758 |
370 | Count of Triplets With Sum Less than Given Value | 3758 |
371 | Clone Graph LeetCode Solution | 3754 |
372 | Next Greater Element III LeetCode Solution | 3752 |
373 | Find minimum difference between any two elements | 3733 |
374 | Unique Paths III LeetCode Solution | 3730 |
375 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3727 |
376 | Sort a stack using a temporary stack | 3727 |
377 | Implementation of Deque using circular array | 3724 |
378 | Validate Stack Sequences LeetCode Solution | 3722 |
379 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3722 |
380 | Check if a given array contains duplicate elements within k distance from each other | 3721 |
381 | Robot Bounded In Circle LeetCode Solution | 3719 |
382 | Ugly Number II LeetCode Solution | 3715 |
383 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3710 |
384 | Postfix to Prefix Conversion | 3709 |
385 | Substring with Concatenation of All Words Leetcode Solution | 3706 |
386 | Invert Binary Tree LeetCode Solution | 3686 |
387 | Invert Binary Tree LeetCode Solution | 3684 |
388 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3680 |
389 | Non-decreasing Array LeetCode Solution | 3674 |
390 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3668 |
391 | Permutation Sequence LeetCode Solution | 3666 |
392 | Kruskal Algorithm | 3662 |
393 | Sliding Window Technique | 3660 |
394 | Recursion | 3659 |
395 | Design Browser History LeetCode Solution | 3650 |
396 | Graph Valid Tree LeetCode Solution | 3648 |
397 | Missing Element in Sorted Array LeetCode Solution | 3644 |
398 | Longest subarray not having more than K distinct elements | 3641 |
399 | LRU Cache Implementation | 3641 |
400 | Kth Smallest Element in a BST Leetcode Solution | 3637 |
401 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3635 |
402 | Find the subarray with least average | 3634 |
403 | Find duplicates in a given array when elements are not limited to a range | 3633 |
404 | Word Search | 3630 |
405 | Find the First and Second Smallest Elements | 3628 |
406 | Stack Permutations (Check if an array is stack permutation of other) | 3622 |
407 | Toeplitz Matrix | 3622 |
408 | Number of Islands II LeetCode Solution | 3621 |
409 | Path With Maximum Minimum Value LeetCode Solution | 3617 |
410 | Longest subsequence such that difference between adjacents is one | 3614 |
411 | Common elements in all rows of a given matrix | 3608 |
412 | Boolean Parenthesization Problem | 3607 |
413 | First Circular Tour to Visit all the Petrol Bunks | 3606 |
414 | Find Top K (or Most Frequent) Numbers in a Stream | 3603 |
415 | Stone Game II Leetcode | 3603 |
416 | Partition List Leetcode Solution | 3600 |
417 | K Closest Points to Origin Leetcode Solution | 3599 |
418 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3597 |
419 | Sequences of given length where every element is more than or equal to twice of previous | 3596 |
420 | Queries for counts of array elements with values in given range | 3595 |
421 | Find Maximum Level sum in Binary Tree | 3591 |
422 | Combination Sum IV LeetCode Solution | 3590 |
423 | Max stack | 3588 |
424 | Integer Break LeetCode Solution | 3581 |
425 | Number Complement Leetcode Solution | 3581 |
426 | Snakes and Ladders LeetCode Solution | 3577 |
427 | Number of Smaller Elements on Right Side | 3574 |
428 | 3 Sum | 3571 |
429 | Search a 2D Matrix II Leetcode Solution | 3564 |
430 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3553 |
431 | Painting Fence Algorithm | 3553 |
432 | Top View of Binary Tree | 3549 |
433 | Minesweeper LeetCode Solution | 3544 |
434 | Find the Peak Element from an Array | 3541 |
435 | Odd Even Linked List Leetcode Solution | 3539 |
436 | Nth Catalan Number | 3533 |
437 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3531 |
438 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3527 |
439 | LRU Cache Leetcode Solution | 3525 |
440 | Insert Interval Leetcode Solution | 3523 |
441 | Sort elements by frequency | 3523 |
442 | Priority Queue using doubly linked list | 3521 |
443 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3512 |
444 | Maximum Consecutive Numbers Present in an Array | 3510 |
445 | Rearrange array such that even positioned are greater than odd | 3509 |
446 | Check if Two given Strings are Isomorphic to each other | 3501 |
447 | Consecutive Characters LeetCode Solution | 3500 |
448 | Search in a Binary Search Tree Leetcode Solution | 3496 |
449 | Flood Fill LeetCode | 3487 |
450 | High Five LeetCode Solution | 3478 |
451 | Distance of nearest cell having 1 in a binary matrix | 3471 |
452 | Shortest Palindrome | 3463 |
453 | Sliding Window Maximum LeetCode Solution | 3452 |
454 | Expression Contains Redundant Bracket or Not | 3452 |
455 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3450 |
456 | Move All the Zeros to the End of the Given Array | 3442 |
457 | 4Sum | 3440 |
458 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3436 |
459 | Kth Non-repeating Character | 3433 |
460 | Minimum Absolute Difference in BST Leetcode Solution | 3432 |
461 | Number of Closed Islands Leetcode Solution | 3429 |
462 | Gold Mine Problem | 3426 |
463 | Insert into a Binary Search Tree Leetcode Solution | 3425 |
464 | Decompress Run-Length Encoded List Leetcode Solution | 3421 |
465 | Find a Peak Element II LeetCode Solution | 3418 |
466 | Tiling Problem | 3416 |
467 | Spiral Matrix III LeetCode Solution | 3412 |
468 | Fibonacci Number LeetCode Solution | 3409 |
469 | Integer to English words | 3407 |
470 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3405 |
471 | Queries for GCD of all numbers of an array except elements in a given range | 3404 |
472 | Count items common to both the lists but with different prices | 3399 |
473 | N queen problem | 3397 |
474 | Minimum Path Sum | 3394 |
475 | Restore IP Addresses Leetcode Solution | 3388 |
476 | Balanced Expression with Replacement | 3387 |
477 | Coin Change Problem | 3380 |
478 | Trapping Rain Water LeetCode Solution | 3378 |
479 | Evaluate Reverse Polish Notation LeetCode Solution | 3371 |
480 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3371 |
481 | Sorting array using Stacks | 3370 |
482 | Longest Common Prefix using Sorting | 3368 |
483 | Binary Tree Maximum Path Sum LeetCode Solution | 3363 |
484 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3359 |
485 | Sliding Window Median Leetcode Solution | 3353 |
486 | Sort an array according to the order defined by another array | 3343 |
487 | Majority Element | 3342 |
488 | Sort Colors | 3340 |
489 | Best Time to Buy and Sell Stock | 3337 |
490 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3331 |
491 | Palindrome Substring Queries | 3329 |
492 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3328 |
493 | Cells with Odd Values in a Matrix LeetCode Solution | 3328 |
494 | Find Pythagorean Triplets from Array | 3328 |
495 | Priority Queue in C++ | 3326 |
496 | Interval Tree | 3318 |
497 | Number of Days Between Two Dates LeetCode Solution | 3317 |
498 | The Stock Span Problem | 3308 |
499 | Reverse a linked list | 3308 |
500 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3300 |
501 | Path Sum II LeetCode Solution | 3293 |
502 | Is Graph Bipartite? LeetCode Solution | 3281 |
503 | Largest rectangular sub-matrix whose sum is 0 | 3273 |
504 | Camelcase Matching Leetcode Solution | 3272 |
505 | Pancake Sorting Problem | 3265 |
506 | Find Median from Data Stream LeetCode Solution | 3259 |
507 | Intersection of Two Linked Lists LeetCode Solution | 3259 |
508 | Subset sum problem | 3258 |
509 | Custom Sort String Leetcode Solution | 3256 |
510 | Different Ways to Add Parentheses Leetcode Solution | 3253 |
511 | Find the first Repeating Number in a Given Array | 3253 |
512 | Kth ancestor of a node in binary tree | 3252 |
513 | Queue using Stacks | 3251 |
514 | Sieve of Eratosthenes | 3251 |
515 | How to Implement Stack Using Priority Queue or Heap? | 3249 |
516 | Design Hit Counter LeetCode Solution | 3241 |
517 | Divide Chocolate LeetCode Solution | 3237 |
518 | Shortest Completing Word Leetcode Solution | 3235 |
519 | Multiplication of Two Matrices | 3232 |
520 | Analyze User Website Visit Pattern LeetCode Solution | 3229 |
521 | Longest Increasing Path in a Matrix LeetCode Solution | 3229 |
522 | Scramble String LeetCode Solution | 3218 |
523 | Fibonacci numbers | 3218 |
524 | Find a Fixed Point in a Given Array | 3212 |
525 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3208 |
526 | Count subarrays having total distinct elements same as original array | 3208 |
527 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3206 |
528 | Count Submatrices With All Ones LeetCode Solution | 3204 |
529 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3202 |
530 | Perfect Squares LeetCode Solution | 3193 |
531 | Detect a loop in the Linked List | 3192 |
532 | Group Anagrams | 3191 |
533 | Queue based approach for first non-repeating character in a stream | 3188 |
534 | Implement Trie (Prefix Tree) Leetcode Solution | 3176 |
535 | Path Crossing Leetcode Solution | 3174 |
536 | Monotonic Array Leetcode Solution | 3173 |
537 | Number of Distinct Islands Leetcode Solution | 3172 |
538 | Reorder Data in Log Files LeetCode Solution | 3167 |
539 | Minimum Height Trees | 3161 |
540 | Merge Overlapping Intervals | 3155 |
541 | Generate all Binary Strings from Given Pattern | 3155 |
542 | Valid Boomerang Leetcode Solution | 3152 |
543 | Champagne Tower LeetCode Solution | 3145 |
544 | Longest Common Prefix using Divide and Conquer | 3145 |
545 | Find the Lost Element From a Duplicated Array | 3143 |
546 | Construction of Longest Increasing Subsequence (N log N) | 3142 |
547 | How to Create Mergable Stack? | 3140 |
548 | Nearest Exit from Entrance in Maze LeetCode Solution | 3138 |
549 | Insert Node in the Sorted Linked List | 3135 |
550 | Maximum Sum of Non Consecutive Elements | 3130 |
551 | Decode Ways | 3127 |
552 | Sort a stack using recursion | 3121 |
553 | Shifting Letters LeetCode Solution | 3119 |
554 | Race Car LeetCode Solution | 3110 |
555 | First missing positive | 3107 |
556 | Find if an Expression has Duplicate Parenthesis or Not | 3104 |
557 | Palindrome Permutation LeetCode Solution | 3103 |
558 | Build an Array With Stack Operations Leetcode Solution | 3102 |
559 | Most Stones Removed with Same Row or Column LeetCode Solution | 3097 |
560 | Sliding Window Maximum | 3096 |
561 | Recover Binary Search Tree | 3095 |
562 | Count Possible Triangles | 3095 |
563 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3094 |
564 | Binary Tree zigzag level order Traversal | 3091 |
565 | LCS (Longest Common Subsequence) of three strings | 3089 |
566 | Smallest Good Base | 3088 |
567 | Find maximum length Snake sequence | 3087 |
568 | Merge Two Binary Trees LeetCode Solution | 3086 |
569 | Maximum Element in an Array which is Increasing and then Decreasing | 3086 |
570 | Find a Sorted Subsequence of size 3 | 3085 |
571 | Implement strStr() LeetCode Solution | 3081 |
572 | Decode String | 3080 |
573 | Morris Traversal | 3079 |
574 | Rectangle Overlap LeetCode Solution | 3077 |
575 | Number of Equivalent Domino Pairs Leetcode Solution | 3070 |
576 | Palindrome Partitioning Leetcode Solution | 3061 |
577 | Minimum Bracket Reversals | 3060 |
578 | Letter Case Permutation | 3060 |
579 | Print all Palindromic Partitions of a String | 3059 |
580 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3058 |
581 | Minimum Height Trees LeetCode Solution | 3057 |
582 | Recover Binary Search Tree Leetcode Solution | 3053 |
583 | Guess Number Higher or Lower II | 3046 |
584 | Largest Subarray with Equal Number of 0’s and 1’s | 3046 |
585 | Contiguous Array LeetCode Solution | 3045 |
586 | Distance Between Bus Stops Leetcode Solution | 3044 |
587 | Minimum number of jumps to reach end | 3043 |
588 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3037 |
589 | Longest Repeated Subsequence | 3030 |
590 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3027 |
591 | K-th Distinct Element in an Array | 3023 |
592 | All Possible Full Binary Trees LeetCode Solution | 3022 |
593 | Design a Stack With Increment Operation Leetcode Solution | 3021 |
594 | Maximum Length of Chain Pairs | 3020 |
595 | Find the Town Judge LeetCode Solution | 3017 |
596 | Maximum Depth of N-ary Tree Leetcode Solution | 3014 |
597 | Reorder an Array According to the Given Indexes | 3013 |
598 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 2997 |
599 | Design Skiplist LeetCode Solution | 2996 |
600 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 2996 |
601 | Mean of Array After Removing Some Elements Leetcode Solution | 2991 |
602 | Implement Two Stacks in an Array | 2990 |
603 | Subarrays with K Different Integers Leetcode Solution | 2985 |
604 | The Maze III LeetCode Solution | 2983 |
605 | Check for Balanced Parentheses in an Expression | 2981 |
606 | Jump Game IV LeetCode Solution | 2979 |
607 | Valid Parentheses Leetcode Solution | 2979 |
608 | Sort a String According to Another String | 2974 |
609 | Rearrange Spaces Between Words Leetcode Solution | 2971 |
610 | Maximize Elements Using Another Array | 2971 |
611 | Maximum sum rectangle in a 2D matrix | 2961 |
612 | Contains Duplicate | 2949 |
613 | Minimum Jumps to Reach Home LeetCode Solution | 2938 |
614 | Convert BST to Min Heap | 2928 |
615 | Count pair with Given Sum | 2926 |
616 | Word Break | 2920 |
617 | Palindrome Permutations of a String | 2915 |
618 | Perform String Shifts Leetcode | 2913 |
619 | Maximum Score After Splitting a String Leetcode Solution | 2904 |
620 | Iterative Method to find Height of Binary Tree | 2904 |
621 | Valid Sudoku | 2904 |
622 | Edit Distance LeetCode Solution | 2902 |
623 | Possible Bipartition LeetCode Solution | 2899 |
624 | Find the First Circular Tour that visits all the Petrol Pumps | 2899 |
625 | Find the Minimum Element in a Sorted and Rotated Array | 2891 |
626 | Maximum Product of Splitted Binary Tree LeetCode Solution | 2880 |
627 | A Space Optimized DP solution for 0-1 Knapsack Problem | 2880 |
628 | Reach a Number LeetCode Solution | 2879 |
629 | Best Meeting Point LeetCode Solution | 2870 |
630 | Heap Sort | 2867 |
631 | Merge Two Balanced Binary Search Trees | 2861 |
632 | Number of palindromic paths in a matrix | 2856 |
633 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 2850 |
634 | Count Sub Islands LeetCode Solution | 2848 |
635 | Merge Overlapping Intervals II | 2847 |
636 | Sorted Linked List to Balanced BST | 2844 |
637 | Find Largest Value in Each Tree Row LeetCode Solution | 2842 |
638 | Segregate 0s and 1s in an Array | 2839 |
639 | Find the Subarray of given length with Least Average | 2839 |
640 | Brick Wall LeetCode Solution | 2830 |
641 | My Calendar I LeetCode Solution | 2830 |
642 | Caesar Cipher | 2829 |
643 | Swapping Nodes in a Linked List Leetcode Solution | 2826 |
644 | Palindromic Substrings Leetcode Solution | 2825 |
645 | All Unique Triplets that Sum up to a Given Value | 2822 |
646 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 2821 |
647 | Construct BST from given Preorder Traversal | 2811 |
648 | Level order Traversal in Spiral Form | 2811 |
649 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 2810 |
650 | Find Median from data Stream | 2805 |
651 | Palindrome Permutation | 2797 |
652 | Pair with given product | 2794 |
653 | Huffman Coding | 2787 |
654 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2786 |
655 | Merge K Sorted Arrays and Print Sorted Output | 2785 |
656 | Word Pattern | 2780 |
657 | Maximize Sum of Array after K Negations Leetcode Solution | 2769 |
658 | Partition Problem | 2768 |
659 | Find all triplets with zero sum | 2766 |
660 | Validate Binary Search Tree | 2755 |
661 | Print Fibonacci sequence using 2 variables | 2752 |
662 | Find whether a subarray is in form of a mountain or not | 2746 |
663 | Bubble sort using two Stacks | 2741 |
664 | Maximum Frequency Stack Leetcode Solution | 2738 |
665 | Find all pairs (a, b) in an array such that a % b = k | 2737 |
666 | Count Distinct Elements in Every Window of Size K | 2735 |
667 | Minimum time required to rot all oranges | 2731 |
668 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2729 |
669 | Isomorphic Strings LeetCode Solution | 2727 |
670 | Queries on Probability of Even or Odd Number in given Ranges | 2724 |
671 | Add two numbers | 2723 |
672 | Counting Bits | 2722 |
673 | Convert Sorted List to Binary Search Tree | 2721 |
674 | Longest Subarray Having Count of 1s One More than Count of 0s | 2719 |
675 | Detect Capital Leetcode Solution | 2718 |
676 | How to Efficiently Implement k Stacks in a Single Array? | 2716 |
677 | Find four elements that sum to a given value (Hashmap) | 2713 |
678 | Largest Sum Contiguous Subarray | 2712 |
679 | Count Good Nodes in Binary Tree LeetCode Solution | 2711 |
680 | Length of Longest Fibonacci Subsequence | 2708 |
681 | Sort 0s 1s and 2s in an Array | 2708 |
682 | Split Array Into Consecutive Subsequences | 2706 |
683 | Range Sum Query 2D – Immutable LeetCode Solution | 2704 |
684 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2702 |
685 | Binary Tree Right Side View LeetCode Solution | 2701 |
686 | Binary Tree to Binary Search Tree Conversion | 2696 |
687 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2685 |
688 | Alien Dictionary | 2685 |
689 | Rotate Array | 2683 |
690 | Remove brackets from an algebraic string containing + and – operators | 2682 |
691 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 2672 |
692 | Count ways to reach the nth stair using step 1, 2 or 3 | 2671 |
693 | Print all subarrays with 0 sum | 2671 |
694 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2670 |
695 | Partition to K Equal Sum Subsets Leetcode Solution | 2667 |
696 | Remove Palindromic Subsequences Leetcode Solution | 2667 |
697 | Merge Two Sorted Lists Leetcode | 2666 |
698 | Populating Next Right Pointers in Each Node Leetcode Solution | 2663 |
699 | Populating Next Right Pointers in Each Node | 2660 |
700 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2653 |
701 | String comparison containing wildcards | 2650 |
702 | Find pairs with given sum such that elements of pair are in different rows | 2646 |
703 | Arithmetic Slices II – Subsequence LeetCode Solution | 2637 |
704 | Partition Equal Subset Sum | 2634 |
705 | Happy Number | 2628 |
706 | Breadth First Search (BFS) for a Graph | 2623 |
707 | Web Crawler LeetCode Solution | 2617 |
708 | Minimum Sum Path in a Triangle | 2615 |
709 | Concatenation of Array LeetCode Solution | 2614 |
710 | Check if a Linked list of Strings form a Palindrome | 2606 |
711 | Topological Sorting | 2605 |
712 | Inorder Successor of a node in Binary Tree | 2603 |
713 | Queue Reconstruction by Height | 2602 |
714 | Difference Array | Range update query in O(1) | 2595 |
715 | Remove duplicates from sorted array | 2595 |
716 | Contiguous Array Leetcode | 2592 |
717 | Find Duplicate Subtrees | 2592 |
718 | Reverse Nodes in K-Group | 2591 |
719 | Elements Appear more than N/K times in Array | 2588 |
720 | Root to Leaf path with target sum Leetcode Solutions | 2584 |
721 | Find All Pairs With a Given Difference | 2584 |
722 | Increasing Subsequence of Length three with Maximum Product | 2572 |
723 | Check if String Follows Order of Characters by a Pattern or not | 2565 |
724 | Swap Kth Node from beginning with Kth Node from End | 2564 |
725 | Longest Common Prefix Using Binary Search II | 2551 |
726 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2547 |
727 | Maximum Product Subarray II | 2537 |
728 | Container with Most Water | 2536 |
729 | Maximum Distance in Array | 2533 |
730 | Climbing stairs | 2533 |
731 | Count Minimum Steps to Get the given Array | 2528 |
732 | Finding K closest element | 2527 |
733 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2526 |
734 | Sum Root to Leaf Numbers LeetCode Solution | 2520 |
735 | Score of Parenthesis LeetCode Solution | 2518 |
736 | Symmetric Tree | 2515 |
737 | Parallel Courses II LeetCode Solution | 2514 |
738 | An Interesting Method to generate Binary Numbers from 1 to n | 2510 |
739 | Pancake Sorting | 2509 |
740 | Check if all levels of two Binary Tree are anagrams or not | 2505 |
741 | Deletion in a Binary Tree | 2505 |
742 | Delete Nodes and Return Forest Leetcode Solution | 2504 |
743 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2499 |
744 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2498 |
745 | Given a binary tree, how do you remove all the half nodes? | 2498 |
746 | Substring With Concatenation Of All Words | 2497 |
747 | Longest Increasing Subsequence | 2496 |
748 | Find the first repeating element in an array of integers | 2487 |
749 | Delete Nth node from the end of the given linked list | 2482 |
750 | Count pairs from two linked lists whose sum is equal to a given value | 2479 |
751 | Boundary Traversal of binary tree | 2478 |
752 | Union and Intersection of two Linked Lists | 2474 |
753 | Iterative Depth First Traversal of Graph | 2474 |
754 | MiniMax Algorithm | 2470 |
755 | Linked List Cycle | 2466 |
756 | Sort Array by Increasing Frequency Leetcode Solution | 2465 |
757 | Kill Process LeetCode Solution | 2463 |
758 | Find K Closest Elements LeetCode Solution | 2462 |
759 | Minimum Size Subarray Sum | 2459 |
760 | Non-overlapping sum of two sets | 2457 |
761 | Level of Each node in a Tree from source node | 2455 |
762 | Merge K Sorted Linked Lists | 2453 |
763 | Iterative Preorder Traversal | 2452 |
764 | Level order traversal using two Queues | 2450 |
765 | Longest Common Prefix Word by Word Matching | 2449 |
766 | BFS vs DFS for Binary Tree | 2448 |
767 | Construct Binary Tree from given Parent Array representation | 2447 |
768 | Rearrange an Array Such that arr[i] is equal to i | 2444 |
769 | Find Maximum of Minimum for Every Window Size in a Given Array | 2439 |
770 | Valid Anagrams | 2438 |
771 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2434 |
772 | Nested List Weight Sum II LeetCode Solution | 2431 |
773 | New 21 Game | 2429 |
774 | Check if a queue can be sorted into another queue using a stack | 2425 |
775 | Verify Preorder Serialization of a Binary Tree | 2423 |
776 | Find the Difference Leetcode Solution | 2422 |
777 | Merging Intervals | 2422 |
778 | Matrix Chain Multiplication | 2418 |
779 | Super Ugly Number | 2407 |
780 | Reservoir Sampling | 2404 |
781 | Maximum size subarray sum equals k | 2402 |
782 | Remove Duplicates from Sorted List II | 2398 |
783 | Range LCM Queries | 2392 |
784 | Palindrome Partitioning | 2392 |
785 | Maximum Product Subarray | 2392 |
786 | Flatten Binary Tree to Linked List LeetCode Solution | 2388 |
787 | Smallest Range II Leetcode Solution | 2388 |
788 | Reorder Array Using Given Indexes | 2388 |
789 | K maximum sums of overlapping contiguous sub-arrays | 2378 |
790 | Print a Binary Tree in Vertical Order | 2377 |
791 | Friends Of Appropriate Ages LeetCode Solution | 2374 |
792 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2370 |
793 | Vertical sum in a given binary tree | 2364 |
794 | Balanced Binary Tree | 2364 |
795 | Valid Triangle Number LeetCode Solution | 2359 |
796 | Defanging an IP Address LeetCode Solution | 2359 |
797 | Create Maximum Number | 2353 |
798 | Missing Number | 2352 |
799 | Maximum difference between two elements such as larger element comes after smaller | 2351 |
800 | Check if Two Expressions With Brackets are Same | 2350 |
801 | Check if any two intervals overlap among a given set of intervals | 2338 |
802 | Minimum Distance Between BST Nodes Leetcode Solution | 2334 |
803 | The Painter’s Partition Problem | 2331 |
804 | Unique Binary Search Trees LeetCode Solution | 2327 |
805 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2326 |
806 | Find subarray with given sum (Handles Negative Numbers) | 2325 |
807 | Largest Submatrix With Rearrangements LeetCode Solution | 2322 |
808 | Flatten 2D Vector LeetCode Solution | 2320 |
809 | Number Of Longest Increasing Subsequence | 2320 |
810 | Employee Importance LeetCode Solution | 2317 |
811 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2316 |
812 | Count number of triplets with product equal to given number | 2314 |
813 | Valid Triangle Number LeetCode Solution | 2313 |
814 | Lowest Common Ancestor | 2313 |
815 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2312 |
816 | Peak Index in a Mountain Array LeetCode Solution | 2310 |
817 | Minimum insertions to form a palindrome with permutations allowed | 2310 |
818 | Find K Length Subarray of Maximum Average | 2307 |
819 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2295 |
820 | Check if two nodes are on the same path in a Tree | 2294 |
821 | Array Nesting Leetcode Solution | 2292 |
822 | Closest Leaf in a Binary Tree LeetCode Solution | 2290 |
823 | Third Maximum Number Leetcode Solution | 2289 |
824 | Hamming Distance | 2287 |
825 | Sorting a K Sorted Array | 2287 |
826 | Find Peak Element | 2285 |
827 | Iterative Postorder Traversal Using Two Stacks | 2281 |
828 | Find distance between two nodes of a Binary Tree | 2280 |
829 | First Bad Version | 2280 |
830 | Check Completeness of a Binary Tree LeetCode Solution | 2279 |
831 | Maximum subsequence sum such that no three are consecutive | 2279 |
832 | Find Common Characters Leetcode Solution | 2277 |
833 | Find Smallest Range Containing Elements from k Lists | 2272 |
834 | Print All Distinct Elements of a Given Integer Array | 2272 |
835 | Merging Two Sorted Arrays | 2271 |
836 | Largest BST Subtree LeetCode Solution | 2263 |
837 | Newman-Conway Sequence | 2261 |
838 | Tree Traversal (Preorder, Inorder & Postorder) | 2261 |
839 | Valid Parenthesis String | 2260 |
840 | Products of ranges in an array | 2256 |
841 | Find Element Using Binary Search in Sorted Array | 2256 |
842 | Print all triplets in sorted array that form AP | 2255 |
843 | Distinct Subsequences | 2255 |
844 | Find Sum of all unique sub-array sum for a given array | 2253 |
845 | Arrange given numbers to form the biggest number | 2248 |
846 | Maximum number of segments of lengths a, b and c | 2247 |
847 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2245 |
848 | Largest divisible pairs subset | 2245 |
849 | Sort Elements by Frequency II | 2244 |
850 | Longest Palindromic Subsequence | 2243 |
851 | Lower Case To Upper Case | 2235 |
852 | Bottom View of a Binary Tree | 2233 |
853 | Diagonal Traversal of Binary Tree | 2231 |
854 | Number of siblings of a given Node in n-ary Tree | 2227 |
855 | Stone Game IV LeetCode Solution | 2222 |
856 | Range Sum Query using Sparse Table | 2220 |
857 | Path Sum | 2219 |
858 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2218 |
859 | Largest subarray with equal number of 0s and 1s | 2216 |
860 | Stone Game IV LeetCode Solution | 2210 |
861 | Find the largest multiple of 3 | 2210 |
862 | Print Right View of a Binary Tree | 2204 |
863 | Segment Tree | 2204 |
864 | Contiguous Array | 2200 |
865 | Four Elements that Sum to Given | 2198 |
866 | Merge Two Sorted Arrays | 2198 |
867 | Binary array after M range toggle operations | 2195 |
868 | Median of Two Sorted Arrays | 2195 |
869 | Shuffle an Array | 2187 |
870 | Count and Say | 2187 |
871 | Isomorphic Strings | 2187 |
872 | Longest Bitonic Subsequence | 2180 |
873 | Unique Binary Search Trees | 2178 |
874 | Find Nth Node | 2177 |
875 | Permutations of a Given String Using STL | 2173 |
876 | Subset Sum Problem in O(sum) space | 2171 |
877 | Find Largest d in Array such that a + b + c = d | 2163 |
878 | Encoded String With Shortest Length LeetCode Solution | 2162 |
879 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2156 |
880 | Maximum Sum of 3 Non-Overlapping Subarrays | 2156 |
881 | Valid Number | 2154 |
882 | Infix to Postfix | 2153 |
883 | Maximum Product Subarray | 2149 |
884 | Red-Black Tree Introduction | 2148 |
885 | Averages of Levels in Binary Tree | 2148 |
886 | Next Greater Element in an Array | 2142 |
887 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2141 |
888 | Find unique character in a string | 2140 |
889 | Trapping Rain Water II LeetCode Solution | 2139 |
890 | Closest Binary Search Tree Value Leetcode Solution | 2131 |
891 | Transform a BST to Greater sum Tree | 2130 |
892 | Height of a generic tree from parent array | 2129 |
893 | Friends Pairing Problem | 2128 |
894 | Count Primes in Ranges | 2126 |
895 | Orderly Queue LeetCode Solution | 2124 |
896 | Valid Perfect Square LeetCode Solution | 2123 |
897 | Maximum Population Year LeetCode Solution | 2117 |
898 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2114 |
899 | Write a function to get the intersection point of two Linked Lists | 2112 |
900 | Binary Search Tree Delete Operation | 2103 |
901 | Bold Words in String LeetCode Solution | 2098 |
902 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2097 |
903 | The Number of Weak Characters in the Game LeetCode Solution | 2094 |
904 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2089 |
905 | Sentence Screen Fitting LeetCode Solution | 2087 |
906 | Serialize and Deserialize Binary Tree | 2085 |
907 | Shuffle a given Array | 2085 |
908 | Minimum sum of squares of character counts in a given string after removing k characters | 2083 |
909 | Insert Delete GetRandom | 2073 |
910 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2069 |
911 | Diameter of N-Ary Tree LeetCode Solution | 2066 |
912 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2065 |
913 | Convert BST into a Min-Heap without using array | 2057 |
914 | Swap Nodes In Pairs | 2055 |
915 | Reorganize String | 2049 |
916 | Next greater element | 2049 |
917 | Edit Distance | 2047 |
918 | Lowest Common Ancestor in Binary Search Tree | 2047 |
919 | Find Minimum In Rotated Sorted Array | 2040 |
920 | Maximum Product Subarray | 2037 |
921 | K’th Largest Element in BST when modification to BST is not allowed | 2035 |
922 | Integer to Roman | 2033 |
923 | Next Greater Element II LeetCode Solution | 2028 |
924 | Total Hamming Distance LeetCode Solution | 2021 |
925 | Array Queries for multiply replacements and product | 2012 |
926 | Find the smallest binary digit multiple of given number | 2012 |
927 | Advantages of BST over Hash Table | 2012 |
928 | Queries on XOR of greatest odd divisor of the range | 2005 |
929 | Koko Eating Bananas LeetCode Solution | 1997 |
930 | Constant time range add operation on an array | 1996 |
931 | K’th Largest element in BST using constant extra space | 1996 |
932 | Best Meeting Point LeetCode Solution | 1992 |
933 | Longest Increasing Consecutive Subsequence | 1990 |
934 | Check if an Array is Stack Sortable | 1988 |
935 | Write Code to Determine if Two Trees are Identical | 1986 |
936 | Serialize and Deserialize Binary Tree LeetCode Solution | 1985 |
937 | Print n terms of Newman-Conway Sequence | 1979 |
938 | Number of Orders in the Backlog Leetcode Solution | 1978 |
939 | Level Order Traversal of Binary Tree | 1973 |
940 | Clone a Binary Tree with Random Pointers | 1971 |
941 | Reverse a Path in BST using Queue | 1969 |
942 | Maximum Sum Increasing Subsequence | 1968 |
943 | Power of Two | 1968 |
944 | Moving Stones Until Consecutive Leetcode Solution | 1966 |
945 | Greatest Sum Divisible by Three LeetCode Solution | 1965 |
946 | Image Overlap LeetCode Solution | 1956 |
947 | Numbers with prime frequencies greater than or equal to k | 1955 |
948 | Design Underground System Leetcode Solution | 1954 |
949 | Range Queries for Longest Correct Bracket Subsequence | 1954 |
950 | Find minimum number of merge operations to make an array palindrome | 1946 |
951 | Valid Tic-Tac-Toe State LeetCode Solution | 1944 |
952 | Count and Toggle Queries on a Binary Array | 1944 |
953 | Check if X can give change to every person in the Queue | 1944 |
954 | Insert into a Sorted Circular Linked List LeetCode Solution | 1940 |
955 | A program to check if a binary tree is BST or not | 1938 |
956 | Design Add and Search Words Data Structure LeetCode Solution | 1937 |
957 | Print Next Greater Number of Q queries | 1931 |
958 | Form minimum number from given sequence | 1930 |
959 | Find the node with minimum value in a Binary Search Tree | 1930 |
960 | Closest Binary Search Tree Value II LeetCode Solution | 1929 |
961 | Check if each internal node of a BST has exactly one child | 1926 |
962 | Maximum Array from Two given Arrays Keeping Order Same | 1919 |
963 | Number of elements less than or equal to a given number in a given subarray | 1918 |
964 | Factorial Trailing Zeroes LeetCode Solution | 1915 |
965 | Check for Palindrome after every character replacement Query | 1915 |
966 | Merge two BSTs with limited extra space | 1911 |
967 | Count the Pairs at Same Distance as in English Alphabets | 1911 |
968 | Queries for Decimal Values of Subarrays of a Binary Array | 1905 |
969 | Largest Plus Sign Leetcode Solution | 1903 |
970 | Merge Sort | 1894 |
971 | Collect maximum points in a grid using two traversals | 1893 |
972 | Maximum difference between first and last indexes of an element in array | 1891 |
973 | Graph Cloning | 1885 |
974 | Group Shifted Strings Leetcode Solution | 1884 |
975 | Dividing Array into Pairs With Sum Divisible by K | 1880 |
976 | Merge Sorted Array | 1872 |
977 | Priority Queue | 1864 |
978 | Count even length binary sequences with same sum of first and second half bits | 1857 |
979 | Print modified array after multiple array range increment operations | 1857 |
980 | Longest Substring Without Repeating Characters Leetcode Solution | 1856 |
981 | Print Ancestors of a Given Binary Tree Node Without Recursion | 1850 |
982 | Cutting a Rod | 1839 |
983 | Kth Smallest Element in a BST | 1837 |
984 | Form Minimum Number From Given Sequence | 1827 |
985 | Count Pairs Whose Products Exist in Array | 1827 |
986 | Swim in Rising Water LeetCode Solution | 1822 |
987 | Excel Sheet Column Number LeetCode Solution | 1820 |
988 | Find maximum average subarray of k length | 1819 |
989 | Binary Search Tree | 1811 |
990 | Unique Paths II | 1810 |
991 | Guess The Word | 1809 |
992 | Minimum Moves to Equal Array Elements LeetCode Solution | 1805 |
993 | Excel Sheet Column Title LeetCode Solution | 1797 |
994 | Print all Possible Ways to Break a String in Bracket Form | 1793 |
995 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1792 |
996 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1791 |
997 | Check given array of size n can represent BST of n levels or not | 1789 |
998 | Palindrome Partitioning | 1786 |
999 | K Empty Slots | 1785 |
1000 | Longest Common Prefix using Character by Character Matching | 1778 |
1001 | Binary Search Tree Search and Insertion | 1776 |
1002 | Regular Expression Matching | 1773 |
1003 | How to print maximum number of A’s using given four keys | 1772 |
1004 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1761 |
1005 | Sorted Array to Balanced BST | 1761 |
1006 | Sum of Left Leaves LeetCode Solution | 1749 |
1007 | Find postorder traversal of BST from preorder traversal | 1742 |
1008 | Construct Complete Binary Tree from its Linked List Representation | 1716 |
1009 | Maximum weight transformation of a given string | 1706 |
1010 | Queries for Number of Distinct Elements in a Subarray | 1704 |
1011 | Find the Town Judge LeetCode Solution | 1694 |
1012 | Maximum Depth Of Binary Tree | 1692 |
1013 | Binary Tree to Binary Search Tree Conversion using STL set | 1689 |
1014 | Symmetric Tree LeetCode Solution Leetcode Solution | 1681 |
1015 | Iterative method to find ancestors of a given binary tree | 1676 |
1016 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1672 |
1017 | Data Structure Designing | 1668 |
1018 | Random Pick Index LeetCode Solution | 1663 |
1019 | Search in Sorted Rotated Array | 1640 |
1020 | Find Maximum Depth of Nested Parenthesis in a String | 1625 |
1021 | Search an Element in Sorted Rotated Array | 1617 |
1022 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1592 |
1023 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1584 |
1024 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1574 |
1025 | Next Greater Element I Leetcode Solution | 1544 |
1026 | Print Maximum Length Chain of Pairs | 1525 |
1027 | Maximum Binary Tree | 1518 |
1028 | Flatten Binary Tree to Linked List LeetCode Solution | 1498 |
1029 | Find k-th smallest element in BST (Order Statistics in BST) | 1493 |
1030 | Peeking Iterator LeetCode Solution | 1460 |
1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1444 |