S.No |
Interview Question |
Number of times asked |
1 | Two Sum Leetcode Solution | 10820 |
2 | Maximum occurring character in a string | 8083 |
3 | 3Sum Leetcode Solution | 5870 |
4 | Valid Parentheses LeetCode Solution | 5788 |
5 | Plus One Leetcode Solution | 5602 |
6 | First Repeating Element | 5040 |
7 | Single Number Leetcode Solution | 4896 |
8 | Search Insert Position Leetcode Solution | 4371 |
9 | Find the Maximum Repeating Number in Array | 4297 |
10 | Pow(x, n) Leetcode Solution | 4133 |
11 | Contains Duplicate II Leetcode Solution | 4063 |
12 | Sqrt(x) Leetcode Solution | 4033 |
13 | Intersection of Two Arrays II Leetcode Solution | 3960 |
14 | Roman to Integer Leetcode Solution | 3833 |
15 | Count Primes Leetcode Solutions | 3822 |
16 | Running Sum of 1d Array Leetcode Solution | 3800 |
17 | Find Minimum Distance Between Two Numbers in an Array | 3780 |
18 | Kth Missing Positive Number Leetcode Solution | 3759 |
19 | Merge Sorted Arrays Leetcode Solution | 3711 |
20 | Shuffle String Leetcode Solution | 3575 |
21 | Reverse Vowels of a String Leetcode Solution | 3553 |
22 | Valid Palindrome Leetcode Solution | 3541 |
23 | Concatenation of Array LeetCode Solution | 3472 |
24 | Find All Numbers Disappeared in an Array Leetcode Solution | 3452 |
25 | Add Binary Leetcode Solution | 3308 |
26 | Word Search Leetcode Solution | 3257 |
27 | Spiral Matrix LeetCode Solution | 3249 |
28 | Meeting Rooms II LeetCode Solution | 3206 |
29 | Number Of 1 bits | 3197 |
30 | Kids With the Greatest Number of Candies Leetcode Solution | 3193 |
31 | House Robber Leetcode Solution | 3162 |
32 | Longest Palindromic Substring LeetCode Solution | 3154 |
33 | Reverse String Without Temporary Variable | 3146 |
34 | Subarray and Subsequence | 3141 |
35 | Longest Common Prefix Leetcode Solution | 3120 |
36 | Power of Two Leetcode Solution | 3046 |
37 | Jewels and Stones Leetcode Solution | 3045 |
38 | Maximum Subarray Leetcode Solution | 3034 |
39 | Jump Game Leetcode Solution | 2956 |
40 | Number of Good Pairs Leetcode Solution | 2917 |
41 | Number of Islands LeetCode Solution | 2904 |
42 | Isomorphic Strings Leetcode Solution | 2878 |
43 | Missing Number Leetcode Solution | 2873 |
44 | Third Maximum Number Leetcode Solution | 2873 |
45 | Smallest window in a string containing all characters of another string | 2801 |
46 | Bulb Switcher LeetCode Solution | 2792 |
47 | Next Greater Element I Leetcode Solution | 2782 |
48 | Combination Sum Leetcode Solution | 2754 |
49 | 3Sum Closest LeetCode Solution | 2748 |
50 | Count Pairs With Given Sum | 2740 |
51 | Rearrange Positive and Negative Numbers Alternatively in Array | 2734 |
52 | Multiply Strings Leetcode Solution | 2705 |
53 | Integer to Roman Leetcode Solution | 2692 |
54 | Permutations Leetcode Solution | 2672 |
55 | Search in Rotated Sorted Array Leetcode Solution | 2667 |
56 | Median of Two Sorted Arrays LeetCode Solution | 2666 |
57 | Longest Substring Without Repeating Characters LeetCode Solution | 2665 |
58 | Subarray with Given Sum | 2663 |
59 | Move Zeroes LeetCode Solution | 2628 |
60 | Koko Eating Bananas Leetcode Solution | 2603 |
61 | First element occurring k times in an array | 2602 |
62 | Shuffle the Array Leetcode Solution | 2584 |
63 | Count and Say Leetcode Solution | 2581 |
64 | Balanced Binary Tree Leetcode Solution | 2577 |
65 | Linked List Cycle II LeetCode Solution | 2568 |
66 | Min Stack Leetcode Solution | 2564 |
67 | Rotate Image LeetCode Solution | 2554 |
68 | Check if the Elements of an Array are Consecutive | 2534 |
69 | String to Integer (atoi) LeetCode Solution | 2477 |
70 | Next Permutation Leetcode Solution | 2452 |
71 | Iterative Implementation of Quick Sort | 2408 |
72 | Find the Difference Leetcode Solution | 2384 |
73 | House Robber II Leetcode Solution | 2380 |
74 | Happy Number Leetcode Solution | 2364 |
75 | Product of array except self | 2351 |
76 | Text Justification LeetCode Solution | 2340 |
77 | Sort Elements by Frequency of Occurrences | 2332 |
78 | Maximum Profit in Job Scheduling Leetcode Solution | 2302 |
79 | Unique Paths Leetcode Solution | 2301 |
80 | Merge Two Sorted Lists Leetcode Solutions | 2297 |
81 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 2281 |
82 | Largest Number Leetcode Solution | 2280 |
83 | Find Triplet in Array With a Given Sum | 2280 |
84 | Find the Town Judge Leetcode Solution | 2264 |
85 | Daily Temperatures Leetcode Solution | 2247 |
86 | Smallest Positive Number Missing in an Unsorted Array | 2239 |
87 | Frog Jump Leetcode Solution | 2235 |
88 | Find Common Characters Leetcode Solution | 2231 |
89 | Remove Duplicates from Sorted Array Leetcode Solution | 2216 |
90 | Capacity To Ship Packages Within D Days Leetcode Solution | 2215 |
91 | Pascal Triangle Leetcode | 2205 |
92 | Find Leaders in an Array | 2204 |
93 | A Product Array Puzzle | 2189 |
94 | Find Smallest Missing Number in a Sorted Array | 2173 |
95 | Find the Missing Number | 2172 |
96 | Rabin Karp Algorithm | 2169 |
97 | Evaluation of Postfix Expression | 2168 |
98 | Excel Sheet Column Title Leetcode Solution | 2160 |
99 | Set Matrix Zeroes | 2154 |
100 | Rotate String LeetCode Solution | 2142 |
101 | Bellman Ford Algorithm | 2136 |
102 | Rearrange given Array in Maximum Minimum Form | 2127 |
103 | Swap Nodes in Pairs Leetcode Solutions | 2120 |
104 | Length of Last Word Leetcode Solution | 2117 |
105 | Find the Winner of the Circular Game LeetCode Solution | 2116 |
106 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 2108 |
107 | Maximum Subarray Sum using Divide and Conquer | 2098 |
108 | String Compression LeetCode Solution | 2082 |
109 | Majority Element Leetcode Solution | 2077 |
110 | Sum of minimum and maximum elements of all subarrays of size k | 2070 |
111 | Divide Two Integers Leetcode Solution | 2068 |
112 | Minimum Cost For Tickets Leetcode Solution | 2067 |
113 | Can Place Flowers LeetCode Solution | 2066 |
114 | Binary Search LeetCode Solution | 2048 |
115 | OSI Model | 2028 |
116 | Is Subsequence Leetcode Solution | 2011 |
117 | Backspace String Compare | 1993 |
118 | Subset Leetcode | 1990 |
119 | Fibonacci Number LeetCode Solution | 1961 |
120 | Expression Evaluation | 1961 |
121 | Implementation of Deque using Doubly Linked List | 1948 |
122 | K-th Smallest Element in a Sorted Matrix | 1947 |
123 | Find the Number Occurring Odd Number of Times in an Array | 1941 |
124 | Word Pattern LeetCode Solution | 1938 |
125 | Valid Palindrome II Leetcode Solution | 1936 |
126 | Find Pair with Given Difference | 1933 |
127 | Design Parking System Leetcode Solution | 1927 |
128 | Matrix Chain Multiplication using Dynamic Programming | 1916 |
129 | Find the First and Second Smallest Elements | 1916 |
130 | Palindrome Number LeetCode Solution | 1914 |
131 | Reverse Integer Leetcode Solution | 1913 |
132 | Defanging an IP Address Leetcode Solution | 1911 |
133 | Pascal’s Triangle II Leetcode Solution | 1908 |
134 | Build Array From Permutation Leetcode Solution | 1906 |
135 | Summary Ranges Leetcode Solution | 1903 |
136 | Sort Array By Parity LeetCode Solution | 1890 |
137 | Palindrome Number | 1881 |
138 | First Unique Character in a String LeetCode Solution | 1872 |
139 | Valid Anagram Leetcode Solution | 1868 |
140 | Kth largest element in an Array Leetcode Solutions | 1864 |
141 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 1852 |
142 | Make The String Great Leetcode Solution | 1831 |
143 | Zigzag Conversion LeetCode Solution | 1823 |
144 | Generate all Binary Strings Without Consecutive 1’s | 1822 |
145 | Assign Cookies Leetcode Solution | 1820 |
146 | KMP Algorithm | 1817 |
147 | Stock Buy Sell to Maximize Profit | 1807 |
148 | Island Perimeter Leetcode Solution | 1803 |
149 | Repeated Substring Pattern | 1788 |
150 | Second Most Repeated Word in a Sequence | 1783 |
151 | Remove Linked List Elements Leetcode Solution | 1771 |
152 | Remove Minimum Characters so that Two Strings Become Anagrams | 1763 |
153 | Remove Duplicates from Sorted List II LeetCode Solution | 1762 |
154 | Number of Provinces Leetcode Solution | 1756 |
155 | Find the Duplicate Number LeetCode Solution | 1755 |
156 | Minimum number of Merge Operations to make an Array Palindrome | 1751 |
157 | Count of Triplets With Sum Less than Given Value | 1751 |
158 | Minimum Characters to be Added at Front to Make String Palindrome | 1750 |
159 | Page Replacement Algorithms in Operating Systems | 1748 |
160 | Detect a loop in the Linked List | 1748 |
161 | Find the Row with Maximum Number of 1’s | 1745 |
162 | Convert a Number to Hexadecimal Leetcode Solution | 1739 |
163 | Delete middle element of a stack | 1739 |
164 | Same Tree LeetCode Solution | 1735 |
165 | Max Consecutive Ones Leetcode Solution | 1735 |
166 | Minimum Steps to reach target by a Knight | 1730 |
167 | Palindrome Linked List Leetcode Solution | 1729 |
168 | Remove All Occurrences of a Substring LeetCode Solution | 1722 |
169 | Bus Routes Leetcode Solution | 1706 |
170 | Reverse Only Letters LeetCode Solution | 1697 |
171 | Best Time to Buy and Sell Stock LeetCode Solution | 1695 |
172 | Printing brackets in Matrix Chain Multiplication Problem | 1686 |
173 | The Celebrity Problem | 1685 |
174 | Arrange given Numbers to Form the Biggest Number II | 1666 |
175 | Kth Largest Element in a Stream Leetcode Solution | 1664 |
176 | Postfix to Infix Conversion | 1653 |
177 | Max Area of Island | 1649 |
178 | Strobogrammatic Number LeetCode Solution | 1645 |
179 | Find the Duplicate Element | 1639 |
180 | Prefix to Infix Conversion | 1638 |
181 | String Compression | 1637 |
182 | Sort Characters By Frequency LeetCode Solution | 1627 |
183 | Form Minimum Number from Given Sequence of D’s and I’s | 1625 |
184 | Relative Sort Array Leetcode Solution | 1619 |
185 | Convert array into Zig-Zag fashion | 1619 |
186 | Check If N and Its Double Exist Leetcode Solution | 1615 |
187 | Intersection of Two Arrays | 1615 |
188 | Leetcode Permutations | 1611 |
189 | Subarray Sum Equals k | 1606 |
190 | Subarray Product Less Than K LeetCode Solution | 1600 |
191 | Coin Change 2 Leetcode Solution | 1599 |
192 | Subarray Sum Equals K LeetCode Solution | 1599 |
193 | Combinations Leetcode Solution | 1599 |
194 | Rotate List Leetcode Solution | 1598 |
195 | First negative integer in every window of size k | 1598 |
196 | Arranging Coins Leetcode Solution | 1594 |
197 | Tug of War | 1591 |
198 | Most Frequent Element in an Array | 1589 |
199 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 1587 |
200 | Find the Peak Element from an Array | 1582 |
201 | Sudoku Solver | 1580 |
202 | Break a Palindrome LeetCode Solution | 1579 |
203 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 1566 |
204 | Best Time to Buy and Sell Stock II Leetcode Solution | 1562 |
205 | Repeated Substring Pattern LeetCode Solution | 1561 |
206 | Count Possible Triangles | 1561 |
207 | Monotonic Array LeetCode Solution | 1554 |
208 | Multiplication of Two Matrices | 1540 |
209 | Asteroid Collision LeetCode Solution | 1538 |
210 | Optimal Account Balancing LeetCode Solution | 1537 |
211 | Find All Duplicates in an Array LeetCode Solution | 1537 |
212 | Prim’s Algorithm | 1537 |
213 | Robot Room Cleaner Leetcode Solution | 1536 |
214 | Scramble String | 1535 |
215 | Merge k Sorted Lists Leetcode Solution | 1534 |
216 | Delete Node in a Linked List Leetcode Solution | 1525 |
217 | Valid Perfect Square Leetcode Solution | 1525 |
218 | Guess Number Higher or Lower LeetCode Solution | 1518 |
219 | Lemonade Change Leetcode Solution | 1518 |
220 | Slowest Key Leetcode Solution | 1517 |
221 | Find N Unique Integers Sum up to Zero Leetcode Solution | 1517 |
222 | Student Attendance Record I Leetcode Solution | 1514 |
223 | License Key Formatting Leetcode Solution | 1508 |
224 | Last Stone Weight | 1507 |
225 | Target Sum | 1506 |
226 | Minimum swaps required to bring all elements less than or equal to k together | 1504 |
227 | Candy LeetCode Solution | 1503 |
228 | Maximum Circular Subarray Sum | 1503 |
229 | The K Weakest Rows in a Matrix Leetcode Solution | 1502 |
230 | Implement a stack using single queue | 1502 |
231 | Jump Game | 1500 |
232 | First Circular Tour to Visit all the Petrol Bunks | 1499 |
233 | Combination Sum | 1490 |
234 | Employee Free Time LeetCode Solution | 1487 |
235 | Reverse Words in a String III LeetCode Solution | 1484 |
236 | Check If Two String Arrays are Equivalent Leetcode Solution | 1483 |
237 | Prefix to Postfix Conversion | 1481 |
238 | Trapping Rain Water Leetcode Solution | 1477 |
239 | Decode String Leetcode Solution | 1476 |
240 | Given two unsorted arrays find all pairs whose sum is x | 1474 |
241 | Relative Ranks Leetcode Solution | 1473 |
242 | Length of Longest valid Substring | 1473 |
243 | Sort a stack using a temporary stack | 1472 |
244 | Find The Duplicate Number | 1472 |
245 | Top K Frequent Elements | 1471 |
246 | Find a Fixed Point in a Given Array | 1468 |
247 | Cuckoo sequence program | 1458 |
248 | Word Ladder LeetCode Solution | 1455 |
249 | Maximum Sum Increasing Subsequence | 1453 |
250 | Find Pythagorean Triplets from Array | 1448 |
251 | Reverse words in a string | 1447 |
252 | Find Duplicates in an Array in Most Efficient Way | 1445 |
253 | Product of Array Except Self LeetCode Solution | 1443 |
254 | Find any one of the multiple repeating elements in read only array | 1441 |
255 | Maximum Depth of Binary Tree Leetcode Solution | 1440 |
256 | Reverse individual words | 1439 |
257 | Find the Minimum Element in a Sorted and Rotated Array | 1439 |
258 | Number of Dice Rolls With Target Sum LeetCode Solution | 1434 |
259 | Evaluate Division | 1433 |
260 | Pancake Sorting Problem | 1426 |
261 | Number of Closed Islands Leetcode Solution | 1421 |
262 | 01 Matrix LeetCode Solution | 1413 |
263 | Largest Subarray with Equal Number of 0’s and 1’s | 1413 |
264 | Move All the Zeros to the End of the Given Array | 1412 |
265 | Spiral Matrix II Leetcode Solution | 1409 |
266 | Maximum Product of Three Numbers LeetCode Solution | 1409 |
267 | Group Anagrams LeetCode Solution | 1406 |
268 | Remove Duplicates from Sorted List LeetCode Solution | 1406 |
269 | Minimum Path Sum Leetcode Solution | 1403 |
270 | Single Element in a Sorted Array LeetCode Solution | 1400 |
271 | Majority Element II Leetcode Solution | 1399 |
272 | To Lower Case Leetcode Solution | 1396 |
273 | Max stack | 1396 |
274 | Symmetric Tree Leetcode Solution | 1391 |
275 | Longest Common Subsequence | 1385 |
276 | Search Suggestions System LeetCode Solution | 1384 |
277 | Permutation in String Leetcode Solution | 1382 |
278 | Single Number | 1381 |
279 | Unique Paths II Leetcode Solution | 1378 |
280 | N-Queens LeetCode Solution | 1376 |
281 | Insert Node in the Sorted Linked List | 1374 |
282 | Round Robin Scheduling | 1372 |
283 | Maximize Distance to Closest Person LeetCode Solution | 1369 |
284 | Find Top K (or Most Frequent) Numbers in a Stream | 1369 |
285 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 1367 |
286 | Letter Combinations of a Phone Number | 1367 |
287 | Reverse Bits | 1367 |
288 | Merge Two Sorted Linked Lists | 1365 |
289 | Moving Average from Data Stream Leetcode Solution | 1361 |
290 | Maximum Sum of Non Consecutive Elements | 1357 |
291 | Implement Two Stacks in an Array | 1356 |
292 | Minimum operation to make all elements equal in array | 1354 |
293 | Maximum Element in an Array which is Increasing and then Decreasing | 1354 |
294 | Arithmetic Expression Evaluation | 1353 |
295 | Min Stack | 1351 |
296 | Least Number of Unique Integers after K Removals Leetcode Solution | 1349 |
297 | Palindrome Permutations of a String | 1342 |
298 | Longest Common Subsequence LeetCode Solution | 1336 |
299 | Minimum Depth of Binary Tree Leetcode Solution | 1336 |
300 | Dijkstra Algorithm | 1336 |
301 | Longest Common Prefix using Divide and Conquer | 1334 |
302 | Number of Smaller Elements on Right Side | 1334 |
303 | Kth Non-repeating Character | 1328 |
304 | Reverse a linked list | 1324 |
305 | Sort Colors LeetCode Solution | 1321 |
306 | Minimum Path Sum | 1321 |
307 | Count of index pairs with equal elements in an array | 1318 |
308 | Design Browser History LeetCode Solution | 1315 |
309 | Find if Path Exists in Graph Leetcode Solution | 1315 |
310 | Implementation of Deque using circular array | 1314 |
311 | LRU Cache LeetCode Solution | 1312 |
312 | Top K Frequent Words LeetCode Solution | 1311 |
313 | Check whether Strings are K Distance Apart or Not | 1311 |
314 | Generate all Binary Strings from Given Pattern | 1310 |
315 | Sum of Subarray Ranges Leetcode Solution | 1309 |
316 | Next Permutation | 1308 |
317 | Find Maximum Level sum in Binary Tree | 1303 |
318 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 1301 |
319 | Top K Frequent Elements LeetCode Solution | 1300 |
320 | Length of the largest subarray with contiguous elements | 1297 |
321 | Word Search | 1295 |
322 | Maximum Population Year LeetCode Solution | 1291 |
323 | Find the Closest Palindrome number | 1291 |
324 | Majority Element | 1291 |
325 | Count Number of Occurrences in a Sorted Array | 1290 |
326 | Top View of Binary Tree | 1289 |
327 | Generate Parentheses Leetcode Solution | 1284 |
328 | House Robber | 1280 |
329 | Fibonacci numbers | 1278 |
330 | Maximal Square | 1276 |
331 | Find Words That Can Be Formed by Characters Leetcode Solution | 1268 |
332 | Expression Contains Redundant Bracket or Not | 1266 |
333 | Add Two Numbers II Leetcode Solution | 1263 |
334 | Unique Paths | 1263 |
335 | Print all Palindromic Partitions of a String | 1263 |
336 | Diagonal Traversal LeetCode Solution | 1262 |
337 | Continuous Subarray Sum LeetCode Solution | 1259 |
338 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 1259 |
339 | Common elements in all rows of a given matrix | 1256 |
340 | Minimum Moves to Equal Array Elements Leetcode Solution | 1255 |
341 | Find minimum difference between any two elements | 1254 |
342 | Min Cost Climbing Stairs LeetCode Solution | 1253 |
343 | Sorting array using Stacks | 1253 |
344 | Find the subarray with least average | 1252 |
345 | Pair of Positive Negative Values in an Array | 1248 |
346 | Stone Game LeetCode | 1246 |
347 | N queen problem | 1244 |
348 | Partition Labels LeetCode Solution | 1243 |
349 | Decompress Run-Length Encoded List Leetcode Solution | 1243 |
350 | Minimum Time Visiting All Points Leetcode Solution | 1242 |
351 | Caesar Cipher | 1242 |
352 | Priority Queue using doubly linked list | 1238 |
353 | Flood Fill LeetCode | 1238 |
354 | How to Implement Stack Using Priority Queue or Heap? | 1234 |
355 | N-th Tribonacci Number Leetcode Solution | 1232 |
356 | Toeplitz Matrix | 1232 |
357 | Next Greater Element III LeetCode Solution | 1231 |
358 | Minimum Operations to convert X to Y | 1231 |
359 | LRU Cache Implementation | 1228 |
360 | Rank Transform of an Array Leetcode Solution | 1227 |
361 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 1226 |
362 | Construct Binary Tree from Given Inorder and Preorder Traversals | 1226 |
363 | Time Based Key-Value Store LeetCode Solution | 1222 |
364 | Hamming Distance Leetcode Solution | 1220 |
365 | H-Index Leetcode Solution | 1219 |
366 | Find Peak Element LeetCode Solution | 1215 |
367 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 1215 |
368 | Sliding Window Technique | 1214 |
369 | Gold Mine Problem | 1213 |
370 | Find the Subarray of given length with Least Average | 1203 |
371 | Palindrome Substring Queries | 1200 |
372 | Find Leaves of Binary Tree LeetCode Solution | 1196 |
373 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 1194 |
374 | Merge K Sorted Arrays and Print Sorted Output | 1192 |
375 | String Matching in an Array Leetcode Solution | 1191 |
376 | Transpose Graph | 1191 |
377 | Painting Fence Algorithm | 1190 |
378 | Recursion | 1189 |
379 | Mobile Numeric Keypad Problem | 1188 |
380 | Minimum Knight Moves LeetCode Solution | 1187 |
381 | Count Good Nodes in Binary Tree Leetcode Solution | 1187 |
382 | Longest Increasing Path in a Matrix LeetCode Solution | 1185 |
383 | Reorder an Array According to the Given Indexes | 1180 |
384 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 1177 |
385 | Stone Game II Leetcode | 1176 |
386 | Letter Case Permutation | 1175 |
387 | Group Anagrams | 1174 |
388 | Maximum Length of Chain Pairs | 1172 |
389 | Iterative Method to find Height of Binary Tree | 1171 |
390 | Sort Array By Parity II Leetcode Solution | 1164 |
391 | Elements Appear more than N/K times in Array | 1164 |
392 | Sort elements by frequency | 1163 |
393 | Diagonal Traverse LeetCode Solution | 1162 |
394 | Remove Nth Node From End of List Leetcode Solution | 1158 |
395 | Jump Game IV LeetCode Solution | 1156 |
396 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 1156 |
397 | Minimum Cost to Hire K Workers | 1152 |
398 | Kruskal Algorithm | 1150 |
399 | K Empty Slots LeetCode | 1149 |
400 | Clone Graph LeetCode Solution | 1147 |
401 | How to Create Mergable Stack? | 1147 |
402 | Nth Catalan Number | 1146 |
403 | Invalid Transactions LeetCode Solution | 1144 |
404 | Best Time to Buy and Sell Stock III Leetcode Solution | 1141 |
405 | Flipping an Image LeetCode Solution | 1140 |
406 | Range Sum of BST LeetCode Solution | 1139 |
407 | Longest subarray not having more than K distinct elements | 1139 |
408 | Partition Problem | 1138 |
409 | Integer to English words | 1136 |
410 | Maximum Subarray | 1135 |
411 | Smallest Subarray with k Distinct Numbers | 1133 |
412 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 1133 |
413 | Sorted Linked List to Balanced BST | 1132 |
414 | Merge Overlapping Intervals II | 1132 |
415 | Maximum Product Subarray II | 1132 |
416 | Distance of nearest cell having 1 in a binary matrix | 1131 |
417 | Sort 0s 1s and 2s in an Array | 1131 |
418 | Merge Sorted Array LeetCode Solution | 1130 |
419 | One Edit Distance LeetCode Solution | 1130 |
420 | Reorder Array Using Given Indexes | 1130 |
421 | Maximum difference between two elements such as larger element comes after smaller | 1129 |
422 | Range Sum Query 2D – Immutable Leetcode Solution | 1128 |
423 | Insert Interval Leetcode Solution | 1128 |
424 | Interval Tree | 1123 |
425 | Find the Smallest Divisor given a Threshold Leetcode Solution | 1122 |
426 | The Stock Span Problem | 1122 |
427 | Best Time to Buy and Sell Stock | 1117 |
428 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 1116 |
429 | Check if a Linked list of Strings form a Palindrome | 1116 |
430 | Number Complement Leetcode Solution | 1115 |
431 | Given an Array of Pairs Find all Symmetric Pairs in it | 1115 |
432 | Check if Two given Strings are Isomorphic to each other | 1115 |
433 | Shortest Word Distance Leetcode Solution | 1114 |
434 | Longest Common Prefix using Sorting | 1114 |
435 | Scramble String LeetCode Solution | 1111 |
436 | Increasing Triplet Subsequence LeetCode Solution | 1109 |
437 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 1104 |
438 | LCS (Longest Common Subsequence) of three strings | 1103 |
439 | Merge Two Binary Trees LeetCode Solution | 1099 |
440 | Longest Common Prefix using Trie | 1092 |
441 | Find the Lost Element From a Duplicated Array | 1092 |
442 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 1089 |
443 | Check if a given array contains duplicate elements within k distance from each other | 1086 |
444 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 1086 |
445 | Queries for GCD of all numbers of an array except elements in a given range | 1085 |
446 | Maximum Size Subarray Sum Equals k Leetcode Solution | 1080 |
447 | Swapping Nodes in a Linked List Leetcode Solution | 1079 |
448 | Search in a Binary Search Tree Leetcode Solution | 1077 |
449 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 1074 |
450 | Find duplicates in a given array when elements are not limited to a range | 1072 |
451 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 1071 |
452 | Queries for counts of array elements with values in given range | 1068 |
453 | Sieve of Eratosthenes | 1066 |
454 | Maximum Depth of N-ary Tree Leetcode Solution | 1065 |
455 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 1064 |
456 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 1063 |
457 | Invert Binary Tree LeetCode Solution | 1062 |
458 | Alien Dictionary LeetCode Solution | 1062 |
459 | Swap Kth Node from beginning with Kth Node from End | 1058 |
460 | Increasing Subsequence of Length three with Maximum Product | 1057 |
461 | 4Sum | 1055 |
462 | Maximum Consecutive Numbers Present in an Array | 1054 |
463 | Maximum sum rectangle in a 2D matrix | 1053 |
464 | Find Median from Data Stream LeetCode Solution | 1051 |
465 | Sequences of given length where every element is more than or equal to twice of previous | 1050 |
466 | Sort a String According to Another String | 1049 |
467 | Find a Sorted Subsequence of size 3 | 1049 |
468 | Minesweeper LeetCode Solution | 1048 |
469 | Contains Duplicate | 1048 |
470 | Insert Delete GetRandom O(1) Leetcode Solution | 1047 |
471 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 1047 |
472 | Largest Rectangle in Histogram LeetCode Solution | 1046 |
473 | Stack Permutations (Check if an array is stack permutation of other) | 1046 |
474 | Number of Days Between Two Dates LeetCode Solution | 1045 |
475 | Remove All Ones With Row and Column Flips Leetcode Solution | 1044 |
476 | Minimize Maximum Pair Sum in Array LeetCode Solution | 1044 |
477 | Last Stone Weight II LeetCode Solution | 1043 |
478 | Shortest Completing Word Leetcode Solution | 1040 |
479 | K-th Distinct Element in an Array | 1040 |
480 | Decode Ways | 1040 |
481 | Decode String | 1040 |
482 | K Closest Points to Origin Leetcode Solution | 1039 |
483 | Count Minimum Steps to Get the given Array | 1039 |
484 | Permutation Sequence LeetCode Solution | 1038 |
485 | Minimum Bracket Reversals | 1034 |
486 | Intersection of Two Linked Lists LeetCode Solution | 1031 |
487 | Check if String Follows Order of Characters by a Pattern or not | 1031 |
488 | Ugly Number II LeetCode Solution | 1030 |
489 | Minimum Absolute Difference in BST Leetcode Solution | 1030 |
490 | Postfix to Prefix Conversion | 1029 |
491 | Set Matrix Zeroes Leetcode Solution | 1028 |
492 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 1026 |
493 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 1022 |
494 | Minimum Height Trees | 1021 |
495 | Reverse Nodes in k-Group LeetCode Solution | 1018 |
496 | The kth Factor of n Leetcode Solution | 1018 |
497 | Find All Possible Recipes from Given Supplies LeetCode Solution | 1018 |
498 | Palindrome Permutation | 1018 |
499 | Sort a stack using recursion | 1018 |
500 | BFS for Disconnected Graph | 1016 |
501 | Convert Sorted List to Binary Search Tree | 1015 |
502 | Count subarrays having total distinct elements same as original array | 1014 |
503 | Huffman Coding | 1014 |
504 | Subset sum problem | 1011 |
505 | Sort an array according to the order defined by another array | 1010 |
506 | Non-decreasing Array LeetCode Solution | 1009 |
507 | Find Element Using Binary Search in Sorted Array | 1009 |
508 | Missing Element in Sorted Array LeetCode Solution | 1008 |
509 | Binary Tree Maximum Path Sum LeetCode Solution | 1005 |
510 | Guess Number Higher or Lower II | 1003 |
511 | Merge Overlapping Intervals | 1003 |
512 | Sorting a K Sorted Array | 1003 |
513 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 996 |
514 | Design A Leaderboard Leetcode Solution | 994 |
515 | Check for Balanced Parentheses in an Expression | 994 |
516 | Find the first Repeating Number in a Given Array | 994 |
517 | Longest Common Prefix Word by Word Matching | 993 |
518 | Find if an Expression has Duplicate Parenthesis or Not | 991 |
519 | Merge Two Balanced Binary Search Trees | 989 |
520 | Count Submatrices With All Ones LeetCode Solution | 987 |
521 | Recover Binary Search Tree Leetcode Solution | 986 |
522 | Tiling Problem | 986 |
523 | Coin Change Problem | 982 |
524 | LRU Cache Leetcode Solution | 981 |
525 | Count items common to both the lists but with different prices | 981 |
526 | Shortest Palindrome | 974 |
527 | Longest Common Prefix Using Binary Search II | 974 |
528 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 970 |
529 | Maximum Number of Occurrences of a Substring Leetcode Solution | 969 |
530 | Vertical Order Traversal of Binary Tree LeetCode Solution | 967 |
531 | Consecutive Characters LeetCode Solution | 966 |
532 | Bubble sort using two Stacks | 965 |
533 | Find All Pairs With a Given Difference | 965 |
534 | Priority Queue in C++ | 961 |
535 | Count ways to reach the nth stair using step 1, 2 or 3 | 960 |
536 | Balanced Expression with Replacement | 960 |
537 | Remove Duplicates from Sorted Array II Leetcode Solution | 959 |
538 | Path Sum II LeetCode Solution | 958 |
539 | Largest Sum Contiguous Subarray | 957 |
540 | MiniMax Algorithm | 956 |
541 | Valid Boomerang Leetcode Solution | 954 |
542 | Remove Invalid Parentheses Leetcode Solution | 951 |
543 | Minimum Sum Path in a Triangle | 950 |
544 | Longest Repeated Subsequence | 945 |
545 | Split Array Into Consecutive Subsequences | 945 |
546 | Rearrange Spaces Between Words Leetcode Solution | 942 |
547 | Insert into a Binary Search Tree Leetcode Solution | 941 |
548 | Edit Distance LeetCode Solution | 940 |
549 | Morris Traversal | 940 |
550 | Perform String Shifts Leetcode | 935 |
551 | Find all pairs (a, b) in an array such that a % b = k | 934 |
552 | Find K Length Subarray of Maximum Average | 933 |
553 | Print all subarrays with 0 sum | 932 |
554 | Search a 2D Matrix II Leetcode Solution | 930 |
555 | Graph Valid Tree LeetCode Solution | 929 |
556 | Container With Most Water LeetCode Solution | 927 |
557 | Integer Break LeetCode Solution | 924 |
558 | Split Linked List in Parts Leetcode Solution | 923 |
559 | Binary Tree zigzag level order Traversal | 923 |
560 | Rearrange array such that even positioned are greater than odd | 922 |
561 | Race Car LeetCode Solution | 920 |
562 | Maximum Distance in Array | 920 |
563 | Minimum number of jumps to reach end | 919 |
564 | Finding K closest element | 919 |
565 | Reverse Nodes in K-Group | 919 |
566 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 918 |
567 | Find Nth Node | 918 |
568 | Queue based approach for first non-repeating character in a stream | 916 |
569 | Trapping Rain Water LeetCode Solution | 916 |
570 | Implement Trie (Prefix Tree) Leetcode Solution | 914 |
571 | Evaluate Reverse Polish Notation LeetCode Solution | 911 |
572 | Print Fibonacci sequence using 2 variables | 911 |
573 | Hamming Distance | 910 |
574 | Container with Most Water | 910 |
575 | Validate Stack Sequences LeetCode Solution | 909 |
576 | Odd Even Linked List Leetcode Solution | 909 |
577 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 908 |
578 | Count pair with Given Sum | 908 |
579 | First missing positive | 907 |
580 | Longest subsequence such that difference between adjacents is one | 905 |
581 | Find Maximum of Minimum for Every Window Size in a Given Array | 905 |
582 | Remove brackets from an algebraic string containing + and – operators | 903 |
583 | Check if Two Expressions With Brackets are Same | 901 |
584 | Reveal Cards In Increasing Order Leetcode Solution | 900 |
585 | Next Permutation LeetCode Solution | 899 |
586 | Find a Peak Element II LeetCode Solution | 898 |
587 | Combination Sum IV LeetCode Solution | 896 |
588 | Restore IP Addresses Leetcode Solution | 895 |
589 | Convert BST to Min Heap | 895 |
590 | Add two numbers | 894 |
591 | Detect Capital Leetcode Solution | 892 |
592 | Difference Array | Range update query in O(1) | 892 |
593 | Merge Two Sorted Arrays | 892 |
594 | How to Efficiently Implement k Stacks in a Single Array? | 891 |
595 | Camelcase Matching Leetcode Solution | 890 |
596 | Reorder Data in Log Files LeetCode Solution | 886 |
597 | Check if any two intervals overlap among a given set of intervals | 885 |
598 | Largest rectangular sub-matrix whose sum is 0 | 885 |
599 | Cells with Odd Values in a Matrix LeetCode Solution | 884 |
600 | Maximum Product of Splitted Binary Tree LeetCode Solution | 884 |
601 | Valid Sudoku | 884 |
602 | Recover Binary Search Tree | 883 |
603 | Brightest Position on Street LeetCode Solution | 881 |
604 | Infix to Postfix | 879 |
605 | Mean of Array After Removing Some Elements Leetcode Solution | 878 |
606 | Count and Say | 878 |
607 | String comparison containing wildcards | 878 |
608 | Unique Paths III LeetCode Solution | 876 |
609 | Queue Reconstruction by Height | 875 |
610 | Number of Equivalent Domino Pairs Leetcode Solution | 873 |
611 | Non-overlapping sum of two sets | 873 |
612 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 872 |
613 | Partition List Leetcode Solution | 870 |
614 | Queue using Stacks | 870 |
615 | Remove Palindromic Subsequences Leetcode Solution | 869 |
616 | Sort Colors | 867 |
617 | Minimum Distance Between BST Nodes Leetcode Solution | 866 |
618 | Counting Bits | 866 |
619 | Number of Distinct Islands Leetcode Solution | 865 |
620 | Build an Array With Stack Operations Leetcode Solution | 865 |
621 | 3 Sum | 865 |
622 | Construct BST from its given Level Order Traversal | 864 |
623 | Permutations of a Given String Using STL | 864 |
624 | Kth Smallest Element in a BST Leetcode Solution | 863 |
625 | Minimum Jumps to Reach Home LeetCode Solution | 863 |
626 | Heap Sort | 863 |
627 | Find four elements that sum to a given value (Hashmap) | 862 |
628 | Kth ancestor of a node in binary tree | 861 |
629 | Pair with given product | 861 |
630 | Median of Two Sorted Arrays | 860 |
631 | Check if a queue can be sorted into another queue using a stack | 858 |
632 | Find subarray with given sum (Handles Negative Numbers) | 857 |
633 | New 21 Game | 857 |
634 | Matrix Chain Multiplication | 855 |
635 | Construct BST from given Preorder Traversal | 855 |
636 | Different Ways to Add Parentheses Leetcode Solution | 853 |
637 | My Calendar I LeetCode Solution | 853 |
638 | Find whether a subarray is in form of a mountain or not | 853 |
639 | Find Duplicate Subtrees | 853 |
640 | The Maze III LeetCode Solution | 852 |
641 | Find all triplets with zero sum | 852 |
642 | Minimum time required to rot all oranges | 852 |
643 | Pancake Sorting | 850 |
644 | Smallest Good Base | 846 |
645 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 845 |
646 | Segregate 0s and 1s in an Array | 845 |
647 | Snakes and Ladders LeetCode Solution | 844 |
648 | Four Elements that Sum to Given | 844 |
649 | Vertical sum in a given binary tree | 843 |
650 | Validate Binary Search Tree | 843 |
651 | Unique Binary Search Trees | 842 |
652 | Subarrays with K Different Integers Leetcode Solution | 840 |
653 | Reformat Date LeetCode Solution | 840 |
654 | Longest Subarray Having Count of 1s One More than Count of 0s | 839 |
655 | Inorder Successor of a node in Binary Tree | 839 |
656 | Sort Elements by Frequency II | 839 |
657 | Word Pattern | 838 |
658 | Invert Binary Tree LeetCode Solution | 837 |
659 | Substring with Concatenation of All Words Leetcode Solution | 836 |
660 | Maximum Score After Splitting a String Leetcode Solution | 835 |
661 | Populating Next Right Pointers in Each Node Leetcode Solution | 834 |
662 | Serialize and Deserialize Binary Tree LeetCode Solution | 832 |
663 | Count Distinct Elements in Every Window of Size K | 832 |
664 | Distance Between Bus Stops Leetcode Solution | 831 |
665 | Construction of Longest Increasing Subsequence (N log N) | 831 |
666 | Find Median from data Stream | 830 |
667 | Alien Dictionary | 830 |
668 | Find the Town Judge LeetCode Solution | 827 |
669 | Web Crawler LeetCode Solution | 826 |
670 | Find the largest multiple of 3 | 825 |
671 | Design Hit Counter LeetCode Solution | 824 |
672 | Count the Pairs at Same Distance as in English Alphabets | 823 |
673 | Palindromic Substrings Leetcode Solution | 820 |
674 | Check If Array Pairs Are Divisible by k LeetCode Solution | 820 |
675 | All Unique Triplets that Sum up to a Given Value | 820 |
676 | Linked List Cycle | 819 |
677 | Special Positions in a Binary Matrix Leetcode Solution | 817 |
678 | Valid Anagrams | 817 |
679 | Is Graph Bipartite? LeetCode Solution | 816 |
680 | Maximum size subarray sum equals k | 816 |
681 | Merging Two Sorted Arrays | 816 |
682 | Merge K Sorted Linked Lists | 814 |
683 | Union and Intersection of two Linked Lists | 813 |
684 | Word Break | 813 |
685 | Find distance between two nodes of a Binary Tree | 811 |
686 | Partition to K Equal Sum Subsets Leetcode Solution | 810 |
687 | Climbing stairs | 810 |
688 | Sum Root to Leaf Numbers LeetCode Solution | 809 |
689 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 809 |
690 | Tree Traversal (Preorder, Inorder & Postorder) | 809 |
691 | An Interesting Method to generate Binary Numbers from 1 to n | 808 |
692 | K maximum sums of overlapping contiguous sub-arrays | 807 |
693 | Maximum difference between first and last indexes of an element in array | 806 |
694 | Breadth First Search (BFS) for a Graph | 805 |
695 | Brick Wall LeetCode Solution | 804 |
696 | Custom Sort String Leetcode Solution | 802 |
697 | A Space Optimized DP solution for 0-1 Knapsack Problem | 801 |
698 | Bitwise AND of Numbers Range LeetCode Solution | 800 |
699 | Remove Duplicates from Sorted List II | 799 |
700 | Delete Nth node from the end of the given linked list | 799 |
701 | Substring With Concatenation Of All Words | 799 |
702 | Lower Case To Upper Case | 799 |
703 | Path Crossing Leetcode Solution | 798 |
704 | Populating Next Right Pointers in Each Node | 796 |
705 | Best Meeting Point LeetCode Solution | 795 |
706 | Most Stones Removed with Same Row or Column LeetCode Solution | 794 |
707 | Count Sub Islands LeetCode Solution | 794 |
708 | Minimum Height Trees LeetCode Solution | 794 |
709 | Subset Sum Problem in O(sum) space | 794 |
710 | Level order traversal using two Queues | 793 |
711 | Symmetric Tree | 793 |
712 | Possible Bipartition LeetCode Solution | 792 |
713 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 792 |
714 | Valid Parenthesis String | 792 |
715 | Find maximum length Snake sequence | 791 |
716 | Number of palindromic paths in a matrix | 790 |
717 | Spiral Matrix III LeetCode Solution | 789 |
718 | Find Common Characters Leetcode Solution | 789 |
719 | Sliding Window Maximum LeetCode Solution | 787 |
720 | Concatenation of Array LeetCode Solution | 787 |
721 | Count number of triplets with product equal to given number | 787 |
722 | Isomorphic Strings | 784 |
723 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 783 |
724 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 783 |
725 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 783 |
726 | Length of Longest Fibonacci Subsequence | 783 |
727 | Longest Increasing Subsequence | 781 |
728 | Iterative Preorder Traversal | 780 |
729 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 779 |
730 | Divide Chocolate LeetCode Solution | 778 |
731 | Next Greater Element in an Array | 778 |
732 | Merge Two Sorted Lists Leetcode | 777 |
733 | Sliding Window Median Leetcode Solution | 774 |
734 | Design a Stack With Increment Operation Leetcode Solution | 774 |
735 | Find the first repeating element in an array of integers | 774 |
736 | Maximum Product Subarray | 774 |
737 | Partition Equal Subset Sum | 771 |
738 | Products of ranges in an array | 770 |
739 | Contiguous Array Leetcode | 770 |
740 | Palindrome Partitioning Leetcode Solution | 769 |
741 | Find Maximum Sum Possible Equal Sum of Three Stacks | 769 |
742 | Print all triplets in sorted array that form AP | 768 |
743 | Nearest Exit from Entrance in Maze LeetCode Solution | 766 |
744 | Number of Islands II LeetCode Solution | 765 |
745 | Given a binary tree, how do you remove all the half nodes? | 764 |
746 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 763 |
747 | Shuffle an Array | 763 |
748 | Create Maximum Number | 762 |
749 | Print a Binary Tree in Vertical Order | 761 |
750 | Valid Parentheses Leetcode Solution | 760 |
751 | Minimum Swaps to Make Strings Equal Leetcode Solution | 760 |
752 | Rectangle Overlap LeetCode Solution | 759 |
753 | Remove duplicates from sorted array | 759 |
754 | Path With Maximum Minimum Value LeetCode Solution | 757 |
755 | Maximize Sum of Array after K Negations Leetcode Solution | 757 |
756 | Rearrange an Array Such that arr[i] is equal to i | 757 |
757 | Analyze User Website Visit Pattern LeetCode Solution | 756 |
758 | Check if two nodes are on the same path in a Tree | 756 |
759 | Print all Possible Ways to Break a String in Bracket Form | 756 |
760 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 755 |
761 | Shifting Letters LeetCode Solution | 755 |
762 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 754 |
763 | Root to Leaf path with target sum Leetcode Solutions | 754 |
764 | Level order Traversal in Spiral Form | 753 |
765 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 752 |
766 | Construct Binary Tree from given Parent Array representation | 752 |
767 | The Painter’s Partition Problem | 751 |
768 | Boolean Parenthesization Problem | 750 |
769 | Iterative Depth First Traversal of Graph | 750 |
770 | Verify Preorder Serialization of a Binary Tree | 750 |
771 | Advantages of BST over Hash Table | 749 |
772 | Path Sum | 748 |
773 | Longest Common Prefix using Character by Character Matching | 745 |
774 | Find the Difference Leetcode Solution | 744 |
775 | Count pairs from two linked lists whose sum is equal to a given value | 744 |
776 | Find Largest Value in Each Tree Row LeetCode Solution | 742 |
777 | Boundary Traversal of binary tree | 742 |
778 | Find Peak Element | 740 |
779 | Valid Number | 739 |
780 | Count Primes in Ranges | 738 |
781 | Reach a Number LeetCode Solution | 737 |
782 | Maximum Sum of 3 Non-Overlapping Subarrays | 737 |
783 | Find Largest d in Array such that a + b + c = d | 735 |
784 | Perfect Squares LeetCode Solution | 733 |
785 | Maximum subsequence sum such that no three are consecutive | 733 |
786 | Number of siblings of a given Node in n-ary Tree | 733 |
787 | Rotate Array | 731 |
788 | Binary Search Tree Search and Insertion | 729 |
789 | Smallest Range II Leetcode Solution | 728 |
790 | Find minimum number of merge operations to make an array palindrome | 728 |
791 | Find the First Circular Tour that visits all the Petrol Pumps | 727 |
792 | Sorted Array to Balanced BST | 727 |
793 | Monotonic Array Leetcode Solution | 726 |
794 | Count Good Nodes in Binary Tree LeetCode Solution | 724 |
795 | Robot Bounded In Circle LeetCode Solution | 724 |
796 | Longest Palindromic Subsequence | 724 |
797 | Missing Number | 724 |
798 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 723 |
799 | Range LCM Queries | 722 |
800 | Balanced Binary Tree | 722 |
801 | Maximum Frequency Stack Leetcode Solution | 718 |
802 | Contiguous Array | 718 |
803 | Queries on Probability of Even or Odd Number in given Ranges | 718 |
804 | Palindrome Partitioning | 718 |
805 | Iterative Postorder Traversal Using Two Stacks | 717 |
806 | Topological Sorting | 717 |
807 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 716 |
808 | Distinct Subsequences | 715 |
809 | Number Of Longest Increasing Subsequence | 714 |
810 | BFS vs DFS for Binary Tree | 714 |
811 | Merging Intervals | 711 |
812 | Reorganize String | 711 |
813 | Binary Tree Inorder Traversal LeetCode Solution | 710 |
814 | Shuffle a given Array | 710 |
815 | Contains Duplicate LeetCode Solution | 708 |
816 | Happy Number | 708 |
817 | Deletion in a Binary Tree | 708 |
818 | Largest subarray with equal number of 0s and 1s | 707 |
819 | Binary Search Tree Delete Operation | 706 |
820 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 705 |
821 | Binary Tree Right Side View LeetCode Solution | 700 |
822 | Averages of Levels in Binary Tree | 700 |
823 | Find the node with minimum value in a Binary Search Tree | 697 |
824 | Print All Distinct Elements of a Given Integer Array | 696 |
825 | High Five LeetCode Solution | 694 |
826 | Super Ugly Number | 694 |
827 | Fibonacci Number LeetCode Solution | 693 |
828 | Paint House LeetCode Solution | 693 |
829 | Check if an Array is Stack Sortable | 692 |
830 | First Bad Version | 692 |
831 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 689 |
832 | Find Minimum In Rotated Sorted Array | 688 |
833 | Insert Delete GetRandom | 688 |
834 | Level of Each node in a Tree from source node | 687 |
835 | Employee Importance LeetCode Solution | 686 |
836 | Maximum Product Subarray | 685 |
837 | Red-Black Tree Introduction | 684 |
838 | Guess The Word | 684 |
839 | Numbers with prime frequencies greater than or equal to k | 683 |
840 | Minimum Size Subarray Sum | 683 |
841 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 681 |
842 | Lowest Common Ancestor | 681 |
843 | Range Sum Query using Sparse Table | 679 |
844 | Binary array after M range toggle operations | 677 |
845 | Find K Closest Elements LeetCode Solution | 676 |
846 | Nested List Weight Sum II LeetCode Solution | 676 |
847 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 676 |
848 | Find pairs with given sum such that elements of pair are in different rows | 676 |
849 | Integer to Roman | 676 |
850 | Maximum Number of Ways to Partition an Array LeetCode Solution | 673 |
851 | Print n terms of Newman-Conway Sequence | 671 |
852 | Sliding Window Maximum | 671 |
853 | Newman-Conway Sequence | 666 |
854 | Binary Tree to Binary Search Tree Conversion | 666 |
855 | Print Next Greater Number of Q queries | 666 |
856 | Third Maximum Number Leetcode Solution | 665 |
857 | Longest Increasing Consecutive Subsequence | 665 |
858 | Find the smallest binary digit multiple of given number | 663 |
859 | K’th Largest Element in BST when modification to BST is not allowed | 663 |
860 | Collect maximum points in a grid using two traversals | 663 |
861 | Reservoir Sampling | 663 |
862 | Find Sum of all unique sub-array sum for a given array | 662 |
863 | Sort Array by Increasing Frequency Leetcode Solution | 658 |
864 | Reverse a Path in BST using Queue | 658 |
865 | Best Time to Buy and Sell Stock IV LeetCode Solution | 657 |
866 | Design Skiplist LeetCode Solution | 657 |
867 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 656 |
868 | Arrange given numbers to form the biggest number | 656 |
869 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 650 |
870 | A program to check if a binary tree is BST or not | 650 |
871 | Maximize Elements Using Another Array | 649 |
872 | Transform a BST to Greater sum Tree | 649 |
873 | Search in Sorted Rotated Array | 649 |
874 | Largest divisible pairs subset | 648 |
875 | Unique Binary Search Trees LeetCode Solution | 647 |
876 | Print Right View of a Binary Tree | 647 |
877 | Longest Bitonic Subsequence | 644 |
878 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 642 |
879 | Find Smallest Range Containing Elements from k Lists | 641 |
880 | Friends Of Appropriate Ages LeetCode Solution | 640 |
881 | Height of a generic tree from parent array | 640 |
882 | Swap Nodes In Pairs | 640 |
883 | Level Order Traversal of Binary Tree | 639 |
884 | Range Sum Query 2D – Immutable LeetCode Solution | 638 |
885 | Diagonal Traversal of Binary Tree | 638 |
886 | Check Completeness of a Binary Tree LeetCode Solution | 635 |
887 | Palindrome Permutation LeetCode Solution | 634 |
888 | Edit Distance | 634 |
889 | Next greater element | 634 |
890 | Convert BST into a Min-Heap without using array | 633 |
891 | Minimum insertions to form a palindrome with permutations allowed | 630 |
892 | Delete Nodes and Return Forest Leetcode Solution | 628 |
893 | Moving Stones Until Consecutive Leetcode Solution | 628 |
894 | Valid Triangle Number LeetCode Solution | 627 |
895 | Merge Sorted Array | 627 |
896 | Kill Process LeetCode Solution | 622 |
897 | Check for Palindrome after every character replacement Query | 618 |
898 | Minimum sum of squares of character counts in a given string after removing k characters | 618 |
899 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 617 |
900 | Find Maximum Depth of Nested Parenthesis in a String | 615 |
901 | Find unique character in a string | 615 |
902 | Longest Substring Without Repeating Characters Leetcode Solution | 611 |
903 | Flatten 2D Vector LeetCode Solution | 610 |
904 | Power of Two | 610 |
905 | Queries on XOR of greatest odd divisor of the range | 609 |
906 | Diameter of N-Ary Tree LeetCode Solution | 606 |
907 | Find postorder traversal of BST from preorder traversal | 606 |
908 | Maximum Product Subarray | 606 |
909 | Friends Pairing Problem | 605 |
910 | Priority Queue | 602 |
911 | Construct Complete Binary Tree from its Linked List Representation | 601 |
912 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 600 |
913 | Bottom View of a Binary Tree | 600 |
914 | Form Minimum Number From Given Sequence | 599 |
915 | Contiguous Array LeetCode Solution | 598 |
916 | Maximum weight transformation of a given string | 598 |
917 | Dividing Array into Pairs With Sum Divisible by K | 598 |
918 | Merge two BSTs with limited extra space | 597 |
919 | All Possible Full Binary Trees LeetCode Solution | 596 |
920 | Queries for Number of Distinct Elements in a Subarray | 596 |
921 | Maximum number of segments of lengths a, b and c | 596 |
922 | Regular Expression Matching | 596 |
923 | Binary Search Tree | 595 |
924 | Maximum Array from Two given Arrays Keeping Order Same | 593 |
925 | Serialize and Deserialize Binary Tree | 593 |
926 | Valid Perfect Square LeetCode Solution | 592 |
927 | K Empty Slots | 592 |
928 | Check if all levels of two Binary Tree are anagrams or not | 590 |
929 | Maximum Population Year LeetCode Solution | 588 |
930 | Closest Binary Search Tree Value Leetcode Solution | 588 |
931 | Array Nesting Leetcode Solution | 588 |
932 | Print modified array after multiple array range increment operations | 587 |
933 | Parallel Courses II LeetCode Solution | 586 |
934 | Count and Toggle Queries on a Binary Array | 585 |
935 | Design Add and Search Words Data Structure LeetCode Solution | 584 |
936 | Write Code to Determine if Two Trees are Identical | 584 |
937 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 583 |
938 | Isomorphic Strings LeetCode Solution | 581 |
939 | Next Greater Element II LeetCode Solution | 580 |
940 | Defanging an IP Address LeetCode Solution | 579 |
941 | Largest Submatrix With Rearrangements LeetCode Solution | 578 |
942 | Find k-th smallest element in BST (Order Statistics in BST) | 578 |
943 | Implement strStr() LeetCode Solution | 576 |
944 | Maximum Sum Increasing Subsequence | 576 |
945 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 575 |
946 | Arithmetic Slices II – Subsequence LeetCode Solution | 575 |
947 | K’th Largest element in BST using constant extra space | 575 |
948 | Merge Sort | 575 |
949 | Search an Element in Sorted Rotated Array | 574 |
950 | Valid Tic-Tac-Toe State LeetCode Solution | 572 |
951 | Check if X can give change to every person in the Queue | 571 |
952 | Find maximum average subarray of k length | 567 |
953 | Unique Paths II | 566 |
954 | Array Queries for multiply replacements and product | 565 |
955 | Peak Index in a Mountain Array LeetCode Solution | 564 |
956 | Score of Parenthesis LeetCode Solution | 563 |
957 | Bold Words in String LeetCode Solution | 561 |
958 | Clone a Binary Tree with Random Pointers | 561 |
959 | Print Ancestors of a Given Binary Tree Node Without Recursion | 560 |
960 | Lowest Common Ancestor in Binary Search Tree | 557 |
961 | Maximum Binary Tree | 556 |
962 | Valid Triangle Number LeetCode Solution | 554 |
963 | Maximum Depth Of Binary Tree | 552 |
964 | Range Queries for Longest Correct Bracket Subsequence | 551 |
965 | Trapping Rain Water II LeetCode Solution | 550 |
966 | Orderly Queue LeetCode Solution | 550 |
967 | Count even length binary sequences with same sum of first and second half bits | 550 |
968 | Segment Tree | 549 |
969 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 548 |
970 | Kth Smallest Element in a BST | 548 |
971 | Flatten Binary Tree to Linked List LeetCode Solution | 544 |
972 | Largest BST Subtree LeetCode Solution | 542 |
973 | Cutting a Rod | 539 |
974 | Factorial Trailing Zeroes LeetCode Solution | 537 |
975 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 532 |
976 | Random Pick Index LeetCode Solution | 532 |
977 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 531 |
978 | Constant time range add operation on an array | 531 |
979 | Insert into a Sorted Circular Linked List LeetCode Solution | 530 |
980 | Palindrome Partitioning | 530 |
981 | Data Structure Designing | 529 |
982 | Count Pairs Whose Products Exist in Array | 528 |
983 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 526 |
984 | Koko Eating Bananas LeetCode Solution | 526 |
985 | Form minimum number from given sequence | 525 |
986 | Number of elements less than or equal to a given number in a given subarray | 523 |
987 | The Number of Weak Characters in the Game LeetCode Solution | 522 |
988 | Shortest Unsorted Continuous Subarray LeetCode Solution | 522 |
989 | Largest Plus Sign Leetcode Solution | 522 |
990 | Symmetric Tree LeetCode Solution Leetcode Solution | 522 |
991 | Iterative method to find ancestors of a given binary tree | 519 |
992 | Kth Smallest Number in Multiplication Table Leetcode Solution | 518 |
993 | Graph Cloning | 518 |
994 | Check given array of size n can represent BST of n levels or not | 515 |
995 | Champagne Tower LeetCode Solution | 511 |
996 | Check if each internal node of a BST has exactly one child | 511 |
997 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 507 |
998 | Queries for Decimal Values of Subarrays of a Binary Array | 507 |
999 | Minimum Moves to Equal Array Elements LeetCode Solution | 504 |
1000 | Write a function to get the intersection point of two Linked Lists | 504 |
1001 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 503 |
1002 | Encoded String With Shortest Length LeetCode Solution | 502 |
1003 | Swim in Rising Water LeetCode Solution | 497 |
1004 | Closest Leaf in a Binary Tree LeetCode Solution | 496 |
1005 | Greatest Sum Divisible by Three LeetCode Solution | 493 |
1006 | Stone Game IV LeetCode Solution | 492 |
1007 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 489 |
1008 | Excel Sheet Column Number LeetCode Solution | 484 |
1009 | Best Meeting Point LeetCode Solution | 483 |
1010 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 482 |
1011 | Sum of Left Leaves LeetCode Solution | 480 |
1012 | Binary Tree to Binary Search Tree Conversion using STL set | 478 |
1013 | Total Hamming Distance LeetCode Solution | 473 |
1014 | Image Overlap LeetCode Solution | 469 |
1015 | How to print maximum number of A’s using given four keys | 460 |
1016 | Excel Sheet Column Title LeetCode Solution | 453 |
1017 | Print Maximum Length Chain of Pairs | 446 |
1018 | Number of Orders in the Backlog Leetcode Solution | 444 |
1019 | Group Shifted Strings Leetcode Solution | 441 |
1020 | Next Greater Element I Leetcode Solution | 434 |
1021 | Decrease Elements To Make Array Zigzag LeetCode Solution | 426 |
1022 | Stone Game IV LeetCode Solution | 424 |
1023 | Find the Town Judge LeetCode Solution | 414 |
1024 | Closest Binary Search Tree Value II LeetCode Solution | 411 |
1025 | Design Underground System Leetcode Solution | 406 |
1026 | Sentence Screen Fitting LeetCode Solution | 403 |
1027 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 400 |
1028 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 398 |
1029 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 374 |
1030 | Peeking Iterator LeetCode Solution | 367 |
1031 | Flatten Binary Tree to Linked List LeetCode Solution | 271 |