S.No |
Interview Question |
Number of times has been asked |
1 | Delete a node in doubly linked list | 2813 |
2 | Java program to find the number of Nodes in a Binary Tree | 2497 |
3 | Reverse a string without affecting special characters | 2451 |
4 | Delete a node of a linked list at given position | 1971 |
5 | Palindrome using Recursion | 1772 |
6 | Insert nodes in a linked list in a sorted way (Ascending Order) | 1655 |
7 | Find elements pair from array whose sum equal to number | 1643 |
8 | Sort Elements by Frequency of Occurrences | 1622 |
9 | Write a program to print all permutations of a given string | 1598 |
10 | Find Minimum Distance Between Two Numbers in an Array | 1465 |
11 | Create a Doubly Linked List | 1442 |
12 | Quick Sort | 1414 |
13 | Reverse an Array | 1405 |
14 | Smallest window in a string containing all characters of another string | 1387 |
15 | Find a Triplet That Sum to a Given Value | 1353 |
16 | Recursively remove all adjacent duplicates | 1347 |
17 | First Repeating Element | 1330 |
18 | Arrange Even and Odd number such that Odd comes after Even | 1315 |
19 | Sum of numbers in String | 1308 |
20 | Smallest Positive Number Missing in an Unsorted Array | 1276 |
21 | Check if the Elements of an Array are Consecutive | 1246 |
22 | Detect a loop in the Linked List | 1233 |
23 | Largest Sum Contiguous Subarray | 1223 |
24 | Quick Sort on SIngly Linked List | 1211 |
25 | Subarray with Given Sum | 1205 |
26 | Print all Possible Combinations of R Elements in a given Array of size N | 1196 |
27 | Recursive function to do substring search | 1193 |
28 | Find the Maximum Repeating Number in Array | 1147 |
29 | Binary Tree Level order traversal in Java | 1121 |
30 | Find the First and Second Smallest Elements | 1115 |
31 | Check if two linked lists are identical | 1099 |
32 | Maximum Subarray Sum using Divide and Conquer | 1096 |
33 | Remove characters from first string which are in second | 1063 |
34 | Find Leaders in an Array | 1056 |
35 | Swap nodes in the linked list | 1030 |
36 | Find the Number Occurring Odd Number of Times in an Array | 998 |
37 | Arrange given Numbers to Form the Biggest Number II | 987 |
38 | Find the second most frequent character | 983 |
39 | Given a string find its first non-repeating character | 962 |
40 | Find Triplet in Array With a Given Sum | 955 |
41 | Given a sorted array and a number x, find the pair in array whose sum is closest to x | 949 |
42 | Total number of occurrences of a given item in the linked list | 949 |
43 | A Program to check if strings are rotations of each other or not | 940 |
44 | Print all possible words from phone digits | 927 |
45 | Find the Missing Number | 920 |
46 | Rearrange Positive and Negative Numbers Alternatively in Array | 912 |
47 | Longest Palindromic Substring | 896 |
48 | Segregate even and odd nodes in a linked list | 880 |
49 | Print Longest common subsequence | 876 |
50 | Union and Intersection of Two Linked Lists | 869 |
51 | Transform one string to another using minimum number of given operations | 860 |
52 | Rearrange given Array in Maximum Minimum Form | 840 |
53 | Check rearranged string can form a palindrome | 840 |
54 | Count Possible Triangles | 816 |
55 | Iterative Implementation of Quick Sort | 811 |
56 | Multiplication of Two Matrices | 795 |
57 | Check if the linked list is palindrome | 792 |
58 | Rotate a Linked List | 787 |
59 | Count of Triplets With Sum Less than Given Value | 787 |
60 | Stock Buy Sell to Maximize Profit | 782 |
61 | Concatenation of two strings | 755 |
62 | Tug of War | 754 |
63 | Count Number of Substrings with K Distinct Character’s | 750 |
64 | Print all duplicates in the input string | 747 |
65 | Find Nearest Greater and Smaller Element | 739 |
66 | The Celebrity Problem | 734 |
67 | Find Pythagorean Triplets from Array | 733 |
68 | Reverse String Without Temporary Variable | 726 |
69 | Remove ‘b’ and ‘ac’ from a given string | 725 |
70 | Find all Common Elements in Given Three Sorted Arrays | 723 |
71 | Remove all duplicates in an unsorted linked list | 705 |
72 | Find the Row with Maximum Number of 1’s | 701 |
73 | Find the Peak Element from an Array | 693 |
74 | Find the subarray whose sum is equal to a given number X | 692 |
75 | Insertion Sort | 684 |
76 | Remove Minimum Characters so that Two Strings Become Anagrams | 683 |
77 | A Product Array Puzzle | 679 |
78 | Find Smallest Missing Number in a Sorted Array | 679 |
79 | Addition of Two Matrices | 677 |
80 | Implement Two Stacks in an Array | 671 |
81 | Generate all Binary Strings Without Consecutive 1’s | 669 |
82 | Maximum Sum of Non Consecutive Elements | 666 |
83 | Maximum Product Subarray II | 657 |
84 | Lexicographic rank of string | 648 |
85 | Multiplication of Previous and Next | 640 |
86 | Check if Two given Matrices are Identical | 640 |
87 | Merge K Sorted Arrays and Print Sorted Output | 630 |
88 | Subtraction of Two Matrices | 630 |
89 | Move All the Zeros to the End of the Given Array | 624 |
90 | Divide a string in N equal parts | 619 |
91 | Form Minimum Number from Given Sequence of D’s and I’s | 617 |
92 | Online Algorithm for Checking Palindrome in a Stream | 617 |
93 | Check whether two strings are anagram of each other | 610 |
94 | Remove recurring digits in a given number | 607 |
95 | Sort a linked list that is sorted alternating ascending and descending | 606 |
96 | Maximum Circular Subarray Sum | 605 |
97 | Sort a stack using a temporary stack | 603 |
98 | Move last element of the Linked List at first place | 600 |
99 | Find the Minimum Element in a Sorted and Rotated Array | 597 |
100 | First Circular Tour to Visit all the Petrol Bunks | 595 |
101 | Subarray and Subsequence | 591 |
102 | Largest Subarray with Equal Number of 0’s and 1’s | 591 |
103 | Flattening a linked list | 589 |
104 | Compare two strings(linked lists) | 588 |
105 | Maximum Element in an Array which is Increasing and then Decreasing | 587 |
106 | Palindrome Permutations of a String | 581 |
107 | Elements Appear more than N/K times in Array | 576 |
108 | Majority Element | 572 |
109 | Run length encoding | 571 |
110 | Minimum insertions to form a shortest palindrome | 570 |
111 | Print all permutations with repetition | 569 |
112 | Palindromes in a given range | 569 |
113 | Pangram Checking | 564 |
114 | Rearrange a given linked list in-place | 561 |
115 | Remove all duplicates in a sorted linked list | 560 |
116 | Merge a linked list into another at alternate positions | 560 |
117 | Minimum Characters to be Added at Front to Make String Palindrome | 558 |
118 | Minimum number of Merge Operations to make an Array Palindrome | 556 |
119 | Rotate string to get lexicographically minimum string | 555 |
120 | Repeated Subsequence of Length Two or More | 553 |
121 | Most repeating character in a string | 550 |
122 | Print all anagrams together in a sequence of words | 548 |
123 | Reorder an Array According to the Given Indexes | 546 |
124 | Pancake Sorting Problem | 539 |
125 | Clone a Linked List with next and random pointer | 535 |
126 | Merge Overlapping Intervals II | 533 |
127 | Two Sum Leetcode Solution | 525 |
128 | Size of The Subarray With Maximum Sum | 524 |
129 | Transpose of a Matrix | 521 |
130 | Removing Spaces from a String using stringstream | 517 |
131 | Remove Extra Spaces from a String | 517 |
132 | Check if a given string is a rotation of a palindrome | 514 |
133 | Partition Problem | 513 |
134 | Smallest Palindrome after Replacement | 512 |
135 | Remove duplicates from a string | 512 |
136 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 510 |
137 | Maximum Sum Increasing Subsequence | 509 |
138 | Generate all Binary Strings from Given Pattern | 498 |
139 | Check whether Strings are K Distance Apart or Not | 497 |
140 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 495 |
141 | Insert Node in the Sorted Linked List | 495 |
142 | Delete Last Occurrence | 494 |
143 | Length of Longest valid Substring | 493 |
144 | 3Sum Leetcode Solution | 490 |
145 | Check if Two given Strings are Isomorphic to each other | 488 |
146 | Maximum difference between two elements such as larger element comes after smaller | 484 |
147 | Program to Toggle all Characters in a String | 480 |
148 | Given string is interleaving of two other strings or not | 478 |
149 | Count Minimum Steps to Get the given Array | 477 |
150 | Merge sort better than quick sort for linked lists | 473 |
151 | Number of Smaller Elements on Right Side | 470 |
152 | Find Pair with Given Difference | 468 |
153 | Check length of a String is Equal to the Number Appended at its Last | 467 |
154 | Check if all Rows of a Matrix are Circular Rotations of Each Other | 467 |
155 | Longest Common Prefix using Divide and Conquer | 466 |
156 | Find nth node of the Linked list from the end | 465 |
157 | Sort 0s 1s and 2s in an Array | 456 |
158 | Find a Fixed Point in a Given Array | 455 |
159 | Print all interleavings of given two strings | 454 |
160 | Merge two sorted linked lists such that merged list is in reverse order | 452 |
161 | Find the Subarray of given length with Least Average | 451 |
162 | Compare Two Version Numbers | 450 |
163 | Reorder Array Using Given Indexes | 449 |
164 | Split linked list using alternate nodes | 448 |
165 | Reverse words in a given string | 448 |
166 | Print Reverse of a string (Recursion) | 444 |
167 | Median of Two Sorted Arrays LeetCode Solution | 443 |
168 | Print string of odd length in ‘X’ format | 433 |
169 | Swap Kth Node from beginning with Kth Node from End | 430 |
170 | Find Element Using Binary Search in Sorted Array | 429 |
171 | Find K Length Subarray of Maximum Average | 429 |
172 | Print all Palindromic Partitions of a String | 426 |
173 | Find Duplicates in an Array in Most Efficient Way | 420 |
174 | print all palindromic partitions | 418 |
175 | Flatten a multilevel linked list | 414 |
176 | Shortest Superstring Problem | 413 |
177 | Maximum Length of Chain Pairs | 409 |
178 | Sorting a K Sorted Array | 407 |
179 | Check if String Follows Order of Characters by a Pattern or not | 407 |
180 | Sort a String According to Another String | 400 |
181 | Longest Span with same Sum in two Binary Arrays II | 396 |
182 | Reverse a Linked List in groups | 394 |
183 | Find a Sorted Subsequence of size 3 | 390 |
184 | Program to add two binary digits | 386 |
185 | Recursively print all the sentences that can be formed from list of word lists | 385 |
186 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 385 |
187 | Longest Common Prefix Using Binary Search II | 382 |
188 | Reverse a Singly Linked List (Iterative/Non-Recursive) | 379 |
189 | Rearrange a linked list in Zig-Zag | 376 |
190 | Kth Non-repeating Character | 375 |
191 | Caesar Cipher | 374 |
192 | Check if String can Become Empty by Recursively Deleting given Substring | 373 |
193 | Pancake Sorting | 371 |
194 | Rotate Image by 90 degrees | 369 |
195 | Longest Common Prefix Word by Word Matching | 367 |
196 | Perfect Reversible String | 363 |
197 | Permutations of a Given String Using STL | 362 |
198 | Merging Two Sorted Arrays | 360 |
199 | Increasing Subsequence of Length three with Maximum Product | 360 |
200 | Construct a Maximum Sum Linked List out of two Sorted Linked Lists having some Common nodes | 357 |
201 | Find the point where a monotonically increasing function becomes positive first time | 357 |
202 | Sort a linked list with 0s, 1s and 2s | 356 |
203 | 1`s and 2`s complement of binary number | 354 |
204 | Find First non-repeating character in a string | 354 |
205 | Four Elements that Sum to Given | 351 |
206 | List items containing all characters of a given word | 350 |
207 | Delete N nodes after M | 350 |
208 | Longest Common Prefix using Character by Character Matching | 347 |
209 | Count Number of Occurrences in a Sorted Array | 343 |
210 | Split a string | 338 |
211 | Palindrome string (number) | 337 |
212 | Minimum Characters to be Removed to Make a Binary String Alternate | 336 |
213 | Check if a Linked list of Strings form a Palindrome | 331 |
214 | Print All Distinct Elements of the Array | 328 |
215 | Sorting the array of strings | 328 |
216 | Recursive Implementation of atoi() | 328 |
217 | Convert a String that is Repetition of a Substring of Length K | 326 |
218 | Find the first Repeating Number in a Given Array | 323 |
219 | Even Substring Count | 323 |
220 | Reverse a singly linked list recursively | 321 |
221 | Binary Tree to Doubly linked list | 320 |
222 | Print Shortest Path to Print a String on Screen | 319 |
223 | Can we reverse a linked list in less than O(n) time ? | 318 |
224 | Maximum occurring character in a string | 317 |
225 | Valid Parentheses LeetCode Solution | 316 |
226 | Nth Character in Concatenated Decimal String | 315 |
227 | Sort Elements by Frequency II | 315 |
228 | Convert string1 to string2 in one edit | 315 |
229 | wildcard character matching | 313 |
230 | Lower Case To Upper Case | 311 |
231 | Reverse a String using Stack | 311 |
232 | Merge Two Sorted Arrays | 309 |
233 | Maximum Subarray Leetcode Solution | 308 |
234 | Find the Lost Element From a Duplicated Array | 308 |
235 | Count the number of words | 308 |
236 | Split Four Distinct Strings | 306 |
237 | Find middle of the Linked List | 303 |
238 | Longest Common Subsequence with Permutations | 298 |
239 | Count the Pairs at Same Distance as in English Alphabets | 297 |
240 | Next Greater Element in an Array | 293 |
241 | Matrix Chain Multiplication using Dynamic Programming | 291 |
242 | Palindrome Permutation | 286 |
243 | Find Nth Node | 282 |
244 | Searching a node in a Binary Search Tree | 281 |
245 | Find All Pairs With a Given Difference | 281 |
246 | Delete a Tree | 278 |
247 | Roman to Integer Leetcode Solution | 278 |
248 | Triplet from three linked lists with given sum | 278 |
249 | String(represents an integer) to value | 275 |
250 | Print all Possible Ways to Break a String in Bracket Form | 274 |
251 | Reverse a String | 274 |
252 | Binary Tree | 271 |
253 | Delete a node under given conditions | 270 |
254 | Change Gender of a given String | 270 |
255 | Reverse Bits | 269 |
256 | Sort an array of strings | 268 |
257 | Word Search Leetcode Solution | 266 |
258 | Number of sub-strings which recursively add up to 9 | 265 |
259 | How to Efficiently Implement k Stacks in a Single Array? | 264 |
260 | Remove middle points in a linked list of line segments | 264 |
261 | Longest Common Extension | 263 |
262 | Toeplitz Matrix | 261 |
263 | First non Repeating Element | 259 |
264 | Remove spaces from a string | 259 |
265 | Count Pairs With Given Sum | 257 |
266 | Repeated Substring Pattern | 257 |
267 | Meeting Rooms II LeetCode Solution | 257 |
268 | Shuffle a given Array | 257 |
269 | Longest Palindromic Substring LeetCode Solution | 255 |
270 | Move all negative elements to one side of array | 254 |
271 | N queen problem | 252 |
272 | Min Stack | 251 |
273 | Find, second, frequent, character | 249 |
274 | Dijkstra Algorithm | 247 |
275 | Number of Islands LeetCode Solution | 245 |
276 | Cuckoo sequence program | 245 |
277 | Most Frequent Element in an Array | 244 |
278 | Clone a linked list with next and random pointer (Hashing) | 244 |
279 | Max stack | 243 |
280 | Minimize the maximum difference between the heights | 242 |
281 | Sort linked which is sorted on absolute values | 242 |
282 | House Robber Leetcode Solution | 241 |
283 | Fibonacci numbers | 238 |
284 | Search Insert Position Leetcode Solution | 237 |
285 | Expression Evaluation | 237 |
286 | How to Delete a Linked List | 237 |
287 | Valid Palindrome Leetcode Solution | 235 |
288 | KMP Algorithm | 234 |
289 | Sudoku Solver | 234 |
290 | Min Stack Leetcode Solution | 233 |
291 | Plus One Leetcode Solution | 233 |
292 | Word Search | 233 |
293 | Evaluation of Postfix Expression | 232 |
294 | Reverse words in a string | 231 |
295 | Number Of 1 bits | 231 |
296 | Subset Leetcode | 231 |
297 | Combination Sum Leetcode Solution | 230 |
298 | Backspace String Compare | 225 |
299 | Merge Sorted Arrays Leetcode Solution | 224 |
300 | Rabin Karp Algorithm | 223 |
301 | Set Matrix Zeroes | 222 |
302 | Pair of Positive Negative Values in an Array | 222 |
303 | Reversing a Queue | 222 |
304 | Tower Of Hanoi | 221 |
305 | Sqrt(x) Leetcode Solution | 221 |
306 | Subarray with 0 sum | 220 |
307 | Contains Duplicate II Leetcode Solution | 219 |
308 | Combination Sum | 219 |
309 | Common elements in all rows of a given matrix | 218 |
310 | Product of array except self | 217 |
311 | Integer to Roman Leetcode Solution | 216 |
312 | Intersection of Two Arrays II Leetcode Solution | 216 |
313 | Pascal Triangle Leetcode | 214 |
314 | Reverse individual words | 214 |
315 | String Compression | 213 |
316 | Delete middle element of a stack | 213 |
317 | Construct Binary Tree from Given Inorder and Preorder Traversals | 212 |
318 | Minimum swaps required to bring all elements less than or equal to k together | 212 |
319 | Count subarrays with equal number of 1’s and 0’s | 211 |
320 | Find Top K (or Most Frequent) Numbers in a Stream | 211 |
321 | Sliding Window Technique | 211 |
322 | Bellman Ford Algorithm | 210 |
323 | Add Binary Leetcode Solution | 209 |
324 | Arithmetic Expression Evaluation | 209 |
325 | Page Replacement Algorithms in Operating Systems | 209 |
326 | Pow(x, n) Leetcode Solution | 208 |
327 | Count of index pairs with equal elements in an array | 208 |
328 | Segregate even and odd numbers | 208 |
329 | Single Number Leetcode Solution | 208 |
330 | Palindrome Linked List Leetcode Solution | 207 |
331 | Second Most Repeated Word in a Sequence | 207 |
332 | Kruskal Algorithm | 207 |
333 | Contains Duplicate | 206 |
334 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 206 |
335 | Implementation of Deque using Doubly Linked List | 206 |
336 | Minimum Value to Get Positive Step by Step Sum Leetcode Solution | 206 |
337 | Find sum of non-repeating elements (distinct) elements in an array | 206 |
338 | Next Permutation | 206 |
339 | Postfix to Infix Conversion | 206 |
340 | Sort elements by frequency | 205 |
341 | Count Odd Numbers in an Interval Range Leetcode Solution | 205 |
342 | Maximum Number of Balloons Leetcode Solution | 205 |
343 | Maximum Subarray | 203 |
344 | Third Maximum Number Leetcode Solution | 203 |
345 | Group Words With Same Set of Characters | 203 |
346 | Longest Common Prefix Leetcode Solution | 202 |
347 | K-th Smallest Element in a Sorted Matrix | 202 |
348 | Longest Substring Without Repeating Characters LeetCode Solution | 201 |
349 | Find Lucky Integer in an Array Leetcode Solution | 201 |
350 | Find Numbers with Even Number of Digits Leetcode Solution | 201 |
351 | Permutations Leetcode Solution | 201 |
352 | Convex Hull Algorithm | 201 |
353 | Sorting array using Stacks | 201 |
354 | Top K Frequent Words | 200 |
355 | Sum of minimum and maximum elements of all subarrays of size k | 200 |
356 | Minimum operation to make all elements equal in array | 199 |
357 | Smallest Subarray with k Distinct Numbers | 199 |
358 | Scramble String | 199 |
359 | Count subarrays having total distinct elements same as original array | 199 |
360 | Find the Town Judge Leetcode Solution | 199 |
361 | Evaluate Division | 198 |
362 | Swap Nodes in Pairs Leetcode Solutions | 198 |
363 | Majority Element Leetcode Solution | 197 |
364 | Spiral Matrix LeetCode Solution | 197 |
365 | Special Number | 197 |
366 | First element occurring k times in an array | 196 |
367 | Merge Two Sorted Lists Leetcode Solutions | 195 |
368 | Given two unsorted arrays find all pairs whose sum is x | 195 |
369 | Check if two arrays are equal or not | 195 |
370 | Minimum Path Sum | 194 |
371 | Count Primes Leetcode Solutions | 194 |
372 | Group Anagrams | 194 |
373 | Prefix to Infix Conversion | 194 |
374 | Reverse a Number Using Stack | 193 |
375 | Search in Rotated Sorted Array Leetcode Solution | 193 |
376 | Huffman Coding | 193 |
377 | Reversing the First K elements of a Queue | 193 |
378 | Best Time to Buy and Sell Stock II Leetcode Solution | 192 |
379 | Find duplicates in a given array when elements are not limited to a range | 192 |
380 | Power of Two Leetcode Solution | 192 |
381 | Number of Good Pairs Leetcode Solution | 192 |
382 | Minimum Steps to reach target by a Knight | 192 |
383 | Missing Number Leetcode Solution | 192 |
384 | Maximum Distance Between two Occurrences of Same Element in Array | 191 |
385 | Pascal’s Triangle II Leetcode Solution | 191 |
386 | Single Number | 191 |
387 | Minimum Absolute Difference Leetcode Solution | 191 |
388 | Maximal Square | 191 |
389 | House Robber II Leetcode Solution | 190 |
390 | Sort Array by Increasing Frequency Leetcode Solution | 190 |
391 | Range Sum Query 2D – Immutable Leetcode Solution | 190 |
392 | Sorting using trivial hash function | 189 |
393 | Top K Frequent Elements | 189 |
394 | Unique Paths Leetcode Solution | 189 |
395 | Fizz Buzz Leetcode | 189 |
396 | Running Sum of 1d Array Leetcode Solution | 188 |
397 | Find All Numbers Disappeared in an Array Leetcode Solution | 188 |
398 | Average Salary Excluding the Minimum and Maximum Salary Leetcode Solution | 188 |
399 | Matrix Diagonal Sum Leetcode Solution | 188 |
400 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 187 |
401 | Leetcode Permutations | 187 |
402 | Unique Paths | 187 |
403 | Expression Contains Redundant Bracket or Not | 187 |
404 | How to Implement Stack Using Priority Queue or Heap? | 187 |
405 | Happy Number Leetcode Solution | 187 |
406 | Zigzag Conversion | 187 |
407 | Coin Change 2 Leetcode Solution | 187 |
408 | Maximum possible difference of two subsets of an array | 187 |
409 | Fibonacci Number LeetCode Solution | 187 |
410 | Find The Duplicate Number | 186 |
411 | Palindrome Substring Queries | 186 |
412 | Subset sum problem | 186 |
413 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 186 |
414 | Subarray Sum Equals K LeetCode Solution | 186 |
415 | Decode String | 185 |
416 | Difference between highest and least frequencies in an array | 185 |
417 | Cumulative Frequency of Count of Each Element in an Unsorted Array | 185 |
418 | Convert String To Int | 185 |
419 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 185 |
420 | Find the Closest Palindrome number | 185 |
421 | Letter Case Permutation | 185 |
422 | Smallest Element Repeated Exactly K Times | 185 |
423 | Nth Catalan Number | 185 |
424 | Reverse Integer | 184 |
425 | Max Consecutive Ones Leetcode Solution | 184 |
426 | Sort a stack using recursion | 184 |
427 | Subarray Sum Equals k | 184 |
428 | Sort Integers by The Number of 1 Bit Leetcode Solution | 184 |
429 | Remove Duplicates from Sorted Array Leetcode Solution | 184 |
430 | Find Number of Employees Under every Employee | 184 |
431 | Reverse Vowels of a String Leetcode Solution | 184 |
432 | Bipartite Graph | 183 |
433 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 183 |
434 | Find top three repeated in array | 183 |
435 | Monotonic Array LeetCode Solution | 183 |
436 | Print All Distinct Elements of a Given Integer Array | 183 |
437 | Find Median from data Stream | 183 |
438 | Best Time to Buy and Sell Stock III Leetcode Solution | 183 |
439 | Check If N and Its Double Exist Leetcode Solution | 183 |
440 | Shuffle the Array Leetcode Solution | 183 |
441 | Trapping Rain Water Leetcode Solution | 183 |
442 | Length of the largest subarray with contiguous elements | 183 |
443 | Implement Stack and Queue using Deque | 182 |
444 | LRU Cache Implementation | 182 |
445 | Generate a String With Characters That Have Odd Counts Leetcode Solution | 181 |
446 | Maximum Depth of Binary Tree Leetcode Solution | 181 |
447 | Find the first repeating element in an array of integers | 181 |
448 | Find the Duplicate Element | 181 |
449 | Prim’s Algorithm | 181 |
450 | Sum of Subarray Ranges Leetcode Solution | 181 |
451 | Capacity To Ship Packages Within D Days Leetcode Solution | 181 |
452 | Find Minimum In Rotated Sorted Array | 181 |
453 | Reverse a Stack Using Recursion | 181 |
454 | Subarrays with distinct elements | 181 |
455 | Count Substrings with equal number of 0s, 1s and 2s | 180 |
456 | Merge Two Sorted Linked Lists | 180 |
457 | Kth largest element in an Array Leetcode Solutions | 180 |
458 | Integer to English words | 180 |
459 | Find all pairs (a, b) in an array such that a % b = k | 180 |
460 | Reverse Words in a String III LeetCode Solution | 180 |
461 | Priority Queue Using Singly Linked List | 180 |
462 | Find Common Characters Leetcode Solution | 179 |
463 | Delete a Node from linked list without head pointer | 179 |
464 | Count pairs from two linked lists whose sum is equal to a given value | 179 |
465 | Longest Common Subsequence | 179 |
466 | The K Weakest Rows in a Matrix Leetcode Solution | 179 |
467 | Sorting a Queue without Extra Space | 179 |
468 | Fizz Buzz | 178 |
469 | Edit Distance | 178 |
470 | Count and Say | 178 |
471 | Reverse a linked list | 178 |
472 | Find the Difference Leetcode Solution | 178 |
473 | MiniMax Algorithm | 178 |
474 | Reverse a String | 178 |
475 | Remove Minimum Number of Elements Such That no Common Element Exist in both Array | 178 |
476 | Find elements which are present in first array and not in second | 178 |
477 | Floyd Warshall Algorithm | 177 |
478 | Print all subarrays with 0 sum | 177 |
479 | Target Sum | 177 |
480 | Text Justification LeetCode Solution | 177 |
481 | Excel Sheet Column Number Leetcode Solution | 177 |
482 | Concatenation of Array LeetCode Solution | 176 |
483 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 176 |
484 | Kth Largest Element in a Stream Leetcode Solution | 176 |
485 | Next Greater Element I Leetcode Solution | 176 |
486 | Balanced Binary Tree Leetcode Solution | 176 |
487 | Degree of an array | 176 |
488 | Longest Common Prefix using Trie | 176 |
489 | Kids With the Greatest Number of Candies Leetcode Solution | 175 |
490 | Flood Fill LeetCode | 175 |
491 | Merge Overlapping Intervals | 175 |
492 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 175 |
493 | Iterative Tower of Hanoi | 175 |
494 | Design Parking System Leetcode Solution | 175 |
495 | Word Ladder LeetCode Solution | 174 |
496 | Priority Queue in C++ | 174 |
497 | Multiply Strings Leetcode Solution | 174 |
498 | Longest subarray not having more than K distinct elements | 174 |
499 | Shortest Palindrome | 174 |
500 | Top View of Binary Tree | 174 |
501 | Pair with given product | 174 |
502 | Valid Parenthesis String | 173 |
503 | Find four elements that sum to a given value (Hashmap) | 173 |
504 | Count and Say Leetcode Solution | 173 |
505 | Prefix to Postfix Conversion | 173 |
506 | Find N Unique Integers Sum up to Zero Leetcode Solution | 173 |
507 | Postfix to Prefix Conversion | 173 |
508 | Find subarray with given sum (Handles Negative Numbers) | 173 |
509 | Minimum Moves to Equal Array Elements Leetcode Solution | 173 |
510 | Recursion | 172 |
511 | Intersection of Two Arrays | 172 |
512 | Max Area of Island | 172 |
513 | Contiguous Array Leetcode | 172 |
514 | Find missing elements of a range | 172 |
515 | Peak Index in a Mountain Array | 172 |
516 | Slowest Key Leetcode Solution | 172 |
517 | Length of Last Word Leetcode Solution | 172 |
518 | The Stock Span Problem | 172 |
519 | Koko Eating Bananas Leetcode Solution | 172 |
520 | Move Zeroes LeetCode Solution | 172 |
521 | Count number of triplets with product equal to given number | 171 |
522 | Find distinct elements common to all rows of a matrix | 171 |
523 | Implement a stack using single queue | 171 |
524 | Implement Stack using Queues | 171 |
525 | Convert array into Zig-Zag fashion | 171 |
526 | Iterative Inorder Traversal of a Binary Tree | 171 |
527 | Zigzag Conversion LeetCode Solution | 171 |
528 | Substring With Concatenation Of All Words | 171 |
529 | Check if a given array contains duplicate elements within k distance from each other | 171 |
530 | Longest Common Prefix using Sorting | 170 |
531 | Jump Game Leetcode Solution | 170 |
532 | Smallest Subarray With all Occurrences of a Most Frequent Element | 170 |
533 | Mobile Numeric Keypad Problem | 170 |
534 | Container with Most Water | 170 |
535 | Last Stone Weight | 170 |
536 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 170 |
537 | K-th Distinct Element in an Array | 170 |
538 | Find any one of the multiple repeating elements in read only array | 170 |
539 | Delete Node in a Linked List Leetcode Solution | 169 |
540 | Shuffle String Leetcode Solution | 169 |
541 | Next Greater Frequency Element | 169 |
542 | Relative Sort Array Leetcode Solution | 169 |
543 | Best Time to Buy and Sell Stock | 169 |
544 | Valid Sudoku | 169 |
545 | Convert a normal BST to Balanced BST | 169 |
546 | Build Array From Permutation Leetcode Solution | 168 |
547 | Largest Perimeter Triangle Leetcode Solution | 168 |
548 | Excel Sheet Column Title Leetcode Solution | 168 |
549 | Minimum Bracket Reversals | 168 |
550 | Shuffle an Array | 167 |
551 | Arrange given numbers to form the biggest number | 167 |
552 | Minimum Operations to convert X to Y | 167 |
553 | First negative integer in every window of size k | 167 |
554 | Rearrange a binary string as alternate x and y occurrences | 167 |
555 | Isomorphic Strings Leetcode Solution | 167 |
556 | Sum of Left Leaves Leetcode Solutions | 167 |
557 | Distribute Candies to People Leetcode Solution | 167 |
558 | Find Words That Can Be Formed by Characters Leetcode Solution | 167 |
559 | Assign Cookies Leetcode Solution | 167 |
560 | Is Subsequence Leetcode Solution | 167 |
561 | Check for Balanced Parentheses in an Expression | 167 |
562 | Change the Array into Permutation of Numbers From 1 to N | 166 |
563 | 01 Matrix LeetCode Solution | 166 |
564 | N-th Tribonacci Number Leetcode Solution | 166 |
565 | The Knapsack Problem | 166 |
566 | Integer to Roman | 166 |
567 | Maximum sum rectangle in a 2D matrix | 166 |
568 | Implementation of Deque using circular array | 166 |
569 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 166 |
570 | Valid Anagrams | 166 |
571 | Jewels and Stones Leetcode Solution | 166 |
572 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 165 |
573 | Linked List Cycle II LeetCode Solution | 165 |
574 | Minimum Delete Operations to make all Elements of Array Same | 165 |
575 | Hamming Distance | 165 |
576 | Unique Binary Search Trees | 165 |
577 | Island Perimeter Leetcode Solution | 165 |
578 | How to check if two given sets are disjoint? | 164 |
579 | Rotate List Leetcode Solution | 164 |
580 | Decode Ways | 164 |
581 | Remove Linked List Elements Leetcode Solution | 164 |
582 | Count the number of nodes at given level in a tree using BFS | 164 |
583 | Gold Mine Problem | 164 |
584 | Trapping Rain Water LeetCode Solution | 164 |
585 | Maximum path sum in a triangle | 164 |
586 | Find the smallest positive integer value that cannot be represented as sum of any subset of a given array | 164 |
587 | Combinations Leetcode Solution | 163 |
588 | LRU Cache LeetCode Solution | 163 |
589 | Same Tree LeetCode Solution | 163 |
590 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 163 |
591 | Sieve of Eratosthenes | 163 |
592 | Maximum Distance in Array | 163 |
593 | Summary Ranges Leetcode Solution | 163 |
594 | Minimum number of subsets with distinct elements | 162 |
595 | Find minimum difference between any two elements | 162 |
596 | Distance Between Bus Stops Leetcode Solution | 162 |
597 | Find Sum of all unique sub-array sum for a given array | 162 |
598 | Applications of Breadth First Search and Depth First Search | 162 |
599 | Insert Interval Leetcode Solution | 162 |
600 | Maximum difference between first and last indexes of an element in array | 162 |
601 | Count all subsequences having product less than K | 162 |
602 | 3Sum Closest LeetCode Solution | 162 |
603 | Minimum Knight Moves LeetCode Solution | 162 |
604 | Word Pattern | 161 |
605 | Minimum insertions to form a palindrome with permutations allowed | 161 |
606 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 161 |
607 | Minimum number of distinct elements after removing m items | 161 |
608 | Rotate Image LeetCode Solution | 161 |
609 | Frog Jump Leetcode Solution | 161 |
610 | Find if an Expression has Duplicate Parenthesis or Not | 161 |
611 | Stone Game LeetCode | 160 |
612 | Best Time to Buy and Sell Stock LeetCode Solution | 160 |
613 | Distance of nearest cell having 1 in a binary matrix | 160 |
614 | License Key Formatting Leetcode Solution | 160 |
615 | Printing brackets in Matrix Chain Multiplication Problem | 160 |
616 | Permutation in String Leetcode Solution | 159 |
617 | Longest Increasing Subsequence | 159 |
618 | K Empty Slots LeetCode | 159 |
619 | Defanging an IP Address Leetcode Solution | 159 |
620 | Minimum Cost to Hire K Workers | 159 |
621 | Sort Characters By Frequency LeetCode Solution | 159 |
622 | Minimum Depth of Binary Tree Leetcode Solution | 159 |
623 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 159 |
624 | House Robber | 159 |
625 | Sort Array By Parity LeetCode Solution | 159 |
626 | XOR Operation in an Array Leetcode Solution | 159 |
627 | Word Wrap Problem | 159 |
628 | Find the Duplicate Number LeetCode Solution | 158 |
629 | Coin Change Problem | 158 |
630 | Reverse a stack without using extra space in O(n) | 158 |
631 | Painting Fence Algorithm | 158 |
632 | Check If It Is a Straight Line Leetcode Solution | 158 |
633 | Maximum Consecutive Numbers Present in an Array | 158 |
634 | Smallest Good Base | 158 |
635 | Remove All Occurrences of a Substring LeetCode Solution | 158 |
636 | Kth Missing Positive Number Leetcode Solution | 157 |
637 | Non-overlapping sum of two sets | 157 |
638 | Find Maximum Level sum in Binary Tree | 157 |
639 | Segregate 0s and 1s in an Array | 157 |
640 | Queries for counts of array elements with values in given range | 156 |
641 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 156 |
642 | Tracking current Maximum Element in a Stack | 156 |
643 | Strobogrammatic Number LeetCode Solution | 156 |
644 | Isomorphic Strings | 156 |
645 | Optimal Account Balancing LeetCode Solution | 156 |
646 | Valid Palindrome II Leetcode Solution | 156 |
647 | GCD Of Two Numbers | 156 |
648 | Merge Two Balanced Binary Search Trees | 156 |
649 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 156 |
650 | Iterative Method to find Height of Binary Tree | 156 |
651 | Wiggle Sort | 155 |
652 | Convert an array to reduced form | 155 |
653 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 155 |
654 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 155 |
655 | How to Create Mergable Stack? | 155 |
656 | Find Largest d in Array such that a + b + c = d | 155 |
657 | Employee Free Time LeetCode Solution | 155 |
658 | Reorganize String | 155 |
659 | Flipping an Image LeetCode Solution | 155 |
660 | Partition Labels LeetCode Solution | 155 |
661 | Moving Average from Data Stream Leetcode Solution | 155 |
662 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 155 |
663 | Maximum Number of Occurrences of a Substring Leetcode Solution | 154 |
664 | Inorder Successor of a node in Binary Tree | 154 |
665 | Check if a queue can be sorted into another queue using a stack | 154 |
666 | Count Good Nodes in Binary Tree Leetcode Solution | 154 |
667 | Path With Maximum Minimum Value LeetCode Solution | 154 |
668 | Letter Combinations of a Phone Number | 154 |
669 | Largest Sum Contiguous Subarray | 154 |
670 | Form minimum number from given sequence | 154 |
671 | Find the Distance Value Between Two Arrays Leetcode Solution | 154 |
672 | K Empty Slots | 154 |
673 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 154 |
674 | Check If Two String Arrays are Equivalent Leetcode Solution | 153 |
675 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 153 |
676 | Sum of All Odd Length Subarrays Leetcode Solution | 153 |
677 | Find the Smallest Divisor given a Threshold Leetcode Solution | 153 |
678 | BFS vs DFS for Binary Tree | 153 |
679 | Number of Provinces Leetcode Solution | 153 |
680 | Sort Array by Increasing Frequency Leetcode Solution | 153 |
681 | Power of Four Leetcode Solution | 153 |
682 | Reservoir Sampling | 153 |
683 | Lucky Numbers in a Matrix Leetcode Solution | 153 |
684 | Populating Next Right Pointers in Each Node | 153 |
685 | Valid Palindrome | 153 |
686 | Reversing a Queue using Recursion | 152 |
687 | Construct BST from given Preorder Traversal | 152 |
688 | Find pairs with given sum such that elements of pair are in different rows | 152 |
689 | Find the node with minimum value in a Binary Search Tree | 152 |
690 | Delete consecutive same words in a sequence | 152 |
691 | Subset Sum Leetcode | 152 |
692 | Remove Invalid Parentheses Leetcode Solution | 152 |
693 | To Lower Case Leetcode Solution | 152 |
694 | Maximum Number of Coins You Can Get Leetcode Solution | 152 |
695 | Reducing Dishes LeetCode Solution | 152 |
696 | Print the Fibonacci numbers in reverse order | 152 |
697 | Majority Element II Leetcode Solution | 152 |
698 | Unique Paths II Leetcode Solution | 152 |
699 | Delete Nth node from the end of the given linked list | 152 |
700 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 152 |
701 | Number of Dice Rolls With Target Sum LeetCode Solution | 151 |
702 | Convert a Number to Hexadecimal Leetcode Solution | 151 |
703 | Longest Increasing Path in a Matrix LeetCode Solution | 151 |
704 | Add and Search Word – Data structure design LeetCode | 151 |
705 | Increasing Decreasing String Leetcode Solution | 151 |
706 | Find Leaves of Binary Tree LeetCode Solution | 151 |
707 | Permutation Sequence LeetCode Solution | 151 |
708 | Ugly Number Leetcode Solution | 151 |
709 | Factorial Trailing Zeroes Leetcode Solution | 151 |
710 | String to Integer (atoi) LeetCode Solution | 151 |
711 | Valid Perfect Square Leetcode Solution | 151 |
712 | Recover Binary Search Tree | 151 |
713 | Binary Tree zigzag level order Traversal | 150 |
714 | Edit Distance LeetCode Solution | 150 |
715 | Reverse Only Letters LeetCode Solution | 150 |
716 | Find whether an array is subset of another array | 150 |
717 | Dynamic Programming Basics | 150 |
718 | Restore IP Addresses Leetcode Solution | 150 |
719 | Maximum Product of Two Elements in an Array Leetcode Solution | 150 |
720 | Longest Span with same Sum in two Binary arrays | 149 |
721 | Hamming Distance Leetcode Solution | 149 |
722 | Keyboard Row Leetcode Solution | 149 |
723 | Largest subarray with equal number of 0s and 1s | 149 |
724 | Rank Transform of an Array Leetcode Solution | 149 |
725 | Minimum Distance Between BST Nodes Leetcode Solution | 149 |
726 | Merge Two Binary Trees LeetCode Solution | 149 |
727 | Binomial Coefficient | 149 |
728 | Numbers with prime frequencies greater than or equal to k | 149 |
729 | Bubble sort using two Stacks | 149 |
730 | Find Maximum Depth of Nested Parenthesis in a String | 149 |
731 | Merge K Sorted Linked Lists | 148 |
732 | Decompress Run-Length Encoded List Leetcode Solution | 148 |
733 | Find unique character in a string | 148 |
734 | Find Pair with Greatest Product in Array | 148 |
735 | Perform String Shifts Leetcode | 148 |
736 | Bulb Switcher LeetCode Solution | 148 |
737 | Minimum Cost For Tickets Leetcode Solution | 148 |
738 | Finding K closest element | 148 |
739 | Deletion in a Binary Tree | 148 |
740 | Stack Permutations (Check if an array is stack permutation of other) | 148 |
741 | Maximum 69 Number Leetcode Solution | 148 |
742 | Minimum Height Trees | 148 |
743 | Find the largest multiple of 3 | 148 |
744 | Morris Traversal | 147 |
745 | Find All Duplicates in an Array LeetCode Solution | 147 |
746 | Count quadruples from four sorted arrays whose sum is equal to a given value x | 147 |
747 | Race Car LeetCode Solution | 147 |
748 | Growable array based stack | 147 |
749 | Symmetric Tree Leetcode Solution | 147 |
750 | Binary Tree Maximum Path Sum LeetCode Solution | 147 |
751 | Kth ancestor of a node in binary tree | 147 |
752 | Sorted Linked List to Balanced BST | 147 |
753 | Robot Room Cleaner Leetcode Solution | 147 |
754 | Best Meeting Point LeetCode Solution | 147 |
755 | Non-decreasing Array LeetCode Solution | 147 |
756 | Maximum Product of Three Numbers LeetCode Solution | 147 |
757 | Student Attendance Record I Leetcode Solution | 147 |
758 | Elements to be added so that all elements of a range are present in array | 147 |
759 | Jump Game | 147 |
760 | Word Pattern LeetCode Solution | 146 |
761 | Maximum Depth of N-ary Tree Leetcode Solution | 146 |
762 | Evaluate Reverse Polish Notation LeetCode Solution | 146 |
763 | Remove brackets from an algebraic string containing + and – operators | 146 |
764 | Diagonal Traversal of Binary Tree | 146 |
765 | Valid Number | 146 |
766 | Snakes and Ladders LeetCode Solution | 146 |
767 | Largest rectangular sub-matrix whose sum is 0 | 146 |
768 | Generate all possible sorted arrays from alternate elements of two given sorted arrays | 146 |
769 | Minimum time required to rot all oranges | 146 |
770 | k-th missing element in increasing sequence which is not present in a given sequence | 146 |
771 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 145 |
772 | Largest Rectangle in Histogram LeetCode Solution | 145 |
773 | String Compression LeetCode Solution | 145 |
774 | Minimize Maximum Pair Sum in Array LeetCode Solution | 145 |
775 | Queue based approach for first non-repeating character in a stream | 145 |
776 | Find Median from Data Stream LeetCode Solution | 145 |
777 | First Unique Character in a String LeetCode Solution | 145 |
778 | Number of Islands II LeetCode Solution | 145 |
779 | Tiling Problem | 145 |
780 | N-Queens LeetCode Solution | 145 |
781 | Linked List Cycle | 145 |
782 | Program for Bridge and Torch problem | 145 |
783 | Search in a Binary Search Tree Leetcode Solution | 145 |
784 | Find if Path Exists in Graph Leetcode Solution | 144 |
785 | Final Prices With a Special Discount in a Shop Leetcode Solution | 144 |
786 | Partition to K Equal Sum Subsets Leetcode Solution | 144 |
787 | Maximum Difference Between Increasing Elements LeetCode Solution | 144 |
788 | Count items common to both the lists but with different prices | 144 |
789 | Check if Two Expressions With Brackets are Same | 144 |
790 | Sort an array according to the order defined by another array | 144 |
791 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 144 |
792 | Interval Tree | 144 |
793 | Transpose Graph | 144 |
794 | Nested List Weight Sum II LeetCode Solution | 144 |
795 | Number of NGEs to the Right | 144 |
796 | Check If Array Pairs Are Divisible by k LeetCode Solution | 144 |
797 | Split a String in Balanced Strings Leetcode Solution | 144 |
798 | Search a 2D Matrix II Leetcode Solution | 144 |
799 | Base 7 Leetcode Solution | 144 |
800 | Iterative Preorder Traversal | 143 |
801 | A Space Optimized DP solution for 0-1 Knapsack Problem | 143 |
802 | Crawler Log Folder Leetcode Solution | 143 |
803 | Permutation Coefficient | 143 |
804 | Print a Binary Tree in Vertical Order | 143 |
805 | Circular Queue | 143 |
806 | Remove Duplicates from Sorted List LeetCode Solution | 143 |
807 | Remove Duplicates from Sorted List II | 143 |
808 | Remove Nth Node From End of List Leetcode Solution | 143 |
809 | Minimum swaps to make sequences increasing | 143 |
810 | Check for Palindrome after every character replacement Query | 143 |
811 | Relative Ranks Leetcode Solution | 143 |
812 | Total Numbers With no Repeated Digits in a Range | 143 |
813 | Get Maximum in Generated Array Leetcode Solution | 143 |
814 | String comparison containing wildcards | 143 |
815 | Number Complement Leetcode Solution | 143 |
816 | Longest Subarray Having Count of 1s One More than Count of 0s | 142 |
817 | Course Schedule II – LeetCode | 142 |
818 | Nearest Exit from Entrance in Maze LeetCode Solution | 142 |
819 | Convert BST to Min Heap | 142 |
820 | Merge Sorted Array LeetCode Solution | 142 |
821 | Reorder Data in Log Files LeetCode Solution | 142 |
822 | Priority Queue using doubly linked list | 142 |
823 | Last Stone Weight II LeetCode Solution | 142 |
824 | Invert Binary Tree LeetCode Solution | 142 |
825 | Minimum Jumps to Reach Home LeetCode Solution | 141 |
826 | Maximum Nesting Depth of the Parentheses Leetcode Solution | 141 |
827 | Regular Expression Matching | 141 |
828 | Path with maximum average value | 141 |
829 | Maximum size subarray sum equals k | 141 |
830 | Minimum number of jumps to reach end | 141 |
831 | Minimum Time Visiting All Points Leetcode Solution | 141 |
832 | Design a Stack With Increment Operation Leetcode Solution | 141 |
833 | One Edit Distance LeetCode Solution | 141 |
834 | Clone Graph LeetCode Solution | 141 |
835 | Sort Colors | 141 |
836 | Alien Dictionary LeetCode Solution | 141 |
837 | Partition List Leetcode Solution | 141 |
838 | Sort Array By Parity II Leetcode Solution | 141 |
839 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 140 |
840 | Count ways to reach the nth stair using step 1, 2 or 3 | 140 |
841 | Sum of nearest smaller and greater number | 140 |
842 | Find the Only Repetitive Element Between 1 to N-1 | 140 |
843 | Minimum Swaps to Make Strings Equal Leetcode Solution | 140 |
844 | Check if an Array is Stack Sortable | 140 |
845 | Find All Possible Recipes from Given Supplies LeetCode Solution | 140 |
846 | Find all triplets with zero sum | 140 |
847 | Valid Parentheses Leetcode Solution | 140 |
848 | Top K Frequent Words LeetCode Solution | 140 |
849 | Check whether a given Binary Tree is Complete or not | 140 |
850 | Matrix Chain Multiplication | 140 |
851 | Sorted Array to Balanced BST | 140 |
852 | Brightest Position on Street LeetCode Solution | 140 |
853 | Can Place Flowers LeetCode Solution | 140 |
854 | Form Minimum Number From Given Sequence | 140 |
855 | Friends Pairing Problem | 140 |
856 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 140 |
857 | Subset with sum divisible by m | 140 |
858 | Brick Wall LeetCode Solution | 140 |
859 | Spiral Matrix II Leetcode Solution | 140 |
860 | Find the subarray with least average | 140 |
861 | Level order Traversal in Spiral Form | 139 |
862 | Insert into a Binary Search Tree Leetcode Solution | 139 |
863 | Subsequence of Size K With the Largest Even Sum LeetCode Solution | 139 |
864 | LCS (Longest Common Subsequence) of three strings | 139 |
865 | Range sum queries without updates | 139 |
866 | Binary Search Tree Search and Insertion | 139 |
867 | Given an Array of Pairs Find all Symmetric Pairs in it | 139 |
868 | Subarray Product Less Than K LeetCode Solution | 139 |
869 | Tree Traversal (Preorder, Inorder & Postorder) | 139 |
870 | Count Distinct Elements in Every Window of Size K | 139 |
871 | Maximum Profit in Job Scheduling Leetcode Solution | 139 |
872 | Count Negative Numbers in a Sorted Matrix LeetCode Solution | 138 |
873 | Identify and Mark Unmatched Parenthesis in an Expression | 138 |
874 | Sequences of given length where every element is more than or equal to twice of previous | 138 |
875 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 138 |
876 | Guess Number Higher or Lower LeetCode Solution | 138 |
877 | Union and Intersection of two Linked Lists | 138 |
878 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 138 |
879 | Insert Delete GetRandom | 138 |
880 | Maximum Score After Splitting a String Leetcode Solution | 138 |
881 | Find Maximum Sum Possible Equal Sum of Three Stacks | 138 |
882 | Minimum Sum Path in a Triangle | 138 |
883 | Check if stack elements are pairwise consecutive | 137 |
884 | Missing Element in Sorted Array LeetCode Solution | 137 |
885 | Guess Number Higher or Lower II | 137 |
886 | Destination City Leetcode Solution | 137 |
887 | A program to check if a binary tree is BST or not | 137 |
888 | GCDs of given index ranges in an array | 137 |
889 | Water Bottles Leetcode Solution | 137 |
890 | An Interesting Method to generate Binary Numbers from 1 to n | 137 |
891 | Distinct adjacent elements in an array | 137 |
892 | Delete And Earn | 137 |
893 | Find distance between two nodes of a Binary Tree | 137 |
894 | Balanced Expression with Replacement | 137 |
895 | Repeated Substring Pattern LeetCode Solution | 137 |
896 | BFS for Disconnected Graph | 137 |
897 | Alien Dictionary | 137 |
898 | Rearrange an Array Such that arr[i] is equal to i | 137 |
899 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 136 |
900 | Design Browser History LeetCode Solution | 136 |
901 | Convert Sorted List to Binary Search Tree | 136 |
902 | Diagonal Traversal LeetCode Solution | 136 |
903 | Lemonade Change Leetcode Solution | 136 |
904 | Find Common Characters Leetcode Solution | 136 |
905 | Three way partitioning of an array around a given range | 136 |
906 | Set Matrix Zeroes Leetcode Solution | 136 |
907 | Rearrange Spaces Between Words Leetcode Solution | 136 |
908 | Merge Two Sorted Lists Leetcode | 136 |
909 | Diagonal Traverse LeetCode Solution | 136 |
910 | Least Number of Unique Integers after K Removals Leetcode Solution | 136 |
911 | Minimum sum of multiplications of n numbers | 136 |
912 | Find all permuted rows of a given row in a matrix | 136 |
913 | Number of Days Between Two Dates LeetCode Solution | 136 |
914 | Shortest Word Distance Leetcode Solution | 136 |
915 | Range LCM Queries | 136 |
916 | Spiral Matrix III LeetCode Solution | 136 |
917 | Number of Equivalent Domino Pairs Leetcode Solution | 135 |
918 | Maximum Subarray Sum Excluding Certain Elements | 135 |
919 | Count Subarrays with Same Even and Odd Elements | 135 |
920 | Construct Complete Binary Tree from its Linked List Representation | 135 |
921 | Queue using Stacks | 135 |
922 | 4Sum | 135 |
923 | Robot Bounded In Circle LeetCode Solution | 135 |
924 | K’th Largest Element in BST when modification to BST is not allowed | 135 |
925 | Averages of Levels in Binary Tree | 135 |
926 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 135 |
927 | Vertical sum in a given binary tree | 135 |
928 | Special Positions in a Binary Matrix Leetcode Solution | 135 |
929 | Construct the Rectangle Leetcode Solution | 135 |
930 | Lexicographical Numbers Leetcode Solution | 134 |
931 | Trim a Binary Search Tree | 134 |
932 | Largest area rectangular sub-matrix with equal number of 1’s and 0’s | 134 |
933 | Print Fibonacci sequence using 2 variables | 134 |
934 | Infix to Postfix | 134 |
935 | Queries for GCD of all numbers of an array except elements in a given range | 134 |
936 | Palindrome Partitioning Leetcode Solution | 134 |
937 | Daily Temperatures Leetcode Solution | 134 |
938 | Dividing Array into Pairs With Sum Divisible by K | 134 |
939 | Remove Duplicates from Sorted List II LeetCode Solution | 133 |
940 | Pattern Occurrences using Stack | 133 |
941 | Analyze User Website Visit Pattern LeetCode Solution | 133 |
942 | Median of Two Sorted Arrays | 133 |
943 | Time Based Key-Value Store LeetCode Solution | 133 |
944 | Construct BST from its given Level Order Traversal | 133 |
945 | Maximum Frequency Stack Leetcode Solution | 133 |
946 | Merging Intervals | 133 |
947 | Longest Palindromic Subsequence | 133 |
948 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 133 |
949 | Check if any two intervals overlap among a given set of intervals | 133 |
950 | Stone Game II Leetcode | 133 |
951 | Binary array after M range toggle operations | 133 |
952 | Three Consecutive Odds Leetcode Solution | 133 |
953 | Strongly Connected Component | 133 |
954 | Number of Distinct Islands Leetcode Solution | 133 |
955 | Maximize Sum of Array after K Negations Leetcode Solution | 133 |
956 | Iterative Postorder Traversal Using Two Stacks | 132 |
957 | Shuffle 2n integers as a1-b1-a2-b2-a3-b3-..bn without using extra space | 132 |
958 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 132 |
959 | Split Array Into Consecutive Subsequences | 132 |
960 | Create Maximum Number | 132 |
961 | Newman-Conway Sequence | 132 |
962 | 3 Sum | 132 |
963 | All Unique Triplets that Sum up to a Given Value | 132 |
964 | Palindrome Partitioning | 132 |
965 | Depth First Search (DFS) for a Graph | 132 |
966 | Symmetric Tree | 132 |
967 | Binary Search Tree Delete Operation | 131 |
968 | Breadth First Search (BFS) for a Graph | 131 |
969 | Word Break | 131 |
970 | Intersection of Two Linked Lists LeetCode Solution | 131 |
971 | Length of Longest Fibonacci Subsequence | 131 |
972 | Difference Array | Range update query in O(1) | 131 |
973 | Count Submatrices With All Ones LeetCode Solution | 131 |
974 | Segment Tree | 131 |
975 | Minimum Height Trees LeetCode Solution | 131 |
976 | Climbing stairs | 131 |
977 | Largest Substring Between Two Equal Characters Leetcode Solution | 131 |
978 | My Calendar I LeetCode Solution | 131 |
979 | Sign of the Product of an Array LeetCode Solution | 130 |
980 | Reverse Nodes in K-Group | 130 |
981 | Maximum Product Subarray | 130 |
982 | Count pair with Given Sum | 130 |
983 | Check If a Word Occurs As a Prefix of Any Word in a Sentence Leetcode Solution | 130 |
984 | Find the Difference Leetcode Solution | 130 |
985 | Sliding Window Maximum | 130 |
986 | Find postorder traversal of BST from preorder traversal | 130 |
987 | Maximum subsequence sum such that no three are consecutive | 130 |
988 | Find Maximum of Minimum for Every Window Size in a Given Array | 130 |
989 | Minesweeper LeetCode Solution | 129 |
990 | Boundary Traversal of binary tree | 129 |
991 | Valid Boomerang Leetcode Solution | 129 |
992 | Count Primes in Ranges | 129 |
993 | Largest divisible pairs subset | 129 |
994 | Asteroid Collision LeetCode Solution | 129 |
995 | Count subarrays where second highest lie before highest | 129 |
996 | Height of a generic tree from parent array | 129 |
997 | Insertion in a Binary Tree | 129 |
998 | Serialize and Deserialize Binary Tree | 129 |
999 | The Painter’s Partition Problem | 129 |
1000 | Level Order Traversal of Binary Tree | 129 |
1001 | Product of Array Except Self LeetCode Solution | 128 |
1002 | Find Duplicate Subtrees | 128 |
1003 | Decrypt String from Alphabet to Integer Mapping Leetcode Solution | 128 |
1004 | Longest Nice Substring LeetCode Solution | 128 |
1005 | Kth Smallest Element in a BST Leetcode Solution | 128 |
1006 | Friends Of Appropriate Ages LeetCode Solution | 128 |
1007 | Find the First Circular Tour that visits all the Petrol Pumps | 128 |
1008 | Collect maximum points in a grid using two traversals | 128 |
1009 | Number Of Longest Increasing Subsequence | 128 |
1010 | Unique Paths II | 128 |
1011 | Maximum Length of Repeated Subarray | 128 |
1012 | Rearrange array such that even positioned are greater than odd | 128 |
1013 | Compute nCr % p | 128 |
1014 | Find number of pairs in an array such that their XOR is 0 | 128 |
1015 | First missing positive | 127 |
1016 | Construction of Longest Increasing Subsequence (N log N) | 127 |
1017 | Make The String Great Leetcode Solution | 127 |
1018 | Partition Equal Subset Sum | 127 |
1019 | Scramble String LeetCode Solution | 127 |
1020 | Advantages of BST over Hash Table | 127 |
1021 | Level order traversal using two Queues | 127 |
1022 | Ugly Numbers | 127 |
1023 | Build an Array With Stack Operations Leetcode Solution | 127 |
1024 | Construct Binary Tree from given Parent Array representation | 127 |
1025 | Graph Valid Tree LeetCode Solution | 127 |
1026 | The Maze III LeetCode Solution | 127 |
1027 | Binary Search Tree | 127 |
1028 | Next Greater Element III LeetCode Solution | 127 |
1029 | String Matching in an Array Leetcode Solution | 127 |
1030 | Shortest Completing Word Leetcode Solution | 127 |
1031 | Maximum length subsequence with difference between adjacent elements as either 0 or 1 | 126 |
1032 | Largest Number Leetcode Solution | 126 |
1033 | Kill Process LeetCode Solution | 126 |
1034 | Balanced Binary Tree | 126 |
1035 | Design Hit Counter LeetCode Solution | 126 |
1036 | Longest subsequence such that difference between adjacents is one | 126 |
1037 | Boolean Parenthesization Problem | 126 |
1038 | Maximum Number of Ways to Partition an Array LeetCode Solution | 126 |
1039 | Double the first element and move zero to end | 126 |
1040 | Number of palindromic paths in a matrix | 126 |
1041 | Implement Trie (Prefix Tree) Leetcode Solution | 126 |
1042 | Morris Inorder Traversal | 126 |
1043 | Maximum weight transformation of a given string | 126 |
1044 | Iterative Depth First Traversal of Graph | 125 |
1045 | Invalid Transactions LeetCode Solution | 125 |
1046 | K Closest Points to Origin Leetcode Solution | 125 |
1047 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 125 |
1048 | Validate Binary Search Tree | 125 |
1049 | Find whether a subarray is in form of a mountain or not | 125 |
1050 | Path Sum II LeetCode Solution | 125 |
1051 | Minimum Index Sum of Two Lists | 125 |
1052 | Maximum Sum of 3 Non-Overlapping Subarrays | 125 |
1053 | Minimum Size Subarray Sum | 125 |
1054 | Lowest Common Ancestor | 125 |
1055 | Maximum Product of Indexes of Next Greater on Left and Right | 125 |
1056 | Employee Importance LeetCode Solution | 124 |
1057 | Defanging an IP Address LeetCode Solution | 124 |
1058 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 124 |
1059 | Find Peak Element | 124 |
1060 | Ugly Number II LeetCode Solution | 124 |
1061 | Find a Peak Element II LeetCode Solution | 124 |
1062 | Move all negative elements to end in order with extra space allowed | 124 |
1063 | Available Captures for Rook Leetcode Solution | 124 |
1064 | Custom Sort String Leetcode Solution | 124 |
1065 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 124 |
1066 | Bitwise AND of Numbers Range LeetCode Solution | 124 |
1067 | Add two numbers | 124 |
1068 | Largest BST Subtree LeetCode Solution | 123 |
1069 | Types of Binary Tree | 123 |
1070 | Count minimum steps to get the given desired array | 123 |
1071 | Binary Tree Right Side View LeetCode Solution | 123 |
1072 | Rearrange array such that even index elements are smaller and odd index elements are greater | 123 |
1073 | Super Ugly Number | 123 |
1074 | Recover Binary Search Tree Leetcode Solution | 123 |
1075 | Day of the Year Leetcode Solution | 123 |
1076 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 123 |
1077 | Remove Duplicates from Sorted Array II Leetcode Solution | 123 |
1078 | Smallest Common Region Leetcode Solution | 122 |
1079 | Number of Closed Islands Leetcode Solution | 122 |
1080 | Print all triplets in sorted array that form AP | 122 |
1081 | Print Next Greater Number of Q queries | 122 |
1082 | Path Sum | 122 |
1083 | Populating Next Right Pointers in Each Node Leetcode Solution | 122 |
1084 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 122 |
1085 | Search in Sorted Rotated Array | 122 |
1086 | Number of Students Doing Homework at a Given Time Leetcode Solution | 122 |
1087 | Number of siblings of a given Node in n-ary Tree | 122 |
1088 | Count pairs from two sorted arrays whose sum is equal to a given value x | 122 |
1089 | Binary Tree Data Structure | 122 |
1090 | Find the minimum distance between two numbers | 122 |
1091 | Divisible Pairs Counting | 122 |
1092 | Find Smallest Range Containing Elements from k Lists | 122 |
1093 | Generate Parentheses Leetcode Solution | 121 |
1094 | Clone a Binary Tree with Random Pointers | 121 |
1095 | Longest Bitonic Subsequence | 121 |
1096 | Serialize and Deserialize Binary Tree LeetCode Solution | 121 |
1097 | Combination Sum IV LeetCode Solution | 121 |
1098 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 121 |
1099 | Remove Palindromic Subsequences Leetcode Solution | 121 |
1100 | Constant time range add operation on an array | 121 |
1101 | Root to Leaf path with target sum Leetcode Solutions | 121 |
1102 | Print Right View of a Binary Tree | 120 |
1103 | Bottom View of a Binary Tree | 120 |
1104 | Write Code to Determine if Two Trees are Identical | 120 |
1105 | Subarrays with K Different Integers Leetcode Solution | 120 |
1106 | Remove duplicates from sorted array | 120 |
1107 | Third Maximum Number Leetcode Solution | 120 |
1108 | Maximize Distance to Closest Person LeetCode Solution | 120 |
1109 | Distinct Subsequences | 120 |
1110 | Convert BST into a Min-Heap without using array | 120 |
1111 | Search Insert Position | 120 |
1112 | Valid Tic-Tac-Toe State LeetCode Solution | 120 |
1113 | Find maximum difference between nearest left and right smaller elements | 120 |
1114 | Level of Each node in a Tree from source node | 120 |
1115 | Cutting a Rod | 119 |
1116 | Palindrome Permutation LeetCode Solution | 119 |
1117 | Increasing Triplet Subsequence LeetCode Solution | 119 |
1118 | Next Permutation Leetcode Solution | 119 |
1119 | Minimum sum of squares of character counts in a given string after removing k characters | 119 |
1120 | Count Largest Group Leetcode Solution | 119 |
1121 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 119 |
1122 | Mean of Array After Removing Some Elements Leetcode Solution | 118 |
1123 | Products of ranges in an array | 118 |
1124 | Topological Sorting | 118 |
1125 | Consecutive Characters LeetCode Solution | 118 |
1126 | Iterative method to find ancestors of a given binary tree | 118 |
1127 | Maximum Product Subarray | 118 |
1128 | Cells with Odd Values in a Matrix LeetCode Solution | 118 |
1129 | Moser-de Bruijn Sequence | 118 |
1130 | Reformat The String Leetcode Solution | 118 |
1131 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 118 |
1132 | Maximum Binary Tree | 118 |
1133 | Print modified array after executing the commands of addition and subtraction | 118 |
1134 | Thousand Separator Leetcode Solution | 118 |
1135 | Minimum Score Triangulation of Polygon Leetcode Solution | 118 |
1136 | Prime Palindrome LeetCode Solution | 118 |
1137 | Longest Subarray of 1’s After Deleting One Element LeetCode Solution | 117 |
1138 | Golomb sequence | 117 |
1139 | Search an Element in Sorted Rotated Array | 117 |
1140 | Longest Increasing Consecutive Subsequence | 117 |
1141 | Construct K Palindrome Strings LeetCode Solution | 117 |
1142 | Sum of Even Numbers After Queries | 117 |
1143 | Minimum Absolute Difference in BST Leetcode Solution | 117 |
1144 | Maximum Product of Splitted Binary Tree LeetCode Solution | 116 |
1145 | Check Array Formation Through Concatenation Leetcode Solution | 116 |
1146 | K maximum sums of overlapping contiguous sub-arrays | 116 |
1147 | Red-Black Tree Introduction | 116 |
1148 | Swap Nodes In Pairs | 116 |
1149 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 116 |
1150 | Transform a BST to Greater sum Tree | 116 |
1151 | Find maximum length Snake sequence | 116 |
1152 | Count even length binary sequences with same sum of first and second half bits | 116 |
1153 | Factorial Trailing Zeroes LeetCode Solution | 116 |
1154 | Kth Smallest Number in Multiplication Table Leetcode Solution | 116 |
1155 | Binary Tree to Binary Search Tree Conversion | 116 |
1156 | Queries for Number of Distinct Elements in a Subarray | 116 |
1157 | K’th Largest element in BST using constant extra space | 115 |
1158 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 115 |
1159 | Delete Nodes and Return Forest Leetcode Solution | 115 |
1160 | Merge two BSTs with limited extra space | 115 |
1161 | Possible Bipartition LeetCode Solution | 115 |
1162 | Subset Sum Problem in O(sum) space | 115 |
1163 | Decision Tree | 115 |
1164 | Maximize sum of consecutive differences in a circular array | 115 |
1165 | Rotate Array | 115 |
1166 | Priority Queue | 115 |
1167 | Palindromic Substrings Leetcode Solution | 115 |
1168 | Closest Binary Search Tree Value Leetcode Solution | 114 |
1169 | Search Suggestions System LeetCode Solution | 114 |
1170 | Minimum Sideway Jumps LeetCode Solution | 114 |
1171 | Remove Max Number of Edges to Keep Graph Fully Traversable Leetcode Solution | 114 |
1172 | Find the smallest binary digit multiple of given number | 114 |
1173 | Number of Orders in the Backlog Leetcode Solution | 113 |
1174 | First Bad Version | 113 |
1175 | Given a binary tree, how do you remove all the half nodes? | 113 |
1176 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 113 |
1177 | Find a sorted subsequence of size 3 in linear time | 113 |
1178 | Count Pairs Whose Products Exist in Array | 113 |
1179 | Diameter of N-Ary Tree LeetCode Solution | 113 |
1180 | Bus Routes Leetcode Solution | 113 |
1181 | Decrease Elements To Make Array Zigzag LeetCode Solution | 112 |
1182 | Longest Repeated Subsequence | 112 |
1183 | Reverse a Path in BST using Queue | 112 |
1184 | Maximum number of segments of lengths a, b and c | 112 |
1185 | Contiguous Array LeetCode Solution | 112 |
1186 | Web Crawler LeetCode Solution | 112 |
1187 | Champagne Tower LeetCode Solution | 111 |
1188 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 111 |
1189 | Find Largest Value in Each Tree Row LeetCode Solution | 111 |
1190 | Lowest Common Ancestor in Binary Search Tree | 111 |
1191 | Swapping Nodes in a Linked List Leetcode Solution | 111 |
1192 | Matchsticks to Square Leetcode Solution | 111 |
1193 | Queue Reconstruction by Height | 111 |
1194 | How to print maximum number of A’s using given four keys | 110 |
1195 | Reformat Date LeetCode Solution | 110 |
1196 | New 21 Game | 110 |
1197 | Valid Triangle Number | 110 |
1198 | Moving Stones Until Consecutive Leetcode Solution | 110 |
1199 | Closest Leaf in a Binary Tree LeetCode Solution | 110 |
1200 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 110 |
1201 | Maximum sum bitonic subarray | 110 |
1202 | Maximum Depth Of Binary Tree | 109 |
1203 | Replace two consecutive equal values with one greater | 109 |
1204 | Sum of Left Leaves LeetCode Solution | 109 |
1205 | Valid Perfect Square LeetCode Solution | 109 |
1206 | Range Sum Query using Sparse Table | 109 |
1207 | Kth Smallest Element in a BST | 109 |
1208 | Print modified array after multiple array range increment operations | 109 |
1209 | Minimum Moves to Equal Array Elements LeetCode Solution | 109 |
1210 | The kth Factor of n Leetcode Solution | 109 |
1211 | Write a function to get the intersection point of two Linked Lists | 109 |
1212 | Graph and its representation | 109 |
1213 | Array Queries for multiply replacements and product | 109 |
1214 | Maximum sum of pairs with specific difference | 109 |
1215 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 108 |
1216 | Maximum sum of a path in a Right Number Triangle | 108 |
1217 | Concatenation of Array LeetCode Solution | 108 |
1218 | Design Skiplist LeetCode Solution | 108 |
1219 | Maximum Value at a Given Index in a Bounded Array LeetCode Solution | 108 |
1220 | Guess The Word | 108 |
1221 | Path Crossing Leetcode Solution | 108 |
1222 | Convert Integer to the Sum of Two No-Zero Integers Leetcode Solution | 108 |
1223 | Arithmetic Slices II – Subsequence LeetCode Solution | 108 |
1224 | Range Queries for Longest Correct Bracket Subsequence | 108 |
1225 | Merge Sort | 108 |
1226 | BST to a Tree with Sum of all Smaller Keys | 108 |
1227 | Check if all levels of two Binary Tree are anagrams or not | 107 |
1228 | Check if each internal node of a BST has exactly one child | 107 |
1229 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 107 |
1230 | Queries on Probability of Even or Odd Number in given Ranges | 107 |
1231 | Check for Identical BSTs without building the trees | 107 |
1232 | Flatten 2D Vector LeetCode Solution | 107 |
1233 | Integer Break LeetCode Solution | 107 |
1234 | Longest Common Prefix Using Word by Word Matching | 106 |
1235 | Graph Cloning | 106 |
1236 | Power of Two | 106 |
1237 | Perfect Squares LeetCode Solution | 106 |
1238 | Count Subsets Having Distinct Even Numbers | 106 |
1239 | Divide Two Integers Leetcode Solution | 106 |
1240 | Check Completeness of a Binary Tree LeetCode Solution | 106 |
1241 | Mean of range in array | 105 |
1242 | Largest Plus Sign Leetcode Solution | 105 |
1243 | Maximize Elements Using Another Array | 105 |
1244 | Symmetric Tree LeetCode Solution Leetcode Solution | 105 |
1245 | Find minimum number of merge operations to make an array palindrome | 105 |
1246 | Sliding Window Median Leetcode Solution | 105 |
1247 | Print n terms of Newman-Conway Sequence | 105 |
1248 | Maximum Array from Two given Arrays Keeping Order Same | 105 |
1249 | Bold Words in String LeetCode Solution | 105 |
1250 | Contiguous Array | 104 |
1251 | Verify Preorder Serialization of a Binary Tree | 104 |
1252 | LRU Cache Leetcode Solution | 104 |
1253 | Find k-th smallest element in BST (Order Statistics in BST) | 104 |
1254 | Missing Number | 104 |
1255 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 104 |
1256 | Print Ancestors of a Given Binary Tree Node Without Recursion | 103 |
1257 | Next greater element | 103 |
1258 | Check If a String Can Break Another String Leetcode Solution | 103 |
1259 | Parallel Courses II LeetCode Solution | 103 |
1260 | Smallest Range II Leetcode Solution | 102 |
1261 | Excel Sheet Column Title LeetCode Solution | 102 |
1262 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 102 |
1263 | Merge k Sorted Lists Leetcode Solution | 102 |
1264 | Maximum Product Subarray | 102 |
1265 | Count and Toggle Queries on a Binary Array | 101 |
1266 | Image Overlap LeetCode Solution | 101 |
1267 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 101 |
1268 | Check if two nodes are on the same path in a Tree | 100 |
1269 | Check in binary array the number represented by a subarray is odd or even | 100 |
1270 | Orderly Queue LeetCode Solution | 100 |
1271 | Palindrome Partitioning | 100 |
1272 | Koko Eating Bananas LeetCode Solution | 99 |
1273 | Merge Sorted Array | 98 |
1274 | Check if X can give change to every person in the Queue | 98 |
1275 | Min Cost Climbing Stairs LeetCode Solution | 98 |
1276 | Newman–Shanks–Williams prime | 98 |
1277 | Number of elements less than or equal to a given number in a given subarray | 97 |
1278 | Peeking Iterator LeetCode Solution | 97 |
1279 | Largest Submatrix With Rearrangements LeetCode Solution | 97 |
1280 | Different Ways to Add Parentheses Leetcode Solution | 97 |
1281 | Maximum Sum Increasing Subsequence | 96 |
1282 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 95 |
1283 | Number of indexes with equal elements in given range | 95 |
1284 | Find maximum average subarray of k length | 95 |
1285 | Queries for Decimal Values of Subarrays of a Binary Array | 94 |
1286 | Longest Substring Without Repeating Characters Leetcode Solution | 93 |
1287 | Maximum product of an increasing subsequence | 93 |
1288 | Array Nesting Leetcode Solution | 93 |
1289 | Arranging Coins Leetcode Solution | 92 |
1290 | Binary Tree to Binary Search Tree Conversion using STL set | 92 |
1291 | Check given array of size n can represent BST of n levels or not | 92 |
1292 | Encoded String With Shortest Length LeetCode Solution | 91 |
1293 | Minimum Number of People to Teach LeetCode Solution | 91 |
1294 | Minimum Total Space Wasted With K Resizing Operations LeetCode Solution | 90 |
1295 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 90 |
1296 | Random Pick Index LeetCode Solution | 90 |
1297 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 89 |
1298 | Queries on XOR of greatest odd divisor of the range | 89 |
1299 | Reach a Number LeetCode Solution | 89 |
1300 | Convert to Base -2 LeetCode Solution | 89 |
1301 | Find the Winner of the Circular Game LeetCode Solution | 88 |
1302 | Jump Game IV LeetCode Solution | 87 |
1303 | Insert Delete GetRandom O(1) Leetcode Solution | 86 |
1304 | Add Two Numbers II Leetcode Solution | 86 |
1305 | Palindrome Number LeetCode Solution | 85 |
1306 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 83 |
1307 | Design Underground System Leetcode Solution | 83 |
1308 | Print Maximum Length Chain of Pairs | 83 |
1309 | Vertical Order Traversal of Binary Tree LeetCode Solution | 82 |
1310 | Continuous Subarray Sum LeetCode Solution | 81 |
1311 | Detect Capital Leetcode Solution | 80 |
1312 | Design A Leaderboard Leetcode Solution | 78 |
1313 | Substring with Concatenation of All Words Leetcode Solution | 74 |
1314 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 74 |
1315 | Minimum Path Sum Leetcode Solution | 72 |
1316 | Top K Frequent Elements LeetCode Solution | 71 |
1317 | Odd Even Linked List Leetcode Solution | 70 |
1318 | Binary Tree Inorder Traversal LeetCode Solution | 70 |
1319 | Maximum Population Year LeetCode Solution | 69 |
1320 | Count Sub Islands LeetCode Solution | 69 |
1321 | Shortest Unsorted Continuous Subarray LeetCode Solution | 68 |
1322 | Shifting Letters LeetCode Solution | 68 |
1323 | Best Meeting Point LeetCode Solution | 68 |
1324 | Find the Town Judge LeetCode Solution | 68 |
1325 | Decode String Leetcode Solution | 67 |
1326 | Longest Common Subsequence LeetCode Solution | 67 |
1327 | Sum Root to Leaf Numbers LeetCode Solution | 66 |
1328 | Find the Town Judge LeetCode Solution | 64 |
1329 | Design Add and Search Words Data Structure LeetCode Solution | 64 |
1330 | Maximum Population Year LeetCode Solution | 62 |
1331 | Rectangle Overlap LeetCode Solution | 61 |
1332 | Score of Parenthesis LeetCode Solution | 59 |
1333 | Stone Game IV LeetCode Solution | 59 |
1334 | Insert into a Sorted Circular Linked List LeetCode Solution | 59 |
1335 | Range Sum Query 2D – Immutable LeetCode Solution | 58 |
1336 | Flatten Binary Tree to Linked List LeetCode Solution | 58 |
1337 | Valid Triangle Number LeetCode Solution | 57 |
1338 | Is Graph Bipartite? LeetCode Solution | 56 |
1339 | Reveal Cards In Increasing Order Leetcode Solution | 51 |
1340 | Divide Chocolate LeetCode Solution | 47 |
1341 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 38 |
1342 | Reverse Integer Leetcode Solution | 35 |
1343 | Sort Colors LeetCode Solution | 34 |
1344 | Range Sum of BST LeetCode Solution | 34 |
1345 | Find K Closest Elements LeetCode Solution | 32 |
1346 | Excel Sheet Column Number LeetCode Solution | 29 |
1347 | Rotate String LeetCode Solution | 28 |
1348 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 27 |