A job at MAANG comes with global acknowledgment, huge opportunities for growth and exposure, hefty salary packages, and perks. Due to these excellent career opportunities, MAANG companies tempt all career-seekers.
The interview is one of the most grueling phases of a job seeker’s life. In fact, the interview process at Facebook, Apple, Amazon, Netflix, and Google, among many other top tech companies, is unlike anything that job seekers have ever experienced. Not only are the applications notoriously difficult, but their interviews are wild.
The most coveted career goals of all tech graduates are to get a job at FAANG (Facebook, Amazon, Apple, Netflix & Google) companies. This is mainly because their work culture is quite balanced and directed towards maximum productivity. Along with that their career growth options and trajectory are fascinating and the astounding salary just adds a cherry on top of the icing.
You can practice the below MAANG Interview Questions for the interview. We have collected past MAANG Interview Questions for your reference.
| S.No | Interview Question | Number of times asked |
|---|
| 1 | Two Sum Leetcode Solution | 43667 |
| 2 | Maximum occurring character in a string | 19806 |
| 3 | Plus One Leetcode Solution | 19407 |
| 4 | Valid Parentheses LeetCode Solution | 19294 |
| 5 | 3Sum Leetcode Solution | 17382 |
| 6 | Merge Sorted Arrays Leetcode Solution | 15384 |
| 7 | First Repeating Element | 15245 |
| 8 | Single Number Leetcode Solution | 14931 |
| 9 | Count Primes Leetcode Solutions | 14736 |
| 10 | Pow(x, n) Leetcode Solution | 14463 |
| 11 | Sqrt(x) Leetcode Solution | 14310 |
| 12 | Meeting Rooms II LeetCode Solution | 13398 |
| 13 | Concatenation of Array LeetCode Solution | 12864 |
| 14 | Roman to Integer Leetcode Solution | 12035 |
| 15 | Valid Palindrome Leetcode Solution | 11897 |
| 16 | Search Insert Position Leetcode Solution | 11822 |
| 17 | Contains Duplicate II Leetcode Solution | 11820 |
| 18 | Palindrome Number LeetCode Solution | 11620 |
| 19 | Remove Duplicates from Sorted Array Leetcode Solution | 11494 |
| 20 | Jump Game Leetcode Solution | 11225 |
| 21 | Reverse Vowels of a String Leetcode Solution | 11209 |
| 22 | Intersection of Two Arrays II Leetcode Solution | 11130 |
| 23 | Longest Substring Without Repeating Characters LeetCode Solution | 11119 |
| 24 | Number of Good Pairs Leetcode Solution | 11031 |
| 25 | Spiral Matrix LeetCode Solution | 10896 |
| 26 | Kids With the Greatest Number of Candies Leetcode Solution | 10828 |
| 27 | House Robber Leetcode Solution | 10798 |
| 28 | Add Binary Leetcode Solution | 10686 |
| 29 | Maximum Subarray Leetcode Solution | 10311 |
| 30 | Number Of 1 bits | 10207 |
| 31 | Find the Maximum Repeating Number in Array | 10053 |
| 32 | Text Justification LeetCode Solution | 9939 |
| 33 | Move Zeroes LeetCode Solution | 9849 |
| 34 | Jewels and Stones Leetcode Solution | 9826 |
| 35 | Min Stack Leetcode Solution | 9765 |
| 36 | Power of Two Leetcode Solution | 9600 |
| 37 | Longest Palindromic Substring LeetCode Solution | 9575 |
| 38 | Shuffle String Leetcode Solution | 9513 |
| 39 | Permutations Leetcode Solution | 9492 |
| 40 | Evaluation of Postfix Expression | 9361 |
| 41 | Third Maximum Number Leetcode Solution | 9360 |
| 42 | Word Search Leetcode Solution | 9358 |
| 43 | Daily Temperatures Leetcode Solution | 9333 |
| 44 | Find All Numbers Disappeared in an Array Leetcode Solution | 9329 |
| 45 | Median of Two Sorted Arrays LeetCode Solution | 9278 |
| 46 | Next Permutation Leetcode Solution | 9232 |
| 47 | Search in Rotated Sorted Array Leetcode Solution | 9204 |
| 48 | Number of Islands LeetCode Solution | 9099 |
| 49 | Kth Missing Positive Number Leetcode Solution | 9091 |
| 50 | Maximum Profit in Job Scheduling Leetcode Solution | 9086 |
| 51 | Next Greater Element I Leetcode Solution | 8990 |
| 52 | Longest Common Prefix Leetcode Solution | 8981 |
| 53 | Frog Jump Leetcode Solution | 8825 |
| 54 | Valid Anagram Leetcode Solution | 8723 |
| 55 | Find Minimum Distance Between Two Numbers in an Array | 8670 |
| 56 | Running Sum of 1d Array Leetcode Solution | 8638 |
| 57 | Shuffle the Array Leetcode Solution | 8590 |
| 58 | Rotate Image LeetCode Solution | 8581 |
| 59 | Multiply Strings Leetcode Solution | 8544 |
| 60 | Combination Sum Leetcode Solution | 8518 |
| 61 | Can Place Flowers LeetCode Solution | 8509 |
| 62 | Count and Say Leetcode Solution | 8453 |
| 63 | House Robber II Leetcode Solution | 8448 |
| 64 | 3Sum Closest LeetCode Solution | 8372 |
| 65 | Bulb Switcher LeetCode Solution | 8345 |
| 66 | Best Time to Buy and Sell Stock LeetCode Solution | 8212 |
| 67 | Koko Eating Bananas Leetcode Solution | 8209 |
| 68 | Excel Sheet Column Title Leetcode Solution | 8172 |
| 69 | Happy Number Leetcode Solution | 8139 |
| 70 | Subarray and Subsequence | 8137 |
| 71 | Isomorphic Strings Leetcode Solution | 8111 |
| 72 | Majority Element Leetcode Solution | 8055 |
| 73 | Integer to Roman Leetcode Solution | 8003 |
| 74 | Count Pairs With Given Sum | 8002 |
| 75 | Candy LeetCode Solution | 8000 |
| 76 | Missing Number Leetcode Solution | 7998 |
| 77 | Product of array except self | 7929 |
| 78 | Rotate String LeetCode Solution | 7881 |
| 79 | A Product Array Puzzle | 7878 |
| 80 | Strobogrammatic Number LeetCode Solution | 7846 |
| 81 | Reverse String Without Temporary Variable | 7769 |
| 82 | Is Subsequence Leetcode Solution | 7750 |
| 83 | Binary Search LeetCode Solution | 7728 |
| 84 | Find the Difference Leetcode Solution | 7719 |
| 85 | Find the Duplicate Number LeetCode Solution | 7684 |
| 86 | Expression Evaluation | 7670 |
| 87 | Find Common Characters Leetcode Solution | 7652 |
| 88 | Largest Number Leetcode Solution | 7643 |
| 89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7555 |
| 90 | String to Integer (atoi) LeetCode Solution | 7503 |
| 91 | Subset Leetcode | 7473 |
| 92 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7465 |
| 93 | Rabin Karp Algorithm | 7415 |
| 94 | Summary Ranges Leetcode Solution | 7393 |
| 95 | Set Matrix Zeroes | 7373 |
| 96 | Word Pattern LeetCode Solution | 7312 |
| 97 | Balanced Binary Tree Leetcode Solution | 7310 |
| 98 | Sort Characters By Frequency LeetCode Solution | 7275 |
| 99 | Find the Town Judge Leetcode Solution | 7255 |
| 100 | Arranging Coins Leetcode Solution | 7215 |
| 101 | Unique Paths Leetcode Solution | 7212 |
| 102 | Find the Winner of the Circular Game LeetCode Solution | 7191 |
| 103 | Rearrange Positive and Negative Numbers Alternatively in Array | 7142 |
| 104 | Postfix to Infix Conversion | 7079 |
| 105 | Group Anagrams LeetCode Solution | 7078 |
| 106 | String Compression LeetCode Solution | 7076 |
| 107 | Asteroid Collision LeetCode Solution | 7036 |
| 108 | Page Replacement Algorithms in Operating Systems | 6989 |
| 109 | Repeated Substring Pattern LeetCode Solution | 6954 |
| 110 | Smallest window in a string containing all characters of another string | 6942 |
| 111 | Best Time to Buy and Sell Stock II Leetcode Solution | 6885 |
| 112 | Sort Colors LeetCode Solution | 6884 |
| 113 | Matrix Chain Multiplication using Dynamic Programming | 6880 |
| 114 | Sort Array By Parity LeetCode Solution | 6736 |
| 115 | Zigzag Conversion LeetCode Solution | 6733 |
| 116 | Sum of minimum and maximum elements of all subarrays of size k | 6702 |
| 117 | Kth largest element in an Array Leetcode Solutions | 6695 |
| 118 | Divide Two Integers Leetcode Solution | 6682 |
| 119 | Valid Palindrome II Leetcode Solution | 6677 |
| 120 | Generate Parentheses Leetcode Solution | 6672 |
| 121 | Assign Cookies Leetcode Solution | 6589 |
| 122 | Boolean Parenthesization Problem | 6588 |
| 123 | Find the Row with Maximum Number of 1’s | 6573 |
| 124 | Decode String Leetcode Solution | 6564 |
| 125 | Reverse Integer Leetcode Solution | 6552 |
| 126 | Remove Duplicates from Sorted Array II Leetcode Solution | 6541 |
| 127 | Pascal Triangle Leetcode | 6540 |
| 128 | Length of Last Word Leetcode Solution | 6524 |
| 129 | Product of Array Except Self LeetCode Solution | 6510 |
| 130 | H-Index Leetcode Solution | 6484 |
| 131 | Bus Routes Leetcode Solution | 6470 |
| 132 | Merge Two Sorted Lists Leetcode Solutions | 6428 |
| 133 | Number of Provinces Leetcode Solution | 6427 |
| 134 | Prefix to Infix Conversion | 6371 |
| 135 | Minimum Steps to reach target by a Knight | 6352 |
| 136 | Convert array into Zig-Zag fashion | 6350 |
| 137 | Linked List Cycle II LeetCode Solution | 6346 |
| 138 | Minimum Cost For Tickets Leetcode Solution | 6325 |
| 139 | Employee Free Time LeetCode Solution | 6316 |
| 140 | Defanging an IP Address Leetcode Solution | 6312 |
| 141 | Optimal Account Balancing LeetCode Solution | 6306 |
| 142 | Pascal’s Triangle II Leetcode Solution | 6217 |
| 143 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 6208 |
| 144 | First element occurring k times in an array | 6140 |
| 145 | Implementation of Deque using Doubly Linked List | 6133 |
| 146 | Island Perimeter Leetcode Solution | 6124 |
| 147 | Increasing Triplet Subsequence LeetCode Solution | 6123 |
| 148 | Merge Sorted Array LeetCode Solution | 6118 |
| 149 | Build Array From Permutation Leetcode Solution | 6110 |
| 150 | Majority Element II Leetcode Solution | 6085 |
| 151 | Bellman Ford Algorithm | 6080 |
| 152 | Robot Room Cleaner Leetcode Solution | 6058 |
| 153 | OSI Model | 6052 |
| 154 | Max Consecutive Ones Leetcode Solution | 6023 |
| 155 | KMP Algorithm | 5995 |
| 156 | Find Pair with Given Difference | 5986 |
| 157 | Swap Nodes in Pairs Leetcode Solutions | 5975 |
| 158 | Check if the Elements of an Array are Consecutive | 5966 |
| 159 | Set Matrix Zeroes Leetcode Solution | 5959 |
| 160 | K-th Smallest Element in a Sorted Matrix | 5939 |
| 161 | Add Two Numbers II Leetcode Solution | 5919 |
| 162 | Find the Missing Number | 5911 |
| 163 | Guess Number Higher or Lower LeetCode Solution | 5902 |
| 164 | Lemonade Change Leetcode Solution | 5877 |
| 165 | Trapping Rain Water Leetcode Solution | 5869 |
| 166 | First negative integer in every window of size k | 5868 |
| 167 | Design Parking System Leetcode Solution | 5858 |
| 168 | Fibonacci Number LeetCode Solution | 5855 |
| 169 | Subarray Sum Equals K LeetCode Solution | 5845 |
| 170 | Delete middle element of a stack | 5833 |
| 171 | Word Ladder LeetCode Solution | 5805 |
| 172 | First Unique Character in a String LeetCode Solution | 5775 |
| 173 | Last Stone Weight | 5773 |
| 174 | Coin Change 2 Leetcode Solution | 5756 |
| 175 | Length of the largest subarray with contiguous elements | 5751 |
| 176 | Subarray with Given Sum | 5750 |
| 177 | Find All Duplicates in an Array LeetCode Solution | 5745 |
| 178 | Monotonic Array LeetCode Solution | 5740 |
| 179 | Subarray Product Less Than K LeetCode Solution | 5734 |
| 180 | Capacity To Ship Packages Within D Days Leetcode Solution | 5728 |
| 181 | String Compression | 5726 |
| 182 | Palindrome Linked List Leetcode Solution | 5706 |
| 183 | Repeated Substring Pattern | 5682 |
| 184 | Form Minimum Number from Given Sequence of D’s and I’s | 5673 |
| 185 | Single Element in a Sorted Array LeetCode Solution | 5661 |
| 186 | Find Smallest Missing Number in a Sorted Array | 5627 |
| 187 | Remove Duplicates from Sorted List II LeetCode Solution | 5582 |
| 188 | 01 Matrix LeetCode Solution | 5576 |
| 189 | Combinations Leetcode Solution | 5569 |
| 190 | Continuous Subarray Sum LeetCode Solution | 5564 |
| 191 | Prefix to Postfix Conversion | 5557 |
| 192 | Leetcode Permutations | 5533 |
| 193 | Combination Sum | 5516 |
| 194 | Reverse Words in a String III LeetCode Solution | 5509 |
| 195 | Valid Perfect Square Leetcode Solution | 5507 |
| 196 | Iterative Implementation of Quick Sort | 5496 |
| 197 | Same Tree LeetCode Solution | 5481 |
| 198 | Break a Palindrome LeetCode Solution | 5476 |
| 199 | Merge k Sorted Lists Leetcode Solution | 5427 |
| 200 | Remove Linked List Elements Leetcode Solution | 5420 |
| 201 | Slowest Key Leetcode Solution | 5403 |
| 202 | Relative Ranks Leetcode Solution | 5397 |
| 203 | Top K Frequent Elements LeetCode Solution | 5392 |
| 204 | Insert Delete GetRandom O(1) Leetcode Solution | 5382 |
| 205 | Rotate List Leetcode Solution | 5379 |
| 206 | Container With Most Water LeetCode Solution | 5367 |
| 207 | Backspace String Compare | 5365 |
| 208 | Contains Duplicate LeetCode Solution | 5356 |
| 209 | Find Peak Element LeetCode Solution | 5334 |
| 210 | Maximum Product of Three Numbers LeetCode Solution | 5333 |
| 211 | Cuckoo sequence program | 5285 |
| 212 | Find the Duplicate Element | 5271 |
| 213 | The K Weakest Rows in a Matrix Leetcode Solution | 5250 |
| 214 | Printing brackets in Matrix Chain Multiplication Problem | 5248 |
| 215 | Palindrome Number | 5240 |
| 216 | Kth Largest Element in a Stream Leetcode Solution | 5236 |
| 217 | Subarray Sum Equals k | 5218 |
| 218 | Longest Common Subsequence LeetCode Solution | 5212 |
| 219 | Second Most Repeated Word in a Sequence | 5209 |
| 220 | Max Area of Island | 5184 |
| 221 | Remove All Occurrences of a Substring LeetCode Solution | 5181 |
| 222 | Rearrange given Array in Maximum Minimum Form | 5162 |
| 223 | Find Leaders in an Array | 5158 |
| 224 | Relative Sort Array Leetcode Solution | 5140 |
| 225 | Permutation in String Leetcode Solution | 5128 |
| 226 | Generate all Binary Strings Without Consecutive 1’s | 5126 |
| 227 | Make The String Great Leetcode Solution | 5120 |
| 228 | Unique Paths II Leetcode Solution | 5118 |
| 229 | Convert a Number to Hexadecimal Leetcode Solution | 5111 |
| 230 | Arithmetic Expression Evaluation | 5107 |
| 231 | Check If Two String Arrays are Equivalent Leetcode Solution | 5102 |
| 232 | Scramble String | 5096 |
| 233 | Target Sum | 5077 |
| 234 | Delete Node in a Linked List Leetcode Solution | 5073 |
| 235 | N-Queens LeetCode Solution | 5058 |
| 236 | Letter Combinations of a Phone Number | 5055 |
| 237 | Time Based Key-Value Store LeetCode Solution | 5046 |
| 238 | Construct Binary Tree from Given Inorder and Preorder Traversals | 5034 |
| 239 | Moving Average from Data Stream Leetcode Solution | 5033 |
| 240 | Find Triplet in Array With a Given Sum | 5011 |
| 241 | Next Permutation | 4999 |
| 242 | Count Good Nodes in Binary Tree Leetcode Solution | 4997 |
| 243 | Stone Game LeetCode | 4996 |
| 244 | LRU Cache LeetCode Solution | 4987 |
| 245 | Number of Dice Rolls With Target Sum LeetCode Solution | 4984 |
| 246 | Find N Unique Integers Sum up to Zero Leetcode Solution | 4961 |
| 247 | Check If N and Its Double Exist Leetcode Solution | 4948 |
| 248 | Given two unsorted arrays find all pairs whose sum is x | 4931 |
| 249 | Prim’s Algorithm | 4907 |
| 250 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4900 |
| 251 | Flipping an Image LeetCode Solution | 4895 |
| 252 | Remove Minimum Characters so that Two Strings Become Anagrams | 4893 |
| 253 | Minimum Operations to convert X to Y | 4887 |
| 254 | Minimum swaps required to bring all elements less than or equal to k together | 4870 |
| 255 | Min Stack | 4869 |
| 256 | Stock Buy Sell to Maximize Profit | 4852 |
| 257 | Top K Frequent Elements | 4851 |
| 258 | Find The Duplicate Number | 4849 |
| 259 | Minimum Knight Moves LeetCode Solution | 4845 |
| 260 | Min Cost Climbing Stairs LeetCode Solution | 4835 |
| 261 | Reverse Only Letters LeetCode Solution | 4830 |
| 262 | Student Attendance Record I Leetcode Solution | 4807 |
| 263 | To Lower Case Leetcode Solution | 4774 |
| 264 | Smallest Positive Number Missing in an Unsorted Array | 4766 |
| 265 | Single Number | 4759 |
| 266 | Maximum Sum Increasing Subsequence | 4747 |
| 267 | Maximum Subarray Sum using Divide and Conquer | 4741 |
| 268 | License Key Formatting Leetcode Solution | 4739 |
| 269 | Reverse words in a string | 4739 |
| 270 | The kth Factor of n Leetcode Solution | 4731 |
| 271 | Maximum Population Year LeetCode Solution | 4681 |
| 272 | Longest Common Subsequence | 4640 |
| 273 | Find the Number Occurring Odd Number of Times in an Array | 4626 |
| 274 | Top K Frequent Words LeetCode Solution | 4624 |
| 275 | Remove Nth Node From End of List Leetcode Solution | 4615 |
| 276 | Search Suggestions System LeetCode Solution | 4606 |
| 277 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4602 |
| 278 | Reformat Date LeetCode Solution | 4590 |
| 279 | BFS for Disconnected Graph | 4586 |
| 280 | Minimum Path Sum Leetcode Solution | 4584 |
| 281 | Find Words That Can Be Formed by Characters Leetcode Solution | 4576 |
| 282 | Sum of Subarray Ranges Leetcode Solution | 4558 |
| 283 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4552 |
| 284 | Best Time to Buy and Sell Stock III Leetcode Solution | 4533 |
| 285 | Maximum Depth of Binary Tree Leetcode Solution | 4532 |
| 286 | Reveal Cards In Increasing Order Leetcode Solution | 4527 |
| 287 | Intersection of Two Arrays | 4506 |
| 288 | N-th Tribonacci Number Leetcode Solution | 4496 |
| 289 | House Robber | 4487 |
| 290 | Sort Elements by Frequency of Occurrences | 4479 |
| 291 | Diagonal Traverse LeetCode Solution | 4469 |
| 292 | Find any one of the multiple repeating elements in read only array | 4467 |
| 293 | Maximize Distance to Closest Person LeetCode Solution | 4457 |
| 294 | Evaluate Division | 4457 |
| 295 | Reverse individual words | 4456 |
| 296 | Sudoku Solver | 4455 |
| 297 | Reverse Nodes in k-Group LeetCode Solution | 4448 |
| 298 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4448 |
| 299 | Most Frequent Element in an Array | 4439 |
| 300 | Minimum Characters to be Added at Front to Make String Palindrome | 4432 |
| 301 | Length of Longest valid Substring | 4424 |
| 302 | Last Stone Weight II LeetCode Solution | 4421 |
| 303 | Design A Leaderboard Leetcode Solution | 4419 |
| 304 | Find if Path Exists in Graph Leetcode Solution | 4413 |
| 305 | Count Number of Occurrences in a Sorted Array | 4413 |
| 306 | Count of index pairs with equal elements in an array | 4406 |
| 307 | Range Sum Query 2D – Immutable Leetcode Solution | 4399 |
| 308 | Remove All Ones With Row and Column Flips Leetcode Solution | 4398 |
| 309 | Remove Duplicates from Sorted List LeetCode Solution | 4397 |
| 310 | Binary Tree Inorder Traversal LeetCode Solution | 4388 |
| 311 | Minimum number of Merge Operations to make an Array Palindrome | 4382 |
| 312 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4375 |
| 313 | Implement a stack using single queue | 4358 |
| 314 | Find the Closest Palindrome number | 4323 |
| 315 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4320 |
| 316 | Split Linked List in Parts Leetcode Solution | 4317 |
| 317 | Brightest Position on Street LeetCode Solution | 4307 |
| 318 | Mobile Numeric Keypad Problem | 4293 |
| 319 | Find Leaves of Binary Tree LeetCode Solution | 4283 |
| 320 | Spiral Matrix II Leetcode Solution | 4279 |
| 321 | Special Positions in a Binary Matrix Leetcode Solution | 4276 |
| 322 | Reverse Bits | 4268 |
| 323 | Invalid Transactions LeetCode Solution | 4251 |
| 324 | Arrange given Numbers to Form the Biggest Number II | 4251 |
| 325 | Symmetric Tree Leetcode Solution | 4246 |
| 326 | Shortest Word Distance Leetcode Solution | 4243 |
| 327 | Maximum Subarray | 4234 |
| 328 | Paint House LeetCode Solution | 4227 |
| 329 | Round Robin Scheduling | 4227 |
| 330 | Dijkstra Algorithm | 4226 |
| 331 | Sort Array By Parity II Leetcode Solution | 4192 |
| 332 | Diagonal Traversal LeetCode Solution | 4191 |
| 333 | Find Duplicates in an Array in Most Efficient Way | 4182 |
| 334 | One Edit Distance LeetCode Solution | 4168 |
| 335 | Rank Transform of an Array Leetcode Solution | 4162 |
| 336 | Partition Labels LeetCode Solution | 4145 |
| 337 | Largest Rectangle in Histogram LeetCode Solution | 4144 |
| 338 | Hamming Distance Leetcode Solution | 4142 |
| 339 | Remove Invalid Parentheses Leetcode Solution | 4140 |
| 340 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 4137 |
| 341 | Maximal Square | 4133 |
| 342 | String Matching in an Array Leetcode Solution | 4132 |
| 343 | Unique Paths | 4127 |
| 344 | Minimum Moves to Equal Array Elements Leetcode Solution | 4123 |
| 345 | Jump Game | 4123 |
| 346 | Tug of War | 4122 |
| 347 | Alien Dictionary LeetCode Solution | 4118 |
| 348 | Recursion | 4102 |
| 349 | The Celebrity Problem | 4097 |
| 350 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 4089 |
| 351 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 4085 |
| 352 | Postfix to Prefix Conversion | 4068 |
| 353 | Validate Stack Sequences LeetCode Solution | 4065 |
| 354 | Next Permutation LeetCode Solution | 4065 |
| 355 | Construct BST from its given Level Order Traversal | 4064 |
| 356 | Range Sum of BST LeetCode Solution | 4057 |
| 357 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 4053 |
| 358 | Bitwise AND of Numbers Range LeetCode Solution | 4053 |
| 359 | Minimum operation to make all elements equal in array | 4050 |
| 360 | Merge Two Sorted Linked Lists | 4050 |
| 361 | Unique Paths III LeetCode Solution | 4046 |
| 362 | Least Number of Unique Integers after K Removals Leetcode Solution | 4045 |
| 363 | Smallest Subarray with k Distinct Numbers | 4037 |
| 364 | Given an Array of Pairs Find all Symmetric Pairs in it | 4031 |
| 365 | Count of Triplets With Sum Less than Given Value | 4030 |
| 366 | Minimum Depth of Binary Tree Leetcode Solution | 4028 |
| 367 | Pair of Positive Negative Values in an Array | 4024 |
| 368 | Minimum Time Visiting All Points Leetcode Solution | 4020 |
| 369 | Invert Binary Tree LeetCode Solution | 4016 |
| 370 | Maximum Circular Subarray Sum | 4015 |
| 371 | Transpose Graph | 4014 |
| 372 | Longest Common Prefix using Trie | 4007 |
| 373 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 4006 |
| 374 | Check whether Strings are K Distance Apart or Not | 3985 |
| 375 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 3978 |
| 376 | Find minimum difference between any two elements | 3975 |
| 377 | Next Greater Element III LeetCode Solution | 3968 |
| 378 | Minimum Cost to Hire K Workers | 3967 |
| 379 | K Empty Slots LeetCode | 3966 |
| 380 | Robot Bounded In Circle LeetCode Solution | 3965 |
| 381 | Clone Graph LeetCode Solution | 3959 |
| 382 | Substring with Concatenation of All Words Leetcode Solution | 3958 |
| 383 | Kruskal Algorithm | 3957 |
| 384 | Check if a given array contains duplicate elements within k distance from each other | 3953 |
| 385 | Toeplitz Matrix | 3950 |
| 386 | Ugly Number II LeetCode Solution | 3947 |
| 387 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 3934 |
| 388 | Implementation of Deque using circular array | 3924 |
| 389 | 3 Sum | 3920 |
| 390 | Longest subarray not having more than K distinct elements | 3916 |
| 391 | Sort a stack using a temporary stack | 3915 |
| 392 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3910 |
| 393 | LRU Cache Implementation | 3908 |
| 394 | Stack Permutations (Check if an array is stack permutation of other) | 3905 |
| 395 | Find the First and Second Smallest Elements | 3905 |
| 396 | Graph Valid Tree LeetCode Solution | 3900 |
| 397 | Invert Binary Tree LeetCode Solution | 3898 |
| 398 | Word Search | 3898 |
| 399 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3897 |
| 400 | Sliding Window Technique | 3888 |
| 401 | Permutation Sequence LeetCode Solution | 3885 |
| 402 | Longest subsequence such that difference between adjacents is one | 3885 |
| 403 | Non-decreasing Array LeetCode Solution | 3878 |
| 404 | Find the subarray with least average | 3877 |
| 405 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3873 |
| 406 | Kth Smallest Element in a BST Leetcode Solution | 3865 |
| 407 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3859 |
| 408 | Design Browser History LeetCode Solution | 3858 |
| 409 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3854 |
| 410 | Stone Game II Leetcode | 3852 |
| 411 | Priority Queue using doubly linked list | 3850 |
| 412 | 4Sum | 3847 |
| 413 | Number of Islands II LeetCode Solution | 3844 |
| 414 | Max stack | 3842 |
| 415 | Missing Element in Sorted Array LeetCode Solution | 3841 |
| 416 | Find duplicates in a given array when elements are not limited to a range | 3839 |
| 417 | Top View of Binary Tree | 3834 |
| 418 | Queries for counts of array elements with values in given range | 3823 |
| 419 | Number Complement Leetcode Solution | 3820 |
| 420 | K Closest Points to Origin Leetcode Solution | 3814 |
| 421 | Path With Maximum Minimum Value LeetCode Solution | 3810 |
| 422 | Common elements in all rows of a given matrix | 3810 |
| 423 | First Circular Tour to Visit all the Petrol Bunks | 3810 |
| 424 | Minesweeper LeetCode Solution | 3809 |
| 425 | Partition List Leetcode Solution | 3807 |
| 426 | LRU Cache Leetcode Solution | 3804 |
| 427 | Painting Fence Algorithm | 3804 |
| 428 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3801 |
| 429 | Find Top K (or Most Frequent) Numbers in a Stream | 3796 |
| 430 | Find the Peak Element from an Array | 3794 |
| 431 | Number of Smaller Elements on Right Side | 3791 |
| 432 | Nth Catalan Number | 3785 |
| 433 | Sequences of given length where every element is more than or equal to twice of previous | 3782 |
| 434 | Find Maximum Level sum in Binary Tree | 3781 |
| 435 | Fibonacci Number LeetCode Solution | 3780 |
| 436 | Snakes and Ladders LeetCode Solution | 3777 |
| 437 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3775 |
| 438 | Combination Sum IV LeetCode Solution | 3767 |
| 439 | Search a 2D Matrix II Leetcode Solution | 3763 |
| 440 | Sliding Window Maximum LeetCode Solution | 3760 |
| 441 | Sort elements by frequency | 3757 |
| 442 | Maximum Consecutive Numbers Present in an Array | 3746 |
| 443 | High Five LeetCode Solution | 3745 |
| 444 | Integer Break LeetCode Solution | 3745 |
| 445 | Tiling Problem | 3730 |
| 446 | Count items common to both the lists but with different prices | 3730 |
| 447 | Insert Interval Leetcode Solution | 3729 |
| 448 | Odd Even Linked List Leetcode Solution | 3728 |
| 449 | Flood Fill LeetCode | 3721 |
| 450 | Check if Two given Strings are Isomorphic to each other | 3720 |
| 451 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3719 |
| 452 | Rearrange array such that even positioned are greater than odd | 3715 |
| 453 | Distance of nearest cell having 1 in a binary matrix | 3711 |
| 454 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3709 |
| 455 | Move All the Zeros to the End of the Given Array | 3709 |
| 456 | Gold Mine Problem | 3706 |
| 457 | Shortest Palindrome | 3700 |
| 458 | Interval Tree | 3698 |
| 459 | Consecutive Characters LeetCode Solution | 3693 |
| 460 | Search in a Binary Search Tree Leetcode Solution | 3684 |
| 461 | Insert into a Binary Search Tree Leetcode Solution | 3678 |
| 462 | Kth Non-repeating Character | 3670 |
| 463 | N queen problem | 3668 |
| 464 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3662 |
| 465 | Number of Closed Islands Leetcode Solution | 3648 |
| 466 | Spiral Matrix III LeetCode Solution | 3648 |
| 467 | Expression Contains Redundant Bracket or Not | 3644 |
| 468 | Find a Peak Element II LeetCode Solution | 3642 |
| 469 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3640 |
| 470 | Minimum Absolute Difference in BST Leetcode Solution | 3639 |
| 471 | Decompress Run-Length Encoded List Leetcode Solution | 3637 |
| 472 | Trapping Rain Water LeetCode Solution | 3634 |
| 473 | Integer to English words | 3624 |
| 474 | Longest Common Prefix using Sorting | 3624 |
| 475 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3615 |
| 476 | Evaluate Reverse Polish Notation LeetCode Solution | 3614 |
| 477 | Queries for GCD of all numbers of an array except elements in a given range | 3614 |
| 478 | Coin Change Problem | 3610 |
| 479 | Sort Colors | 3606 |
| 480 | Restore IP Addresses Leetcode Solution | 3605 |
| 481 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3605 |
| 482 | Minimum Path Sum | 3604 |
| 483 | Sliding Window Median Leetcode Solution | 3603 |
| 484 | Find Pythagorean Triplets from Array | 3596 |
| 485 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3594 |
| 486 | Sort an array according to the order defined by another array | 3588 |
| 487 | Binary Tree Maximum Path Sum LeetCode Solution | 3582 |
| 488 | Sorting array using Stacks | 3579 |
| 489 | Balanced Expression with Replacement | 3576 |
| 490 | Reverse a linked list | 3573 |
| 491 | Fibonacci numbers | 3570 |
| 492 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3564 |
| 493 | Palindrome Substring Queries | 3561 |
| 494 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3555 |
| 495 | Priority Queue in C++ | 3550 |
| 496 | Majority Element | 3548 |
| 497 | Best Time to Buy and Sell Stock | 3546 |
| 498 | Cells with Odd Values in a Matrix LeetCode Solution | 3527 |
| 499 | Number of Days Between Two Dates LeetCode Solution | 3521 |
| 500 | Subset sum problem | 3521 |
| 501 | Multiplication of Two Matrices | 3520 |
| 502 | Camelcase Matching Leetcode Solution | 3518 |
| 503 | Queue using Stacks | 3515 |
| 504 | Find Median from Data Stream LeetCode Solution | 3511 |
| 505 | Path Crossing Leetcode Solution | 3509 |
| 506 | Is Graph Bipartite? LeetCode Solution | 3508 |
| 507 | Find the first Repeating Number in a Given Array | 3505 |
| 508 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3495 |
| 509 | The Stock Span Problem | 3494 |
| 510 | Sieve of Eratosthenes | 3493 |
| 511 | Path Sum II LeetCode Solution | 3492 |
| 512 | How to Implement Stack Using Priority Queue or Heap? | 3484 |
| 513 | Design Hit Counter LeetCode Solution | 3480 |
| 514 | Morris Traversal | 3469 |
| 515 | Analyze User Website Visit Pattern LeetCode Solution | 3466 |
| 516 | Count Submatrices With All Ones LeetCode Solution | 3462 |
| 517 | Kth ancestor of a node in binary tree | 3462 |
| 518 | Shortest Completing Word Leetcode Solution | 3459 |
| 519 | Generate all Binary Strings from Given Pattern | 3458 |
| 520 | Largest rectangular sub-matrix whose sum is 0 | 3457 |
| 521 | Divide Chocolate LeetCode Solution | 3456 |
| 522 | Longest Increasing Path in a Matrix LeetCode Solution | 3456 |
| 523 | Intersection of Two Linked Lists LeetCode Solution | 3456 |
| 524 | Pancake Sorting Problem | 3455 |
| 525 | Detect a loop in the Linked List | 3452 |
| 526 | Custom Sort String Leetcode Solution | 3448 |
| 527 | Count subarrays having total distinct elements same as original array | 3445 |
| 528 | Find a Fixed Point in a Given Array | 3429 |
| 529 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3424 |
| 530 | Group Anagrams | 3421 |
| 531 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3420 |
| 532 | Monotonic Array Leetcode Solution | 3419 |
| 533 | Different Ways to Add Parentheses Leetcode Solution | 3419 |
| 534 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3410 |
| 535 | Construction of Longest Increasing Subsequence (N log N) | 3407 |
| 536 | Queue based approach for first non-repeating character in a stream | 3402 |
| 537 | Implement strStr() LeetCode Solution | 3401 |
| 538 | Letter Case Permutation | 3401 |
| 539 | Minimum Height Trees | 3401 |
| 540 | Valid Boomerang Leetcode Solution | 3396 |
| 541 | Scramble String LeetCode Solution | 3395 |
| 542 | Maximum Element in an Array which is Increasing and then Decreasing | 3393 |
| 543 | Decode Ways | 3387 |
| 544 | Perfect Squares LeetCode Solution | 3386 |
| 545 | Merge Overlapping Intervals | 3386 |
| 546 | How to Create Mergable Stack? | 3375 |
| 547 | Nearest Exit from Entrance in Maze LeetCode Solution | 3371 |
| 548 | Shifting Letters LeetCode Solution | 3365 |
| 549 | Number of Distinct Islands Leetcode Solution | 3362 |
| 550 | Reorder Data in Log Files LeetCode Solution | 3358 |
| 551 | First missing positive | 3357 |
| 552 | Find the Lost Element From a Duplicated Array | 3357 |
| 553 | Implement Trie (Prefix Tree) Leetcode Solution | 3354 |
| 554 | Find maximum length Snake sequence | 3353 |
| 555 | Binary Tree zigzag level order Traversal | 3345 |
| 556 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3344 |
| 557 | LCS (Longest Common Subsequence) of three strings | 3340 |
| 558 | Sliding Window Maximum | 3340 |
| 559 | Race Car LeetCode Solution | 3337 |
| 560 | Maximum Sum of Non Consecutive Elements | 3335 |
| 561 | Sort a stack using recursion | 3332 |
| 562 | Champagne Tower LeetCode Solution | 3328 |
| 563 | Longest Common Prefix using Divide and Conquer | 3324 |
| 564 | Find if an Expression has Duplicate Parenthesis or Not | 3323 |
| 565 | Insert Node in the Sorted Linked List | 3323 |
| 566 | Most Stones Removed with Same Row or Column LeetCode Solution | 3321 |
| 567 | Build an Array With Stack Operations Leetcode Solution | 3321 |
| 568 | Number of Equivalent Domino Pairs Leetcode Solution | 3320 |
| 569 | Recover Binary Search Tree | 3320 |
| 570 | Count Possible Triangles | 3320 |
| 571 | Decode String | 3318 |
| 572 | Design Skiplist LeetCode Solution | 3317 |
| 573 | Largest Subarray with Equal Number of 0’s and 1’s | 3302 |
| 574 | Guess Number Higher or Lower II | 3292 |
| 575 | Contiguous Array LeetCode Solution | 3290 |
| 576 | Smallest Good Base | 3290 |
| 577 | Palindrome Permutation LeetCode Solution | 3285 |
| 578 | Minimum Bracket Reversals | 3284 |
| 579 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3281 |
| 580 | All Possible Full Binary Trees LeetCode Solution | 3278 |
| 581 | Find a Sorted Subsequence of size 3 | 3277 |
| 582 | Maximum Length of Chain Pairs | 3276 |
| 583 | Longest Repeated Subsequence | 3259 |
| 584 | Rectangle Overlap LeetCode Solution | 3257 |
| 585 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3256 |
| 586 | Merge Two Binary Trees LeetCode Solution | 3254 |
| 587 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3252 |
| 588 | Recover Binary Search Tree Leetcode Solution | 3250 |
| 589 | Maximum Depth of N-ary Tree Leetcode Solution | 3250 |
| 590 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3249 |
| 591 | Distance Between Bus Stops Leetcode Solution | 3249 |
| 592 | Minimum Height Trees LeetCode Solution | 3241 |
| 593 | Find the Town Judge LeetCode Solution | 3239 |
| 594 | Rearrange Spaces Between Words Leetcode Solution | 3238 |
| 595 | Palindrome Partitioning Leetcode Solution | 3237 |
| 596 | Design a Stack With Increment Operation Leetcode Solution | 3237 |
| 597 | Implement Two Stacks in an Array | 3230 |
| 598 | Print all Palindromic Partitions of a String | 3229 |
| 599 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3228 |
| 600 | Reorder an Array According to the Given Indexes | 3218 |
| 601 | K-th Distinct Element in an Array | 3214 |
| 602 | Minimum number of jumps to reach end | 3212 |
| 603 | Check for Balanced Parentheses in an Expression | 3209 |
| 604 | Valid Parentheses Leetcode Solution | 3204 |
| 605 | Subarrays with K Different Integers Leetcode Solution | 3201 |
| 606 | The Maze III LeetCode Solution | 3195 |
| 607 | Mean of Array After Removing Some Elements Leetcode Solution | 3179 |
| 608 | Maximum sum rectangle in a 2D matrix | 3179 |
| 609 | Sort a String According to Another String | 3178 |
| 610 | Maximize Elements Using Another Array | 3174 |
| 611 | Find the First Circular Tour that visits all the Petrol Pumps | 3174 |
| 612 | Jump Game IV LeetCode Solution | 3173 |
| 613 | Count pair with Given Sum | 3166 |
| 614 | Maximum Score After Splitting a String Leetcode Solution | 3160 |
| 615 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 3156 |
| 616 | Contains Duplicate | 3153 |
| 617 | Perform String Shifts Leetcode | 3152 |
| 618 | Heap Sort | 3150 |
| 619 | Valid Sudoku | 3137 |
| 620 | Word Break | 3136 |
| 621 | Merge Overlapping Intervals II | 3136 |
| 622 | Find the Minimum Element in a Sorted and Rotated Array | 3123 |
| 623 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 3117 |
| 624 | Iterative Method to find Height of Binary Tree | 3116 |
| 625 | Possible Bipartition LeetCode Solution | 3115 |
| 626 | Convert BST to Min Heap | 3115 |
| 627 | A Space Optimized DP solution for 0-1 Knapsack Problem | 3109 |
| 628 | Palindrome Permutations of a String | 3109 |
| 629 | Edit Distance LeetCode Solution | 3107 |
| 630 | Minimum Jumps to Reach Home LeetCode Solution | 3107 |
| 631 | Palindrome Permutation | 3107 |
| 632 | Huffman Coding | 3104 |
| 633 | Find Largest Value in Each Tree Row LeetCode Solution | 3101 |
| 634 | Count Sub Islands LeetCode Solution | 3085 |
| 635 | Palindromic Substrings Leetcode Solution | 3079 |
| 636 | All Unique Triplets that Sum up to a Given Value | 3079 |
| 637 | Best Meeting Point LeetCode Solution | 3072 |
| 638 | Segregate 0s and 1s in an Array | 3071 |
| 639 | Number of palindromic paths in a matrix | 3066 |
| 640 | Reach a Number LeetCode Solution | 3058 |
| 641 | Maximum Product of Splitted Binary Tree LeetCode Solution | 3057 |
| 642 | Find Median from data Stream | 3057 |
| 643 | Find the Subarray of given length with Least Average | 3054 |
| 644 | Caesar Cipher | 3053 |
| 645 | Merge Two Balanced Binary Search Trees | 3050 |
| 646 | Level order Traversal in Spiral Form | 3048 |
| 647 | My Calendar I LeetCode Solution | 3043 |
| 648 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 3039 |
| 649 | Pair with given product | 3032 |
| 650 | Word Pattern | 3031 |
| 651 | Find all triplets with zero sum | 3027 |
| 652 | Brick Wall LeetCode Solution | 3017 |
| 653 | Sorted Linked List to Balanced BST | 3017 |
| 654 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 3009 |
| 655 | Partition Problem | 3009 |
| 656 | Count Good Nodes in Binary Tree LeetCode Solution | 3006 |
| 657 | Construct BST from given Preorder Traversal | 2996 |
| 658 | Validate Binary Search Tree | 2994 |
| 659 | Alien Dictionary | 2988 |
| 660 | Swapping Nodes in a Linked List Leetcode Solution | 2985 |
| 661 | Add two numbers | 2979 |
| 662 | Merge K Sorted Arrays and Print Sorted Output | 2979 |
| 663 | Isomorphic Strings LeetCode Solution | 2975 |
| 664 | Minimum time required to rot all oranges | 2975 |
| 665 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 2974 |
| 666 | Find whether a subarray is in form of a mountain or not | 2974 |
| 667 | Breadth First Search (BFS) for a Graph | 2970 |
| 668 | Convert Sorted List to Binary Search Tree | 2969 |
| 669 | Print Fibonacci sequence using 2 variables | 2963 |
| 670 | Maximize Sum of Array after K Negations Leetcode Solution | 2961 |
| 671 | How to Efficiently Implement k Stacks in a Single Array? | 2956 |
| 672 | Find all pairs (a, b) in an array such that a % b = k | 2953 |
| 673 | Count Distinct Elements in Every Window of Size K | 2953 |
| 674 | Queries on Probability of Even or Odd Number in given Ranges | 2951 |
| 675 | Sort 0s 1s and 2s in an Array | 2951 |
| 676 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 2946 |
| 677 | Longest Subarray Having Count of 1s One More than Count of 0s | 2944 |
| 678 | Rotate Array | 2943 |
| 679 | Largest Sum Contiguous Subarray | 2940 |
| 680 | Bubble sort using two Stacks | 2935 |
| 681 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2934 |
| 682 | Range Sum Query 2D – Immutable LeetCode Solution | 2927 |
| 683 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2923 |
| 684 | Maximum Frequency Stack Leetcode Solution | 2922 |
| 685 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2921 |
| 686 | Detect Capital Leetcode Solution | 2919 |
| 687 | Split Array Into Consecutive Subsequences | 2913 |
| 688 | Find four elements that sum to a given value (Hashmap) | 2911 |
| 689 | Remove brackets from an algebraic string containing + and – operators | 2911 |
| 690 | Count ways to reach the nth stair using step 1, 2 or 3 | 2900 |
| 691 | Binary Tree Right Side View LeetCode Solution | 2899 |
| 692 | Binary Tree to Binary Search Tree Conversion | 2895 |
| 693 | Counting Bits | 2891 |
| 694 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2890 |
| 695 | Difference Array | Range update query in O(1) | 2890 |
| 696 | Remove duplicates from sorted array | 2885 |
| 697 | Length of Longest Fibonacci Subsequence | 2885 |
| 698 | Merge Two Sorted Lists Leetcode | 2882 |
| 699 | Remove Palindromic Subsequences Leetcode Solution | 2879 |
| 700 | Partition Equal Subset Sum | 2875 |
| 701 | Print all subarrays with 0 sum | 2872 |
| 702 | Partition to K Equal Sum Subsets Leetcode Solution | 2865 |
| 703 | Populating Next Right Pointers in Each Node Leetcode Solution | 2862 |
| 704 | Minimum Sum Path in a Triangle | 2854 |
| 705 | Populating Next Right Pointers in Each Node | 2854 |
| 706 | Find pairs with given sum such that elements of pair are in different rows | 2852 |
| 707 | Happy Number | 2851 |
| 708 | Topological Sorting | 2851 |
| 709 | Check if a Linked list of Strings form a Palindrome | 2848 |
| 710 | Elements Appear more than N/K times in Array | 2847 |
| 711 | Arithmetic Slices II – Subsequence LeetCode Solution | 2839 |
| 712 | String comparison containing wildcards | 2836 |
| 713 | Queue Reconstruction by Height | 2827 |
| 714 | Find All Pairs With a Given Difference | 2826 |
| 715 | Contiguous Array Leetcode | 2824 |
| 716 | Concatenation of Array LeetCode Solution | 2820 |
| 717 | Reverse Nodes in K-Group | 2819 |
| 718 | Web Crawler LeetCode Solution | 2807 |
| 719 | Inorder Successor of a node in Binary Tree | 2799 |
| 720 | Maximum Distance in Array | 2790 |
| 721 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2787 |
| 722 | Increasing Subsequence of Length three with Maximum Product | 2786 |
| 723 | Find Duplicate Subtrees | 2784 |
| 724 | Swap Kth Node from beginning with Kth Node from End | 2774 |
| 725 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2768 |
| 726 | Root to Leaf path with target sum Leetcode Solutions | 2767 |
| 727 | Finding K closest element | 2760 |
| 728 | Score of Parenthesis LeetCode Solution | 2758 |
| 729 | MiniMax Algorithm | 2756 |
| 730 | Check if String Follows Order of Characters by a Pattern or not | 2755 |
| 731 | Longest Common Prefix Using Binary Search II | 2753 |
| 732 | Given a binary tree, how do you remove all the half nodes? | 2750 |
| 733 | An Interesting Method to generate Binary Numbers from 1 to n | 2747 |
| 734 | Symmetric Tree | 2745 |
| 735 | Climbing stairs | 2745 |
| 736 | Maximum Product Subarray II | 2741 |
| 737 | Longest Increasing Subsequence | 2736 |
| 738 | Find the first repeating element in an array of integers | 2735 |
| 739 | Construct Binary Tree from given Parent Array representation | 2733 |
| 740 | Pancake Sorting | 2731 |
| 741 | Container with Most Water | 2728 |
| 742 | Count Minimum Steps to Get the given Array | 2724 |
| 743 | Union and Intersection of two Linked Lists | 2723 |
| 744 | Deletion in a Binary Tree | 2722 |
| 745 | Find K Closest Elements LeetCode Solution | 2719 |
| 746 | Parallel Courses II LeetCode Solution | 2718 |
| 747 | Iterative Preorder Traversal | 2711 |
| 748 | Delete Nth node from the end of the given linked list | 2711 |
| 749 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2704 |
| 750 | BFS vs DFS for Binary Tree | 2695 |
| 751 | Delete Nodes and Return Forest Leetcode Solution | 2690 |
| 752 | Check if all levels of two Binary Tree are anagrams or not | 2690 |
| 753 | Sum Root to Leaf Numbers LeetCode Solution | 2686 |
| 754 | Kill Process LeetCode Solution | 2682 |
| 755 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2681 |
| 756 | Substring With Concatenation Of All Words | 2681 |
| 757 | Level order traversal using two Queues | 2678 |
| 758 | Level of Each node in a Tree from source node | 2676 |
| 759 | Count pairs from two linked lists whose sum is equal to a given value | 2674 |
| 760 | Boundary Traversal of binary tree | 2673 |
| 761 | Nested List Weight Sum II LeetCode Solution | 2671 |
| 762 | Rearrange an Array Such that arr[i] is equal to i | 2669 |
| 763 | Find Maximum of Minimum for Every Window Size in a Given Array | 2666 |
| 764 | Iterative Depth First Traversal of Graph | 2660 |
| 765 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2658 |
| 766 | Find the Difference Leetcode Solution | 2654 |
| 767 | Super Ugly Number | 2654 |
| 768 | Sort Array by Increasing Frequency Leetcode Solution | 2653 |
| 769 | Non-overlapping sum of two sets | 2651 |
| 770 | Linked List Cycle | 2651 |
| 771 | Minimum Size Subarray Sum | 2650 |
| 772 | Valid Anagrams | 2646 |
| 773 | New 21 Game | 2646 |
| 774 | Remove Duplicates from Sorted List II | 2641 |
| 775 | Longest Common Prefix Word by Word Matching | 2638 |
| 776 | Matrix Chain Multiplication | 2636 |
| 777 | Merge K Sorted Linked Lists | 2631 |
| 778 | K maximum sums of overlapping contiguous sub-arrays | 2626 |
| 779 | Merging Intervals | 2619 |
| 780 | Maximum size subarray sum equals k | 2618 |
| 781 | Range LCM Queries | 2617 |
| 782 | Reservoir Sampling | 2617 |
| 783 | Reorder Array Using Given Indexes | 2610 |
| 784 | Palindrome Partitioning | 2607 |
| 785 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2603 |
| 786 | Check if any two intervals overlap among a given set of intervals | 2603 |
| 787 | Print a Binary Tree in Vertical Order | 2600 |
| 788 | Maximum Product Subarray | 2593 |
| 789 | Balanced Binary Tree | 2589 |
| 790 | Tree Traversal (Preorder, Inorder & Postorder) | 2589 |
| 791 | Create Maximum Number | 2585 |
| 792 | Sorting a K Sorted Array | 2583 |
| 793 | Flatten Binary Tree to Linked List LeetCode Solution | 2577 |
| 794 | Verify Preorder Serialization of a Binary Tree | 2577 |
| 795 | The Painter’s Partition Problem | 2575 |
| 796 | Missing Number | 2574 |
| 797 | Friends Of Appropriate Ages LeetCode Solution | 2572 |
| 798 | Check if a queue can be sorted into another queue using a stack | 2572 |
| 799 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2566 |
| 800 | Defanging an IP Address LeetCode Solution | 2563 |
| 801 | Check if Two Expressions With Brackets are Same | 2563 |
| 802 | Maximum difference between two elements such as larger element comes after smaller | 2563 |
| 803 | Peak Index in a Mountain Array LeetCode Solution | 2559 |
| 804 | Smallest Range II Leetcode Solution | 2554 |
| 805 | Valid Triangle Number LeetCode Solution | 2543 |
| 806 | Hamming Distance | 2541 |
| 807 | Unique Binary Search Trees LeetCode Solution | 2538 |
| 808 | Valid Triangle Number LeetCode Solution | 2536 |
| 809 | Minimum insertions to form a palindrome with permutations allowed | 2535 |
| 810 | Vertical sum in a given binary tree | 2534 |
| 811 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2533 |
| 812 | Lowest Common Ancestor | 2531 |
| 813 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2529 |
| 814 | Find Sum of all unique sub-array sum for a given array | 2527 |
| 815 | Count number of triplets with product equal to given number | 2526 |
| 816 | Iterative Postorder Traversal Using Two Stacks | 2520 |
| 817 | Largest Submatrix With Rearrangements LeetCode Solution | 2519 |
| 818 | Find K Length Subarray of Maximum Average | 2519 |
| 819 | Find subarray with given sum (Handles Negative Numbers) | 2518 |
| 820 | Minimum Distance Between BST Nodes Leetcode Solution | 2517 |
| 821 | Check if two nodes are on the same path in a Tree | 2515 |
| 822 | Number Of Longest Increasing Subsequence | 2511 |
| 823 | Sort Elements by Frequency II | 2506 |
| 824 | Find Element Using Binary Search in Sorted Array | 2504 |
| 825 | Find Common Characters Leetcode Solution | 2495 |
| 826 | Merging Two Sorted Arrays | 2495 |
| 827 | Find distance between two nodes of a Binary Tree | 2490 |
| 828 | First Bad Version | 2490 |
| 829 | Newman-Conway Sequence | 2488 |
| 830 | Third Maximum Number Leetcode Solution | 2482 |
| 831 | Check Completeness of a Binary Tree LeetCode Solution | 2481 |
| 832 | Flatten 2D Vector LeetCode Solution | 2478 |
| 833 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2478 |
| 834 | Maximum number of segments of lengths a, b and c | 2475 |
| 835 | Maximum subsequence sum such that no three are consecutive | 2473 |
| 836 | Print All Distinct Elements of a Given Integer Array | 2473 |
| 837 | Find Peak Element | 2473 |
| 838 | Employee Importance LeetCode Solution | 2472 |
| 839 | Products of ranges in an array | 2472 |
| 840 | Print all triplets in sorted array that form AP | 2471 |
| 841 | Longest Bitonic Subsequence | 2466 |
| 842 | Closest Leaf in a Binary Tree LeetCode Solution | 2465 |
| 843 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2462 |
| 844 | Diagonal Traversal of Binary Tree | 2462 |
| 845 | Find Smallest Range Containing Elements from k Lists | 2460 |
| 846 | Array Nesting Leetcode Solution | 2459 |
| 847 | Arrange given numbers to form the biggest number | 2458 |
| 848 | Range Sum Query using Sparse Table | 2457 |
| 849 | Largest subarray with equal number of 0s and 1s | 2457 |
| 850 | Lower Case To Upper Case | 2457 |
| 851 | Valid Parenthesis String | 2456 |
| 852 | Find Nth Node | 2445 |
| 853 | Stone Game IV LeetCode Solution | 2443 |
| 854 | Longest Palindromic Subsequence | 2438 |
| 855 | Largest BST Subtree LeetCode Solution | 2436 |
| 856 | Distinct Subsequences | 2436 |
| 857 | Trapping Rain Water II LeetCode Solution | 2433 |
| 858 | Median of Two Sorted Arrays | 2433 |
| 859 | Print Right View of a Binary Tree | 2428 |
| 860 | Segment Tree | 2427 |
| 861 | Bottom View of a Binary Tree | 2424 |
| 862 | Contiguous Array | 2420 |
| 863 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2412 |
| 864 | Shuffle an Array | 2412 |
| 865 | Largest divisible pairs subset | 2411 |
| 866 | Path Sum | 2411 |
| 867 | Number of siblings of a given Node in n-ary Tree | 2410 |
| 868 | Four Elements that Sum to Given | 2410 |
| 869 | Subset Sum Problem in O(sum) space | 2398 |
| 870 | Stone Game IV LeetCode Solution | 2397 |
| 871 | Find the largest multiple of 3 | 2397 |
| 872 | Write a function to get the intersection point of two Linked Lists | 2396 |
| 873 | Merge Two Sorted Arrays | 2388 |
| 874 | Maximum Population Year LeetCode Solution | 2386 |
| 875 | Binary array after M range toggle operations | 2384 |
| 876 | Count and Say | 2383 |
| 877 | Isomorphic Strings | 2379 |
| 878 | Unique Binary Search Trees | 2376 |
| 879 | Red-Black Tree Introduction | 2373 |
| 880 | Permutations of a Given String Using STL | 2372 |
| 881 | Infix to Postfix | 2371 |
| 882 | Next Greater Element in an Array | 2368 |
| 883 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2358 |
| 884 | Height of a generic tree from parent array | 2357 |
| 885 | Friends Pairing Problem | 2350 |
| 886 | Find Largest d in Array such that a + b + c = d | 2348 |
| 887 | Closest Binary Search Tree Value Leetcode Solution | 2344 |
| 888 | Valid Number | 2340 |
| 889 | Valid Perfect Square LeetCode Solution | 2335 |
| 890 | The Number of Weak Characters in the Game LeetCode Solution | 2331 |
| 891 | Encoded String With Shortest Length LeetCode Solution | 2328 |
| 892 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2328 |
| 893 | Maximum Product Subarray | 2326 |
| 894 | Count Primes in Ranges | 2325 |
| 895 | Sentence Screen Fitting LeetCode Solution | 2320 |
| 896 | Averages of Levels in Binary Tree | 2320 |
| 897 | Find unique character in a string | 2319 |
| 898 | Insert Delete GetRandom | 2318 |
| 899 | Maximum Sum of 3 Non-Overlapping Subarrays | 2318 |
| 900 | Transform a BST to Greater sum Tree | 2316 |
| 901 | Shuffle a given Array | 2304 |
| 902 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2303 |
| 903 | Binary Search Tree Delete Operation | 2301 |
| 904 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2298 |
| 905 | Edit Distance | 2287 |
| 906 | Orderly Queue LeetCode Solution | 2286 |
| 907 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2284 |
| 908 | Reorganize String | 2283 |
| 909 | Print n terms of Newman-Conway Sequence | 2280 |
| 910 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2279 |
| 911 | Convert BST into a Min-Heap without using array | 2273 |
| 912 | Minimum sum of squares of character counts in a given string after removing k characters | 2271 |
| 913 | Serialize and Deserialize Binary Tree | 2268 |
| 914 | Integer to Roman | 2262 |
| 915 | Bold Words in String LeetCode Solution | 2257 |
| 916 | Find Minimum In Rotated Sorted Array | 2257 |
| 917 | Lowest Common Ancestor in Binary Search Tree | 2253 |
| 918 | Range Queries for Longest Correct Bracket Subsequence | 2247 |
| 919 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2246 |
| 920 | Next greater element | 2246 |
| 921 | Maximum Product Subarray | 2245 |
| 922 | Swap Nodes In Pairs | 2240 |
| 923 | Diameter of N-Ary Tree LeetCode Solution | 2236 |
| 924 | Koko Eating Bananas LeetCode Solution | 2234 |
| 925 | Array Queries for multiply replacements and product | 2233 |
| 926 | Find the smallest binary digit multiple of given number | 2221 |
| 927 | K’th Largest element in BST using constant extra space | 2214 |
| 928 | K’th Largest Element in BST when modification to BST is not allowed | 2214 |
| 929 | Advantages of BST over Hash Table | 2212 |
| 930 | Constant time range add operation on an array | 2208 |
| 931 | Maximum Sum Increasing Subsequence | 2206 |
| 932 | Next Greater Element II LeetCode Solution | 2200 |
| 933 | Write Code to Determine if Two Trees are Identical | 2191 |
| 934 | Best Meeting Point LeetCode Solution | 2186 |
| 935 | Serialize and Deserialize Binary Tree LeetCode Solution | 2182 |
| 936 | Moving Stones Until Consecutive Leetcode Solution | 2181 |
| 937 | Check if an Array is Stack Sortable | 2179 |
| 938 | Valid Tic-Tac-Toe State LeetCode Solution | 2178 |
| 939 | Total Hamming Distance LeetCode Solution | 2174 |
| 940 | Longest Increasing Consecutive Subsequence | 2169 |
| 941 | Queries on XOR of greatest odd divisor of the range | 2167 |
| 942 | Power of Two | 2164 |
| 943 | Level Order Traversal of Binary Tree | 2163 |
| 944 | Insert into a Sorted Circular Linked List LeetCode Solution | 2159 |
| 945 | Numbers with prime frequencies greater than or equal to k | 2157 |
| 946 | Design Underground System Leetcode Solution | 2154 |
| 947 | Check if each internal node of a BST has exactly one child | 2152 |
| 948 | Clone a Binary Tree with Random Pointers | 2151 |
| 949 | Check if X can give change to every person in the Queue | 2148 |
| 950 | Reverse a Path in BST using Queue | 2146 |
| 951 | Greatest Sum Divisible by Three LeetCode Solution | 2145 |
| 952 | Image Overlap LeetCode Solution | 2145 |
| 953 | Number of elements less than or equal to a given number in a given subarray | 2145 |
| 954 | Number of Orders in the Backlog Leetcode Solution | 2138 |
| 955 | Find minimum number of merge operations to make an array palindrome | 2138 |
| 956 | Form minimum number from given sequence | 2136 |
| 957 | Find the node with minimum value in a Binary Search Tree | 2136 |
| 958 | A program to check if a binary tree is BST or not | 2128 |
| 959 | Count the Pairs at Same Distance as in English Alphabets | 2127 |
| 960 | Design Add and Search Words Data Structure LeetCode Solution | 2123 |
| 961 | Maximum Array from Two given Arrays Keeping Order Same | 2122 |
| 962 | Graph Cloning | 2120 |
| 963 | Count and Toggle Queries on a Binary Array | 2113 |
| 964 | Collect maximum points in a grid using two traversals | 2112 |
| 965 | Factorial Trailing Zeroes LeetCode Solution | 2111 |
| 966 | Print Next Greater Number of Q queries | 2107 |
| 967 | Merge two BSTs with limited extra space | 2100 |
| 968 | Largest Plus Sign Leetcode Solution | 2096 |
| 969 | Closest Binary Search Tree Value II LeetCode Solution | 2095 |
| 970 | Maximum difference between first and last indexes of an element in array | 2093 |
| 971 | Check for Palindrome after every character replacement Query | 2085 |
| 972 | Dividing Array into Pairs With Sum Divisible by K | 2082 |
| 973 | Merge Sort | 2081 |
| 974 | Queries for Decimal Values of Subarrays of a Binary Array | 2080 |
| 975 | Group Shifted Strings Leetcode Solution | 2079 |
| 976 | Merge Sorted Array | 2078 |
| 977 | Priority Queue | 2063 |
| 978 | Print modified array after multiple array range increment operations | 2049 |
| 979 | Longest Substring Without Repeating Characters Leetcode Solution | 2048 |
| 980 | Form Minimum Number From Given Sequence | 2048 |
| 981 | Print Ancestors of a Given Binary Tree Node Without Recursion | 2042 |
| 982 | Count even length binary sequences with same sum of first and second half bits | 2040 |
| 983 | Kth Smallest Element in a BST | 2034 |
| 984 | Excel Sheet Column Number LeetCode Solution | 2032 |
| 985 | Guess The Word | 2029 |
| 986 | Print all Possible Ways to Break a String in Bracket Form | 2028 |
| 987 | Cutting a Rod | 2026 |
| 988 | Swim in Rising Water LeetCode Solution | 2022 |
| 989 | Minimum Moves to Equal Array Elements LeetCode Solution | 2014 |
| 990 | Count Pairs Whose Products Exist in Array | 2000 |
| 991 | Binary Search Tree | 1999 |
| 992 | Find maximum average subarray of k length | 1996 |
| 993 | Excel Sheet Column Title LeetCode Solution | 1994 |
| 994 | How to print maximum number of A’s using given four keys | 1993 |
| 995 | Palindrome Partitioning | 1992 |
| 996 | Unique Paths II | 1985 |
| 997 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 1982 |
| 998 | Find postorder traversal of BST from preorder traversal | 1977 |
| 999 | K Empty Slots | 1966 |
| 1000 | Sum of Left Leaves LeetCode Solution | 1961 |
| 1001 | Binary Search Tree Search and Insertion | 1958 |
| 1002 | Check given array of size n can represent BST of n levels or not | 1955 |
| 1003 | Longest Common Prefix using Character by Character Matching | 1954 |
| 1004 | Regular Expression Matching | 1952 |
| 1005 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1931 |
| 1006 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1926 |
| 1007 | Sorted Array to Balanced BST | 1926 |
| 1008 | Queries for Number of Distinct Elements in a Subarray | 1894 |
| 1009 | Construct Complete Binary Tree from its Linked List Representation | 1894 |
| 1010 | Maximum Depth Of Binary Tree | 1893 |
| 1011 | Find the Town Judge LeetCode Solution | 1874 |
| 1012 | Iterative method to find ancestors of a given binary tree | 1868 |
| 1013 | Maximum weight transformation of a given string | 1866 |
| 1014 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1857 |
| 1015 | Symmetric Tree LeetCode Solution Leetcode Solution | 1850 |
| 1016 | Binary Tree to Binary Search Tree Conversion using STL set | 1845 |
| 1017 | Find Maximum Depth of Nested Parenthesis in a String | 1842 |
| 1018 | Search in Sorted Rotated Array | 1826 |
| 1019 | Data Structure Designing | 1825 |
| 1020 | Random Pick Index LeetCode Solution | 1816 |
| 1021 | Search an Element in Sorted Rotated Array | 1786 |
| 1022 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1769 |
| 1023 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1761 |
| 1024 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1757 |
| 1025 | Next Greater Element I Leetcode Solution | 1751 |
| 1026 | Print Maximum Length Chain of Pairs | 1715 |
| 1027 | Flatten Binary Tree to Linked List LeetCode Solution | 1702 |
| 1028 | Maximum Binary Tree | 1697 |
| 1029 | Peeking Iterator LeetCode Solution | 1672 |
| 1030 | Find k-th smallest element in BST (Order Statistics in BST) | 1670 |
| 1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1627 |