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 | 43767 |
| 2 | Maximum occurring character in a string | 19859 |
| 3 | Plus One Leetcode Solution | 19517 |
| 4 | Valid Parentheses LeetCode Solution | 19355 |
| 5 | 3Sum Leetcode Solution | 17570 |
| 6 | Merge Sorted Arrays Leetcode Solution | 15466 |
| 7 | First Repeating Element | 15326 |
| 8 | Single Number Leetcode Solution | 15004 |
| 9 | Count Primes Leetcode Solutions | 14797 |
| 10 | Pow(x, n) Leetcode Solution | 14670 |
| 11 | Sqrt(x) Leetcode Solution | 14449 |
| 12 | Meeting Rooms II LeetCode Solution | 13477 |
| 13 | Concatenation of Array LeetCode Solution | 12957 |
| 14 | Roman to Integer Leetcode Solution | 12112 |
| 15 | Valid Palindrome Leetcode Solution | 11961 |
| 16 | Contains Duplicate II Leetcode Solution | 11864 |
| 17 | Search Insert Position Leetcode Solution | 11861 |
| 18 | Palindrome Number LeetCode Solution | 11685 |
| 19 | Remove Duplicates from Sorted Array Leetcode Solution | 11555 |
| 20 | Jump Game Leetcode Solution | 11286 |
| 21 | Reverse Vowels of a String Leetcode Solution | 11259 |
| 22 | Number of Good Pairs Leetcode Solution | 11213 |
| 23 | Longest Substring Without Repeating Characters LeetCode Solution | 11204 |
| 24 | Intersection of Two Arrays II Leetcode Solution | 11186 |
| 25 | Spiral Matrix LeetCode Solution | 10958 |
| 26 | Kids With the Greatest Number of Candies Leetcode Solution | 10874 |
| 27 | House Robber Leetcode Solution | 10870 |
| 28 | Add Binary Leetcode Solution | 10746 |
| 29 | Maximum Subarray Leetcode Solution | 10395 |
| 30 | Number Of 1 bits | 10288 |
| 31 | Find the Maximum Repeating Number in Array | 10124 |
| 32 | Text Justification LeetCode Solution | 10019 |
| 33 | Move Zeroes LeetCode Solution | 9919 |
| 34 | Jewels and Stones Leetcode Solution | 9900 |
| 35 | Min Stack Leetcode Solution | 9862 |
| 36 | Power of Two Leetcode Solution | 9644 |
| 37 | Longest Palindromic Substring LeetCode Solution | 9639 |
| 38 | Permutations Leetcode Solution | 9590 |
| 39 | Shuffle String Leetcode Solution | 9589 |
| 40 | Word Search Leetcode Solution | 9464 |
| 41 | Third Maximum Number Leetcode Solution | 9445 |
| 42 | Evaluation of Postfix Expression | 9417 |
| 43 | Daily Temperatures Leetcode Solution | 9413 |
| 44 | Find All Numbers Disappeared in an Array Leetcode Solution | 9376 |
| 45 | Median of Two Sorted Arrays LeetCode Solution | 9339 |
| 46 | Next Permutation Leetcode Solution | 9296 |
| 47 | Search in Rotated Sorted Array Leetcode Solution | 9267 |
| 48 | Number of Islands LeetCode Solution | 9162 |
| 49 | Kth Missing Positive Number Leetcode Solution | 9155 |
| 50 | Maximum Profit in Job Scheduling Leetcode Solution | 9145 |
| 51 | Next Greater Element I Leetcode Solution | 9067 |
| 52 | Longest Common Prefix Leetcode Solution | 9029 |
| 53 | Frog Jump Leetcode Solution | 8878 |
| 54 | Valid Anagram Leetcode Solution | 8806 |
| 55 | Find Minimum Distance Between Two Numbers in an Array | 8727 |
| 56 | Running Sum of 1d Array Leetcode Solution | 8716 |
| 57 | Shuffle the Array Leetcode Solution | 8683 |
| 58 | Rotate Image LeetCode Solution | 8645 |
| 59 | Multiply Strings Leetcode Solution | 8608 |
| 60 | Combination Sum Leetcode Solution | 8587 |
| 61 | Can Place Flowers LeetCode Solution | 8577 |
| 62 | House Robber II Leetcode Solution | 8528 |
| 63 | Count and Say Leetcode Solution | 8513 |
| 64 | 3Sum Closest LeetCode Solution | 8444 |
| 65 | Bulb Switcher LeetCode Solution | 8413 |
| 66 | Koko Eating Bananas Leetcode Solution | 8291 |
| 67 | Best Time to Buy and Sell Stock LeetCode Solution | 8275 |
| 68 | Subarray and Subsequence | 8226 |
| 69 | Excel Sheet Column Title Leetcode Solution | 8224 |
| 70 | Happy Number Leetcode Solution | 8207 |
| 71 | Isomorphic Strings Leetcode Solution | 8166 |
| 72 | Majority Element Leetcode Solution | 8124 |
| 73 | Candy LeetCode Solution | 8111 |
| 74 | Missing Number Leetcode Solution | 8089 |
| 75 | Integer to Roman Leetcode Solution | 8067 |
| 76 | Count Pairs With Given Sum | 8065 |
| 77 | Product of array except self | 7980 |
| 78 | A Product Array Puzzle | 7951 |
| 79 | Rotate String LeetCode Solution | 7946 |
| 80 | Strobogrammatic Number LeetCode Solution | 7904 |
| 81 | Binary Search LeetCode Solution | 7825 |
| 82 | Reverse String Without Temporary Variable | 7824 |
| 83 | Is Subsequence Leetcode Solution | 7807 |
| 84 | Find the Difference Leetcode Solution | 7764 |
| 85 | Find the Duplicate Number LeetCode Solution | 7757 |
| 86 | Expression Evaluation | 7752 |
| 87 | Largest Number Leetcode Solution | 7727 |
| 88 | Find Common Characters Leetcode Solution | 7719 |
| 89 | Subtract the Product and Sum of Digits of an Integer Leetcode Solution | 7601 |
| 90 | String to Integer (atoi) LeetCode Solution | 7568 |
| 91 | Subset Leetcode | 7565 |
| 92 | Rabin Karp Algorithm | 7533 |
| 93 | How Many Numbers Are Smaller Than the Current Number Leetcode Solution | 7514 |
| 94 | Summary Ranges Leetcode Solution | 7457 |
| 95 | Set Matrix Zeroes | 7430 |
| 96 | Boolean Parenthesization Problem | 7425 |
| 97 | Balanced Binary Tree Leetcode Solution | 7382 |
| 98 | Word Pattern LeetCode Solution | 7358 |
| 99 | Sort Characters By Frequency LeetCode Solution | 7337 |
| 100 | Find the Town Judge Leetcode Solution | 7325 |
| 101 | Find the Winner of the Circular Game LeetCode Solution | 7288 |
| 102 | Unique Paths Leetcode Solution | 7285 |
| 103 | Arranging Coins Leetcode Solution | 7268 |
| 104 | Rearrange Positive and Negative Numbers Alternatively in Array | 7224 |
| 105 | Group Anagrams LeetCode Solution | 7170 |
| 106 | Postfix to Infix Conversion | 7165 |
| 107 | String Compression LeetCode Solution | 7137 |
| 108 | Asteroid Collision LeetCode Solution | 7086 |
| 109 | Page Replacement Algorithms in Operating Systems | 7051 |
| 110 | Repeated Substring Pattern LeetCode Solution | 7011 |
| 111 | Smallest window in a string containing all characters of another string | 6990 |
| 112 | Best Time to Buy and Sell Stock II Leetcode Solution | 6948 |
| 113 | Sort Colors LeetCode Solution | 6940 |
| 114 | Matrix Chain Multiplication using Dynamic Programming | 6937 |
| 115 | Sort Array By Parity LeetCode Solution | 6796 |
| 116 | Zigzag Conversion LeetCode Solution | 6795 |
| 117 | Sum of minimum and maximum elements of all subarrays of size k | 6772 |
| 118 | Kth largest element in an Array Leetcode Solutions | 6768 |
| 119 | Valid Palindrome II Leetcode Solution | 6742 |
| 120 | Divide Two Integers Leetcode Solution | 6734 |
| 121 | Generate Parentheses Leetcode Solution | 6724 |
| 122 | Find the Row with Maximum Number of 1’s | 6665 |
| 123 | Decode String Leetcode Solution | 6655 |
| 124 | Assign Cookies Leetcode Solution | 6653 |
| 125 | Pascal Triangle Leetcode | 6635 |
| 126 | Reverse Integer Leetcode Solution | 6602 |
| 127 | Remove Duplicates from Sorted Array II Leetcode Solution | 6596 |
| 128 | Product of Array Except Self LeetCode Solution | 6586 |
| 129 | Length of Last Word Leetcode Solution | 6575 |
| 130 | H-Index Leetcode Solution | 6571 |
| 131 | Bus Routes Leetcode Solution | 6530 |
| 132 | Merge Two Sorted Lists Leetcode Solutions | 6493 |
| 133 | Number of Provinces Leetcode Solution | 6490 |
| 134 | Prefix to Infix Conversion | 6464 |
| 135 | Linked List Cycle II LeetCode Solution | 6416 |
| 136 | Convert array into Zig-Zag fashion | 6400 |
| 137 | Minimum Steps to reach target by a Knight | 6400 |
| 138 | Minimum Cost For Tickets Leetcode Solution | 6389 |
| 139 | Employee Free Time LeetCode Solution | 6373 |
| 140 | Defanging an IP Address Leetcode Solution | 6361 |
| 141 | Optimal Account Balancing LeetCode Solution | 6359 |
| 142 | Pascal’s Triangle II Leetcode Solution | 6312 |
| 143 | Find First and Last Position of Element in Sorted Array Leetcode Solution | 6262 |
| 144 | Bellman Ford Algorithm | 6213 |
| 145 | First element occurring k times in an array | 6207 |
| 146 | Implementation of Deque using Doubly Linked List | 6204 |
| 147 | Island Perimeter Leetcode Solution | 6202 |
| 148 | Increasing Triplet Subsequence LeetCode Solution | 6182 |
| 149 | OSI Model | 6177 |
| 150 | Merge Sorted Array LeetCode Solution | 6174 |
| 151 | Build Array From Permutation Leetcode Solution | 6163 |
| 152 | Majority Element II Leetcode Solution | 6140 |
| 153 | Robot Room Cleaner Leetcode Solution | 6130 |
| 154 | KMP Algorithm | 6109 |
| 155 | Max Consecutive Ones Leetcode Solution | 6095 |
| 156 | Find Pair with Given Difference | 6051 |
| 157 | Check if the Elements of an Array are Consecutive | 6049 |
| 158 | Swap Nodes in Pairs Leetcode Solutions | 6037 |
| 159 | K-th Smallest Element in a Sorted Matrix | 6027 |
| 160 | Set Matrix Zeroes Leetcode Solution | 6013 |
| 161 | Add Two Numbers II Leetcode Solution | 6008 |
| 162 | Find the Missing Number | 5979 |
| 163 | Guess Number Higher or Lower LeetCode Solution | 5963 |
| 164 | Lemonade Change Leetcode Solution | 5948 |
| 165 | Trapping Rain Water Leetcode Solution | 5938 |
| 166 | First negative integer in every window of size k | 5927 |
| 167 | Fibonacci Number LeetCode Solution | 5922 |
| 168 | Design Parking System Leetcode Solution | 5913 |
| 169 | Subarray Sum Equals K LeetCode Solution | 5911 |
| 170 | Delete middle element of a stack | 5886 |
| 171 | Word Ladder LeetCode Solution | 5865 |
| 172 | First Unique Character in a String LeetCode Solution | 5842 |
| 173 | Last Stone Weight | 5842 |
| 174 | Subarray with Given Sum | 5834 |
| 175 | Coin Change 2 Leetcode Solution | 5825 |
| 176 | Length of the largest subarray with contiguous elements | 5807 |
| 177 | Monotonic Array LeetCode Solution | 5803 |
| 178 | Find All Duplicates in an Array LeetCode Solution | 5796 |
| 179 | Capacity To Ship Packages Within D Days Leetcode Solution | 5795 |
| 180 | String Compression | 5790 |
| 181 | Subarray Product Less Than K LeetCode Solution | 5789 |
| 182 | Repeated Substring Pattern | 5767 |
| 183 | Form Minimum Number from Given Sequence of D’s and I’s | 5764 |
| 184 | Palindrome Linked List Leetcode Solution | 5759 |
| 185 | Single Element in a Sorted Array LeetCode Solution | 5734 |
| 186 | Find Smallest Missing Number in a Sorted Array | 5690 |
| 187 | Leetcode Permutations | 5653 |
| 188 | Continuous Subarray Sum LeetCode Solution | 5647 |
| 189 | Remove Duplicates from Sorted List II LeetCode Solution | 5641 |
| 190 | 01 Matrix LeetCode Solution | 5641 |
| 191 | Prefix to Postfix Conversion | 5625 |
| 192 | Combinations Leetcode Solution | 5624 |
| 193 | Combination Sum | 5579 |
| 194 | Reverse Words in a String III LeetCode Solution | 5563 |
| 195 | Valid Perfect Square Leetcode Solution | 5557 |
| 196 | Iterative Implementation of Quick Sort | 5552 |
| 197 | Break a Palindrome LeetCode Solution | 5546 |
| 198 | Same Tree LeetCode Solution | 5534 |
| 199 | Remove Linked List Elements Leetcode Solution | 5495 |
| 200 | Merge k Sorted Lists Leetcode Solution | 5484 |
| 201 | Insert Delete GetRandom O(1) Leetcode Solution | 5482 |
| 202 | Rotate List Leetcode Solution | 5467 |
| 203 | Slowest Key Leetcode Solution | 5462 |
| 204 | Top K Frequent Elements LeetCode Solution | 5461 |
| 205 | Container With Most Water LeetCode Solution | 5454 |
| 206 | Relative Ranks Leetcode Solution | 5452 |
| 207 | Contains Duplicate LeetCode Solution | 5443 |
| 208 | Backspace String Compare | 5435 |
| 209 | Find Peak Element LeetCode Solution | 5409 |
| 210 | Cuckoo sequence program | 5400 |
| 211 | Maximum Product of Three Numbers LeetCode Solution | 5389 |
| 212 | Find the Duplicate Element | 5330 |
| 213 | Palindrome Number | 5326 |
| 214 | Subarray Sum Equals k | 5322 |
| 215 | Printing brackets in Matrix Chain Multiplication Problem | 5314 |
| 216 | The K Weakest Rows in a Matrix Leetcode Solution | 5300 |
| 217 | Kth Largest Element in a Stream Leetcode Solution | 5297 |
| 218 | Longest Common Subsequence LeetCode Solution | 5266 |
| 219 | Second Most Repeated Word in a Sequence | 5250 |
| 220 | Find Leaders in an Array | 5242 |
| 221 | Remove All Occurrences of a Substring LeetCode Solution | 5232 |
| 222 | Max Area of Island | 5232 |
| 223 | Rearrange given Array in Maximum Minimum Form | 5215 |
| 224 | Generate all Binary Strings Without Consecutive 1’s | 5209 |
| 225 | Relative Sort Array Leetcode Solution | 5199 |
| 226 | Unique Paths II Leetcode Solution | 5194 |
| 227 | Scramble String | 5193 |
| 228 | Arithmetic Expression Evaluation | 5181 |
| 229 | Permutation in String Leetcode Solution | 5180 |
| 230 | Target Sum | 5172 |
| 231 | Check If Two String Arrays are Equivalent Leetcode Solution | 5171 |
| 232 | Convert a Number to Hexadecimal Leetcode Solution | 5168 |
| 233 | Make The String Great Leetcode Solution | 5163 |
| 234 | Delete Node in a Linked List Leetcode Solution | 5134 |
| 235 | Letter Combinations of a Phone Number | 5121 |
| 236 | Time Based Key-Value Store LeetCode Solution | 5113 |
| 237 | N-Queens LeetCode Solution | 5109 |
| 238 | Find Triplet in Array With a Given Sum | 5107 |
| 239 | Moving Average from Data Stream Leetcode Solution | 5100 |
| 240 | Construct Binary Tree from Given Inorder and Preorder Traversals | 5096 |
| 241 | Count Good Nodes in Binary Tree Leetcode Solution | 5083 |
| 242 | Stone Game LeetCode | 5074 |
| 243 | Next Permutation | 5060 |
| 244 | LRU Cache LeetCode Solution | 5050 |
| 245 | Number of Dice Rolls With Target Sum LeetCode Solution | 5033 |
| 246 | Prim’s Algorithm | 5018 |
| 247 | Find N Unique Integers Sum up to Zero Leetcode Solution | 5017 |
| 248 | Check If N and Its Double Exist Leetcode Solution | 5010 |
| 249 | Minimum Operations to convert X to Y | 5006 |
| 250 | Min Stack | 4981 |
| 251 | Given two unsorted arrays find all pairs whose sum is x | 4977 |
| 252 | Number of Steps to Reduce a Number to Zero Leetcode Solution | 4972 |
| 253 | Remove Minimum Characters so that Two Strings Become Anagrams | 4970 |
| 254 | Flipping an Image LeetCode Solution | 4943 |
| 255 | Minimum swaps required to bring all elements less than or equal to k together | 4913 |
| 256 | Find The Duplicate Number | 4908 |
| 257 | Minimum Knight Moves LeetCode Solution | 4906 |
| 258 | Top K Frequent Elements | 4903 |
| 259 | Stock Buy Sell to Maximize Profit | 4898 |
| 260 | Min Cost Climbing Stairs LeetCode Solution | 4890 |
| 261 | Reverse Only Letters LeetCode Solution | 4879 |
| 262 | Student Attendance Record I Leetcode Solution | 4858 |
| 263 | Smallest Positive Number Missing in an Unsorted Array | 4851 |
| 264 | To Lower Case Leetcode Solution | 4828 |
| 265 | Maximum Sum Increasing Subsequence | 4824 |
| 266 | Single Number | 4818 |
| 267 | License Key Formatting Leetcode Solution | 4795 |
| 268 | The kth Factor of n Leetcode Solution | 4793 |
| 269 | Reverse words in a string | 4793 |
| 270 | Maximum Subarray Sum using Divide and Conquer | 4792 |
| 271 | Maximum Population Year LeetCode Solution | 4744 |
| 272 | Longest Common Subsequence | 4692 |
| 273 | Top K Frequent Words LeetCode Solution | 4690 |
| 274 | Find the Number Occurring Odd Number of Times in an Array | 4683 |
| 275 | Remove Nth Node From End of List Leetcode Solution | 4667 |
| 276 | Find Words That Can Be Formed by Characters Leetcode Solution | 4658 |
| 277 | BFS for Disconnected Graph | 4656 |
| 278 | Sudoku Solver | 4655 |
| 279 | Search Suggestions System LeetCode Solution | 4652 |
| 280 | Minimum Path Sum Leetcode Solution | 4650 |
| 281 | Special Array With X Elements Greater Than or Equal X Leetcode Solution | 4646 |
| 282 | Reformat Date LeetCode Solution | 4642 |
| 283 | Pairs of Songs With Total Durations Divisible by 60 LeetCode Solution | 4613 |
| 284 | Reveal Cards In Increasing Order Leetcode Solution | 4598 |
| 285 | Sum of Subarray Ranges Leetcode Solution | 4594 |
| 286 | Maximum Depth of Binary Tree Leetcode Solution | 4589 |
| 287 | Intersection of Two Arrays | 4572 |
| 288 | Sort Elements by Frequency of Occurrences | 4572 |
| 289 | Best Time to Buy and Sell Stock III Leetcode Solution | 4571 |
| 290 | N-th Tribonacci Number Leetcode Solution | 4556 |
| 291 | House Robber | 4548 |
| 292 | Maximum Size Subarray Sum Equals k Leetcode Solution | 4540 |
| 293 | Find any one of the multiple repeating elements in read only array | 4540 |
| 294 | Reverse Nodes in k-Group LeetCode Solution | 4539 |
| 295 | Diagonal Traverse LeetCode Solution | 4523 |
| 296 | Evaluate Division | 4520 |
| 297 | Maximize Distance to Closest Person LeetCode Solution | 4516 |
| 298 | Most Frequent Element in an Array | 4504 |
| 299 | Reverse individual words | 4498 |
| 300 | Remove All Ones With Row and Column Flips Leetcode Solution | 4497 |
| 301 | Minimum Characters to be Added at Front to Make String Palindrome | 4488 |
| 302 | Range Sum Query 2D – Immutable Leetcode Solution | 4486 |
| 303 | Length of Longest valid Substring | 4483 |
| 304 | Design A Leaderboard Leetcode Solution | 4481 |
| 305 | Find Index of Closing Bracket for a Given Opening Bracket in an Expression | 4477 |
| 306 | Binary Tree Inorder Traversal LeetCode Solution | 4471 |
| 307 | Find if Path Exists in Graph Leetcode Solution | 4467 |
| 308 | Last Stone Weight II LeetCode Solution | 4465 |
| 309 | Count of index pairs with equal elements in an array | 4462 |
| 310 | Count Number of Occurrences in a Sorted Array | 4460 |
| 311 | Remove Duplicates from Sorted List LeetCode Solution | 4444 |
| 312 | Minimum number of Merge Operations to make an Array Palindrome | 4438 |
| 313 | Split Linked List in Parts Leetcode Solution | 4415 |
| 314 | Implement a stack using single queue | 4415 |
| 315 | Partition Array Into Three Parts With Equal Sum Leetcode Solution | 4400 |
| 316 | Brightest Position on Street LeetCode Solution | 4382 |
| 317 | Find the Closest Palindrome number | 4373 |
| 318 | Dijkstra Algorithm | 4368 |
| 319 | Mobile Numeric Keypad Problem | 4356 |
| 320 | Find Leaves of Binary Tree LeetCode Solution | 4352 |
| 321 | Reverse Bits | 4338 |
| 322 | Spiral Matrix II Leetcode Solution | 4329 |
| 323 | Special Positions in a Binary Matrix Leetcode Solution | 4326 |
| 324 | Arrange given Numbers to Form the Biggest Number II | 4326 |
| 325 | Invalid Transactions LeetCode Solution | 4314 |
| 326 | Symmetric Tree Leetcode Solution | 4308 |
| 327 | Round Robin Scheduling | 4303 |
| 328 | Maximum Subarray | 4298 |
| 329 | Shortest Word Distance Leetcode Solution | 4296 |
| 330 | Paint House LeetCode Solution | 4291 |
| 331 | Sort Array By Parity II Leetcode Solution | 4244 |
| 332 | Find Duplicates in an Array in Most Efficient Way | 4240 |
| 333 | Diagonal Traversal LeetCode Solution | 4238 |
| 334 | Recursion | 4236 |
| 335 | One Edit Distance LeetCode Solution | 4231 |
| 336 | Maximal Square | 4227 |
| 337 | Hamming Distance Leetcode Solution | 4224 |
| 338 | Rank Transform of an Array Leetcode Solution | 4214 |
| 339 | Partition Labels LeetCode Solution | 4208 |
| 340 | Largest Rectangle in Histogram LeetCode Solution | 4198 |
| 341 | Remove Invalid Parentheses Leetcode Solution | 4197 |
| 342 | Minimum Moves to Equal Array Elements Leetcode Solution | 4195 |
| 343 | Binary Tree Zigzag Level Order Traversal LeetCode Solution | 4194 |
| 344 | Alien Dictionary LeetCode Solution | 4190 |
| 345 | Tug of War | 4190 |
| 346 | Jump Game | 4189 |
| 347 | Unique Paths | 4185 |
| 348 | String Matching in an Array Leetcode Solution | 4183 |
| 349 | Find Winner on a Tic Tac Toe Game Leetcode Solution | 4181 |
| 350 | Postfix to Prefix Conversion | 4153 |
| 351 | Minimum Time to Collect All Apples in a Tree LeetCode Solution | 4152 |
| 352 | Count of Triplets With Sum Less than Given Value | 4150 |
| 353 | The Celebrity Problem | 4143 |
| 354 | Next Permutation LeetCode Solution | 4129 |
| 355 | Validate Stack Sequences LeetCode Solution | 4125 |
| 356 | Bitwise AND of Numbers Range LeetCode Solution | 4125 |
| 357 | Merge Two Sorted Linked Lists | 4119 |
| 358 | Construct BST from its given Level Order Traversal | 4115 |
| 359 | Unique Paths III LeetCode Solution | 4114 |
| 360 | Range Sum of BST LeetCode Solution | 4112 |
| 361 | Lowest Common Ancestor of a Binary Tree Leetcode Solution | 4107 |
| 362 | Least Number of Unique Integers after K Removals Leetcode Solution | 4102 |
| 363 | Minimum Depth of Binary Tree Leetcode Solution | 4102 |
| 364 | Given an Array of Pairs Find all Symmetric Pairs in it | 4099 |
| 365 | Minimum operation to make all elements equal in array | 4097 |
| 366 | Smallest Subarray with k Distinct Numbers | 4094 |
| 367 | Transpose Graph | 4086 |
| 368 | Minimum Time Visiting All Points Leetcode Solution | 4080 |
| 369 | Invert Binary Tree LeetCode Solution | 4079 |
| 370 | Maximum Circular Subarray Sum | 4078 |
| 371 | Toeplitz Matrix | 4071 |
| 372 | Pair of Positive Negative Values in an Array | 4069 |
| 373 | Maximum Length of a Concatenated String with Unique Characters Leetcode Solution | 4066 |
| 374 | Longest Common Prefix using Trie | 4058 |
| 375 | Clone Graph LeetCode Solution | 4041 |
| 376 | Minimum Number of Steps to Make Two Strings Anagram Leetcode Solutions | 4039 |
| 377 | Check whether Strings are K Distance Apart or Not | 4039 |
| 378 | Robot Bounded In Circle LeetCode Solution | 4038 |
| 379 | Find minimum difference between any two elements | 4038 |
| 380 | Kruskal Algorithm | 4037 |
| 381 | Next Greater Element III LeetCode Solution | 4033 |
| 382 | Ugly Number II LeetCode Solution | 4030 |
| 383 | 3 Sum | 4030 |
| 384 | K Empty Slots LeetCode | 4021 |
| 385 | Minimum Cost to Hire K Workers | 4016 |
| 386 | Longest Substring with At Most K Distinct Characters LeetCode Solution | 4014 |
| 387 | Substring with Concatenation of All Words Leetcode Solution | 4011 |
| 388 | 4Sum | 4011 |
| 389 | Check if a given array contains duplicate elements within k distance from each other | 3998 |
| 390 | Max stack | 3986 |
| 391 | LRU Cache Implementation | 3985 |
| 392 | Find the First and Second Smallest Elements | 3985 |
| 393 | Implementation of Deque using circular array | 3983 |
| 394 | Word Search | 3976 |
| 395 | Graph Valid Tree LeetCode Solution | 3971 |
| 396 | Longest subarray not having more than K distinct elements | 3966 |
| 397 | Minimize Maximum Pair Sum in Array LeetCode Solution | 3963 |
| 398 | Sort a stack using a temporary stack | 3963 |
| 399 | Invert Binary Tree LeetCode Solution | 3956 |
| 400 | Regular Expression Matching Regular Expression Matching LeetCode Solution | 3954 |
| 401 | Stack Permutations (Check if an array is stack permutation of other) | 3954 |
| 402 | Sliding Window Technique | 3954 |
| 403 | Stone Game II Leetcode | 3938 |
| 404 | Permutation Sequence LeetCode Solution | 3935 |
| 405 | Non-decreasing Array LeetCode Solution | 3934 |
| 406 | Longest subsequence such that difference between adjacents is one | 3933 |
| 407 | Best Time to Buy and Sell Stock with Cooldown Leetcode Solution | 3928 |
| 408 | Find the subarray with least average | 3927 |
| 409 | Convert Sorted Array to Binary Search Tree LeetCode Solutions | 3922 |
| 410 | Find the Smallest Divisor given a Threshold Leetcode Solution | 3922 |
| 411 | Kth Smallest Element in a BST Leetcode Solution | 3921 |
| 412 | Design Browser History LeetCode Solution | 3919 |
| 413 | Find duplicates in a given array when elements are not limited to a range | 3910 |
| 414 | Priority Queue using doubly linked list | 3906 |
| 415 | Number Complement Leetcode Solution | 3901 |
| 416 | Top View of Binary Tree | 3900 |
| 417 | Queries for counts of array elements with values in given range | 3898 |
| 418 | Number of Islands II LeetCode Solution | 3897 |
| 419 | Missing Element in Sorted Array LeetCode Solution | 3896 |
| 420 | Minesweeper LeetCode Solution | 3883 |
| 421 | LRU Cache Leetcode Solution | 3877 |
| 422 | K Closest Points to Origin Leetcode Solution | 3876 |
| 423 | Painting Fence Algorithm | 3876 |
| 424 | Common elements in all rows of a given matrix | 3876 |
| 425 | Partition List Leetcode Solution | 3869 |
| 426 | Maximum Number of Occurrences of a Substring Leetcode Solution | 3865 |
| 427 | Path With Maximum Minimum Value LeetCode Solution | 3856 |
| 428 | First Circular Tour to Visit all the Petrol Bunks | 3854 |
| 429 | Nth Catalan Number | 3853 |
| 430 | Find the Peak Element from an Array | 3850 |
| 431 | Snakes and Ladders LeetCode Solution | 3849 |
| 432 | Find Top K (or Most Frequent) Numbers in a Stream | 3847 |
| 433 | Fibonacci Number LeetCode Solution | 3840 |
| 434 | Number of Smaller Elements on Right Side | 3840 |
| 435 | Can Make Arithmetic Progression From Sequence Leetcode Solution | 3833 |
| 436 | Sequences of given length where every element is more than or equal to twice of previous | 3833 |
| 437 | Sliding Window Maximum LeetCode Solution | 3820 |
| 438 | Combination Sum IV LeetCode Solution | 3817 |
| 439 | Find Maximum Level sum in Binary Tree | 3817 |
| 440 | Sort elements by frequency | 3813 |
| 441 | Maximum Consecutive Numbers Present in an Array | 3809 |
| 442 | High Five LeetCode Solution | 3807 |
| 443 | Search a 2D Matrix II Leetcode Solution | 3805 |
| 444 | Integer Break LeetCode Solution | 3804 |
| 445 | Odd Even Linked List Leetcode Solution | 3803 |
| 446 | Tiling Problem | 3799 |
| 447 | Flood Fill LeetCode | 3792 |
| 448 | Insert Interval Leetcode Solution | 3788 |
| 449 | Check if Two given Strings are Isomorphic to each other | 3786 |
| 450 | Gold Mine Problem | 3781 |
| 451 | Count items common to both the lists but with different prices | 3779 |
| 452 | Move All the Zeros to the End of the Given Array | 3778 |
| 453 | Rearrange array such that even positioned are greater than odd | 3776 |
| 454 | Find Minimum in Rotated Sorted Array II LeetCode Solution | 3766 |
| 455 | Longest Palindrome can be Formed by Removing or Rearranging Characters | 3763 |
| 456 | Distance of nearest cell having 1 in a binary matrix | 3756 |
| 457 | Interval Tree | 3756 |
| 458 | Shortest Palindrome | 3752 |
| 459 | N queen problem | 3751 |
| 460 | Consecutive Characters LeetCode Solution | 3738 |
| 461 | Insert into a Binary Search Tree Leetcode Solution | 3731 |
| 462 | Search in a Binary Search Tree Leetcode Solution | 3726 |
| 463 | Kth Non-repeating Character | 3723 |
| 464 | Design a stack that supports getMin() in O(1) time and O(1) extra space | 3715 |
| 465 | Number of Closed Islands Leetcode Solution | 3712 |
| 466 | Trapping Rain Water LeetCode Solution | 3704 |
| 467 | Minimum Absolute Difference in BST Leetcode Solution | 3702 |
| 468 | Spiral Matrix III LeetCode Solution | 3701 |
| 469 | Replace Elements with Greatest Element on Right Side Leetcode Solution | 3700 |
| 470 | Find a Peak Element II LeetCode Solution | 3695 |
| 471 | Fibonacci numbers | 3695 |
| 472 | Expression Contains Redundant Bracket or Not | 3691 |
| 473 | Decompress Run-Length Encoded List Leetcode Solution | 3685 |
| 474 | Sort Colors | 3685 |
| 475 | Reverse a linked list | 3685 |
| 476 | Longest Common Prefix using Sorting | 3682 |
| 477 | Integer to English words | 3679 |
| 478 | Sliding Window Median Leetcode Solution | 3678 |
| 479 | Evaluate Reverse Polish Notation LeetCode Solution | 3671 |
| 480 | Check If Array Pairs Are Divisible by k LeetCode Solution | 3671 |
| 481 | Find All Possible Recipes from Given Supplies LeetCode Solution | 3670 |
| 482 | Find Pythagorean Triplets from Array | 3663 |
| 483 | Convert Sorted Array to Binary Search Tree Leetcode Solution | 3659 |
| 484 | Restore IP Addresses Leetcode Solution | 3658 |
| 485 | Queries for GCD of all numbers of an array except elements in a given range | 3658 |
| 486 | Coin Change Problem | 3655 |
| 487 | Minimum Path Sum | 3653 |
| 488 | Binary Tree Maximum Path Sum LeetCode Solution | 3648 |
| 489 | Vertical Order Traversal of Binary Tree LeetCode Solution | 3644 |
| 490 | Sorting array using Stacks | 3644 |
| 491 | Palindrome Substring Queries | 3638 |
| 492 | Balanced Expression with Replacement | 3630 |
| 493 | Sort an array according to the order defined by another array | 3627 |
| 494 | Majority Element | 3609 |
| 495 | Rearrange an array in order – smallest, largest, 2nd smallest, 2nd largest | 3608 |
| 496 | Priority Queue in C++ | 3607 |
| 497 | Best Time to Buy and Sell Stock | 3605 |
| 498 | Morris Traversal | 3602 |
| 499 | Multiplication of Two Matrices | 3598 |
| 500 | Camelcase Matching Leetcode Solution | 3594 |
| 501 | Subset sum problem | 3591 |
| 502 | Cells with Odd Values in a Matrix LeetCode Solution | 3582 |
| 503 | Find Median from Data Stream LeetCode Solution | 3576 |
| 504 | Number of Days Between Two Dates LeetCode Solution | 3575 |
| 505 | Find the first Repeating Number in a Given Array | 3570 |
| 506 | Queue using Stacks | 3568 |
| 507 | Minimum Number of Taps to Open to Water a Garden LeetCode Solution | 3559 |
| 508 | Path Crossing Leetcode Solution | 3552 |
| 509 | How to Implement Stack Using Priority Queue or Heap? | 3551 |
| 510 | Is Graph Bipartite? LeetCode Solution | 3550 |
| 511 | The Stock Span Problem | 3550 |
| 512 | Generate all Binary Strings from Given Pattern | 3545 |
| 513 | Design Hit Counter LeetCode Solution | 3542 |
| 514 | Path Sum II LeetCode Solution | 3539 |
| 515 | Sieve of Eratosthenes | 3536 |
| 516 | Detect a loop in the Linked List | 3528 |
| 517 | Analyze User Website Visit Pattern LeetCode Solution | 3522 |
| 518 | Count subarrays having total distinct elements same as original array | 3520 |
| 519 | Shortest Completing Word Leetcode Solution | 3518 |
| 520 | Kth ancestor of a node in binary tree | 3517 |
| 521 | Divide Chocolate LeetCode Solution | 3515 |
| 522 | Longest Increasing Path in a Matrix LeetCode Solution | 3515 |
| 523 | Pancake Sorting Problem | 3515 |
| 524 | Intersection of Two Linked Lists LeetCode Solution | 3510 |
| 525 | Largest rectangular sub-matrix whose sum is 0 | 3509 |
| 526 | Count Submatrices With All Ones LeetCode Solution | 3508 |
| 527 | Find a Fixed Point in a Given Array | 3499 |
| 528 | Custom Sort String Leetcode Solution | 3497 |
| 529 | Monotonic Array Leetcode Solution | 3494 |
| 530 | Check if Array Contains Contiguous Integers With Duplicates Allowed | 3486 |
| 531 | Letter Case Permutation | 3483 |
| 532 | Group Anagrams | 3481 |
| 533 | Construction of Longest Increasing Subsequence (N log N) | 3471 |
| 534 | Best Time to Buy and Sell Stock with Transaction Fee Leetcode Solution | 3470 |
| 535 | Minimum Height Trees | 3470 |
| 536 | Implement strStr() LeetCode Solution | 3467 |
| 537 | Different Ways to Add Parentheses Leetcode Solution | 3465 |
| 538 | Decode Ways | 3465 |
| 539 | Determine Whether Matrix Can Be Obtained By Rotation LeetCode Solution | 3458 |
| 540 | Maximum Element in an Array which is Increasing and then Decreasing | 3458 |
| 541 | Valid Boomerang Leetcode Solution | 3447 |
| 542 | Queue based approach for first non-repeating character in a stream | 3445 |
| 543 | Merge Overlapping Intervals | 3443 |
| 544 | Scramble String LeetCode Solution | 3442 |
| 545 | Nearest Exit from Entrance in Maze LeetCode Solution | 3436 |
| 546 | How to Create Mergable Stack? | 3434 |
| 547 | Find maximum length Snake sequence | 3430 |
| 548 | Shifting Letters LeetCode Solution | 3429 |
| 549 | Perfect Squares LeetCode Solution | 3428 |
| 550 | Number of Distinct Islands Leetcode Solution | 3426 |
| 551 | Find the Lost Element From a Duplicated Array | 3420 |
| 552 | Decode String | 3417 |
| 553 | Best Time to Buy and Sell Stock IV LeetCode Solution | 3409 |
| 554 | First missing positive | 3408 |
| 555 | Implement Trie (Prefix Tree) Leetcode Solution | 3406 |
| 556 | Reorder Data in Log Files LeetCode Solution | 3405 |
| 557 | Longest Common Prefix using Divide and Conquer | 3402 |
| 558 | LCS (Longest Common Subsequence) of three strings | 3397 |
| 559 | Maximum Sum of Non Consecutive Elements | 3396 |
| 560 | Sliding Window Maximum | 3394 |
| 561 | Sort a stack using recursion | 3392 |
| 562 | Race Car LeetCode Solution | 3389 |
| 563 | Binary Tree zigzag level order Traversal | 3386 |
| 564 | Count Possible Triangles | 3386 |
| 565 | Most Stones Removed with Same Row or Column LeetCode Solution | 3383 |
| 566 | Design Skiplist LeetCode Solution | 3382 |
| 567 | Build an Array With Stack Operations Leetcode Solution | 3378 |
| 568 | Recover Binary Search Tree | 3378 |
| 569 | Find if an Expression has Duplicate Parenthesis or Not | 3375 |
| 570 | Number of Equivalent Domino Pairs Leetcode Solution | 3374 |
| 571 | Guess Number Higher or Lower II | 3374 |
| 572 | Champagne Tower LeetCode Solution | 3373 |
| 573 | Insert Node in the Sorted Linked List | 3372 |
| 574 | Largest Subarray with Equal Number of 0’s and 1’s | 3361 |
| 575 | Contiguous Array LeetCode Solution | 3360 |
| 576 | Minimum Bracket Reversals | 3352 |
| 577 | All Possible Full Binary Trees LeetCode Solution | 3348 |
| 578 | Rectangle Overlap LeetCode Solution | 3347 |
| 579 | Smallest Good Base | 3343 |
| 580 | Maximum Length of Chain Pairs | 3341 |
| 581 | Make Two Arrays Equal by Reversing Sub-arrays Leetcode Solution | 3331 |
| 582 | Palindrome Permutation LeetCode Solution | 3330 |
| 583 | Find the two Numbers with Odd Occurrences in an Unsorted Array | 3328 |
| 584 | Find a Sorted Subsequence of size 3 | 3320 |
| 585 | Longest Substring with At Least K Repeating Characters LeetCode Solution | 3313 |
| 586 | Longest Repeated Subsequence | 3313 |
| 587 | Maximum Number of Ways to Partition an Array LeetCode Solution | 3309 |
| 588 | Merge Two Binary Trees LeetCode Solution | 3304 |
| 589 | Group Multiple Occurrence of Array Elements Ordered by first Occurrence | 3303 |
| 590 | Recover Binary Search Tree Leetcode Solution | 3302 |
| 591 | Minimum Height Trees LeetCode Solution | 3301 |
| 592 | Find the Town Judge LeetCode Solution | 3297 |
| 593 | Maximum Depth of N-ary Tree Leetcode Solution | 3297 |
| 594 | Distance Between Bus Stops Leetcode Solution | 3296 |
| 595 | Rearrange Spaces Between Words Leetcode Solution | 3294 |
| 596 | Palindrome Partitioning Leetcode Solution | 3291 |
| 597 | Design a Stack With Increment Operation Leetcode Solution | 3291 |
| 598 | Implement Two Stacks in an Array | 3287 |
| 599 | Print all Palindromic Partitions of a String | 3286 |
| 600 | Reorder an Array According to the Given Indexes | 3283 |
| 601 | Valid Parentheses Leetcode Solution | 3271 |
| 602 | Subarrays with K Different Integers Leetcode Solution | 3270 |
| 603 | K-th Distinct Element in an Array | 3269 |
| 604 | Heap Sort | 3263 |
| 605 | Check for Balanced Parentheses in an Expression | 3258 |
| 606 | Lowest Common Ancestor of a Binary Search Tree Leetcode Solution | 3254 |
| 607 | Minimum number of jumps to reach end | 3254 |
| 608 | The Maze III LeetCode Solution | 3240 |
| 609 | Huffman Coding | 3239 |
| 610 | Jump Game IV LeetCode Solution | 3238 |
| 611 | Maximum sum rectangle in a 2D matrix | 3236 |
| 612 | Sort a String According to Another String | 3233 |
| 613 | Find the First Circular Tour that visits all the Petrol Pumps | 3230 |
| 614 | Mean of Array After Removing Some Elements Leetcode Solution | 3227 |
| 615 | Count pair with Given Sum | 3221 |
| 616 | Maximize Elements Using Another Array | 3221 |
| 617 | Maximum Score After Splitting a String Leetcode Solution | 3215 |
| 618 | Contains Duplicate | 3212 |
| 619 | Perform String Shifts Leetcode | 3211 |
| 620 | Word Break | 3204 |
| 621 | Merge Overlapping Intervals II | 3201 |
| 622 | Valid Sudoku | 3194 |
| 623 | Find First and Last Position of Element in Sorted Array LeetCode Solution | 3188 |
| 624 | Find the Minimum Element in a Sorted and Rotated Array | 3181 |
| 625 | Palindrome Permutation | 3179 |
| 626 | Find Largest Value in Each Tree Row LeetCode Solution | 3176 |
| 627 | Minimum Jumps to Reach Home LeetCode Solution | 3174 |
| 628 | Convert BST to Min Heap | 3174 |
| 629 | Caesar Cipher | 3170 |
| 630 | Palindrome Permutations of a String | 3168 |
| 631 | Possible Bipartition LeetCode Solution | 3166 |
| 632 | Iterative Method to find Height of Binary Tree | 3165 |
| 633 | A Space Optimized DP solution for 0-1 Knapsack Problem | 3165 |
| 634 | Edit Distance LeetCode Solution | 3159 |
| 635 | All Unique Triplets that Sum up to a Given Value | 3149 |
| 636 | Palindromic Substrings Leetcode Solution | 3144 |
| 637 | Count Sub Islands LeetCode Solution | 3141 |
| 638 | Reach a Number LeetCode Solution | 3129 |
| 639 | Segregate 0s and 1s in an Array | 3129 |
| 640 | Best Meeting Point LeetCode Solution | 3120 |
| 641 | Find Median from data Stream | 3116 |
| 642 | Number of palindromic paths in a matrix | 3113 |
| 643 | My Calendar I LeetCode Solution | 3112 |
| 644 | Find the Subarray of given length with Least Average | 3106 |
| 645 | Find all triplets with zero sum | 3105 |
| 646 | Maximum Product of Splitted Binary Tree LeetCode Solution | 3101 |
| 647 | Merge Two Balanced Binary Search Trees | 3100 |
| 648 | Level order Traversal in Spiral Form | 3098 |
| 649 | Check if the given array can represent Level Order Traversal of Binary Search Tree | 3094 |
| 650 | Pair with given product | 3093 |
| 651 | Word Pattern | 3091 |
| 652 | Count Good Nodes in Binary Tree LeetCode Solution | 3070 |
| 653 | Brick Wall LeetCode Solution | 3070 |
| 654 | Partition Problem | 3070 |
| 655 | Sorted Linked List to Balanced BST | 3065 |
| 656 | Rearrange Array such that arr[i] >= arr[j] if i is even and arr[i] <= arr[j] if i is odd and j < i | 3064 |
| 657 | Breadth First Search (BFS) for a Graph | 3059 |
| 658 | Validate Binary Search Tree | 3058 |
| 659 | Alien Dictionary | 3055 |
| 660 | Convert Sorted List to Binary Search Tree | 3047 |
| 661 | Swapping Nodes in a Linked List Leetcode Solution | 3042 |
| 662 | Construct BST from given Preorder Traversal | 3042 |
| 663 | Isomorphic Strings LeetCode Solution | 3038 |
| 664 | Find whether a subarray is in form of a mountain or not | 3037 |
| 665 | Add two numbers | 3035 |
| 666 | Number of Subsequences That Satisfy the Given Sum Condition LeetCode solution | 3031 |
| 667 | Minimum time required to rot all oranges | 3028 |
| 668 | How to Efficiently Implement k Stacks in a Single Array? | 3028 |
| 669 | Merge K Sorted Arrays and Print Sorted Output | 3024 |
| 670 | Sort 0s 1s and 2s in an Array | 3024 |
| 671 | Maximize Sum of Array after K Negations Leetcode Solution | 3019 |
| 672 | Rotate Array | 3016 |
| 673 | Queries on Probability of Even or Odd Number in given Ranges | 3012 |
| 674 | Shortest Path in a Grid with Obstacles Elimination LeetCode Solution | 3011 |
| 675 | Print Fibonacci sequence using 2 variables | 3009 |
| 676 | Largest Sum Contiguous Subarray | 3008 |
| 677 | Populating Next Right Pointers in Each Node | 3008 |
| 678 | Find all pairs (a, b) in an array such that a % b = k | 3006 |
| 679 | Bubble sort using two Stacks | 3000 |
| 680 | Longest Subarray Having Count of 1s One More than Count of 0s | 2999 |
| 681 | Count Distinct Elements in Every Window of Size K | 2998 |
| 682 | Find Zeros to be Flipped so that Number of Consecutive 1’s is Maximized | 2998 |
| 683 | Remove brackets from an algebraic string containing + and – operators | 2995 |
| 684 | Range Sum Query 2D – Immutable LeetCode Solution | 2980 |
| 685 | Filter Restaurants by Vegan-Friendly, Price and Distance Leetcode Solution | 2977 |
| 686 | Maximum Number of Chocolates to be Distributed Equally Among k Students | 2974 |
| 687 | Maximum Frequency Stack Leetcode Solution | 2971 |
| 688 | Find four elements that sum to a given value (Hashmap) | 2963 |
| 689 | Detect Capital Leetcode Solution | 2962 |
| 690 | Split Array Into Consecutive Subsequences | 2958 |
| 691 | Count ways to reach the nth stair using step 1, 2 or 3 | 2954 |
| 692 | Minimum Swaps to Group All 1’s Together Leetcode Solution | 2953 |
| 693 | Merge Two Sorted Lists Leetcode | 2946 |
| 694 | Binary Tree Right Side View LeetCode Solution | 2942 |
| 695 | Difference Array | Range update query in O(1) | 2941 |
| 696 | Partition Equal Subset Sum | 2941 |
| 697 | Remove duplicates from sorted array | 2939 |
| 698 | Binary Tree to Binary Search Tree Conversion | 2937 |
| 699 | Counting Bits | 2937 |
| 700 | Remove Palindromic Subsequences Leetcode Solution | 2927 |
| 701 | Print all subarrays with 0 sum | 2927 |
| 702 | Check if a Linked list of Strings form a Palindrome | 2927 |
| 703 | Partition to K Equal Sum Subsets Leetcode Solution | 2925 |
| 704 | Length of Longest Fibonacci Subsequence | 2925 |
| 705 | Topological Sorting | 2920 |
| 706 | Minimum Sum Path in a Triangle | 2913 |
| 707 | Happy Number | 2912 |
| 708 | Elements Appear more than N/K times in Array | 2908 |
| 709 | Find pairs with given sum such that elements of pair are in different rows | 2906 |
| 710 | Populating Next Right Pointers in Each Node Leetcode Solution | 2903 |
| 711 | Concatenation of Array LeetCode Solution | 2899 |
| 712 | Contiguous Array Leetcode | 2899 |
| 713 | Arithmetic Slices II – Subsequence LeetCode Solution | 2892 |
| 714 | Find All Pairs With a Given Difference | 2888 |
| 715 | Reverse Nodes in K-Group | 2885 |
| 716 | String comparison containing wildcards | 2882 |
| 717 | Queue Reconstruction by Height | 2879 |
| 718 | Web Crawler LeetCode Solution | 2875 |
| 719 | Inorder Successor of a node in Binary Tree | 2873 |
| 720 | Minimum Swaps to Make Strings Equal Leetcode Solution | 2863 |
| 721 | Minimum Number of Arrows to Burst Balloons LeetCode Solution | 2862 |
| 722 | MiniMax Algorithm | 2844 |
| 723 | Maximum Distance in Array | 2840 |
| 724 | Increasing Subsequence of Length three with Maximum Product | 2837 |
| 725 | Score of Parenthesis LeetCode Solution | 2835 |
| 726 | Swap Kth Node from beginning with Kth Node from End | 2828 |
| 727 | Find Duplicate Subtrees | 2823 |
| 728 | Root to Leaf path with target sum Leetcode Solutions | 2820 |
| 729 | Finding K closest element | 2816 |
| 730 | An Interesting Method to generate Binary Numbers from 1 to n | 2815 |
| 731 | Longest Common Prefix Using Binary Search II | 2812 |
| 732 | Given a binary tree, how do you remove all the half nodes? | 2811 |
| 733 | Check if String Follows Order of Characters by a Pattern or not | 2810 |
| 734 | Longest Increasing Subsequence | 2804 |
| 735 | Climbing stairs | 2792 |
| 736 | Union and Intersection of two Linked Lists | 2789 |
| 737 | Pancake Sorting | 2789 |
| 738 | Iterative Preorder Traversal | 2788 |
| 739 | Delete Nth node from the end of the given linked list | 2786 |
| 740 | Maximum Product Subarray II | 2786 |
| 741 | Find K Closest Elements LeetCode Solution | 2784 |
| 742 | Find the first repeating element in an array of integers | 2784 |
| 743 | Symmetric Tree | 2784 |
| 744 | BFS vs DFS for Binary Tree | 2778 |
| 745 | Construct Binary Tree from given Parent Array representation | 2777 |
| 746 | Container with Most Water | 2774 |
| 747 | Parallel Courses II LeetCode Solution | 2773 |
| 748 | Count Minimum Steps to Get the given Array | 2771 |
| 749 | Deletion in a Binary Tree | 2766 |
| 750 | Construct Binary Tree from Preorder and Postorder Traversal LeetCode Solution | 2750 |
| 751 | Delete Nodes and Return Forest Leetcode Solution | 2747 |
| 752 | Find the Difference Leetcode Solution | 2737 |
| 753 | Check if all levels of two Binary Tree are anagrams or not | 2736 |
| 754 | Nested List Weight Sum II LeetCode Solution | 2734 |
| 755 | Kill Process LeetCode Solution | 2733 |
| 756 | Level order traversal using two Queues | 2731 |
| 757 | Sum Root to Leaf Numbers LeetCode Solution | 2730 |
| 758 | Minimum Cost to Move Chips to The Same Position LeetCode Solution | 2730 |
| 759 | Substring With Concatenation Of All Words | 2730 |
| 760 | Level of Each node in a Tree from source node | 2728 |
| 761 | Boundary Traversal of binary tree | 2727 |
| 762 | Rearrange an Array Such that arr[i] is equal to i | 2726 |
| 763 | Find Maximum of Minimum for Every Window Size in a Given Array | 2718 |
| 764 | Linked List Cycle | 2715 |
| 765 | Count pairs from two linked lists whose sum is equal to a given value | 2714 |
| 766 | Sort Array by Increasing Frequency Leetcode Solution | 2709 |
| 767 | Iterative Depth First Traversal of Graph | 2709 |
| 768 | Super Ugly Number | 2708 |
| 769 | Minimum Remove to Make Valid Parentheses LeetCode Solution | 2706 |
| 770 | Non-overlapping sum of two sets | 2704 |
| 771 | Minimum Size Subarray Sum | 2704 |
| 772 | Tree Traversal (Preorder, Inorder & Postorder) | 2702 |
| 773 | Matrix Chain Multiplication | 2696 |
| 774 | New 21 Game | 2694 |
| 775 | Longest Common Prefix Word by Word Matching | 2689 |
| 776 | Valid Anagrams | 2688 |
| 777 | Reorder Array Using Given Indexes | 2688 |
| 778 | Remove Duplicates from Sorted List II | 2684 |
| 779 | Sum of f(a[i], a[j]) over all pairs in an array of n integers | 2679 |
| 780 | K maximum sums of overlapping contiguous sub-arrays | 2677 |
| 781 | Maximum size subarray sum equals k | 2673 |
| 782 | Merging Intervals | 2672 |
| 783 | Reservoir Sampling | 2669 |
| 784 | Range LCM Queries | 2668 |
| 785 | Merge K Sorted Linked Lists | 2667 |
| 786 | Palindrome Partitioning | 2662 |
| 787 | Check if any two intervals overlap among a given set of intervals | 2661 |
| 788 | Print a Binary Tree in Vertical Order | 2655 |
| 789 | Sorting a K Sorted Array | 2647 |
| 790 | Hamming Distance | 2643 |
| 791 | Flatten Binary Tree to Linked List LeetCode Solution | 2640 |
| 792 | Balanced Binary Tree | 2638 |
| 793 | Maximum Product Subarray | 2637 |
| 794 | The Painter’s Partition Problem | 2636 |
| 795 | Create Maximum Number | 2628 |
| 796 | Missing Number | 2627 |
| 797 | Peak Index in a Mountain Array LeetCode Solution | 2626 |
| 798 | Friends Of Appropriate Ages LeetCode Solution | 2620 |
| 799 | Maximum difference between two elements such as larger element comes after smaller | 2618 |
| 800 | Check if a queue can be sorted into another queue using a stack | 2615 |
| 801 | Verify Preorder Serialization of a Binary Tree | 2615 |
| 802 | Check if Two Expressions With Brackets are Same | 2613 |
| 803 | Lowest Common Ancestor | 2613 |
| 804 | Find Maximum Sum Possible Equal Sum of Three Stacks | 2611 |
| 805 | Valid Triangle Number LeetCode Solution | 2610 |
| 806 | Defanging an IP Address LeetCode Solution | 2610 |
| 807 | Iterative Postorder Traversal Using Two Stacks | 2607 |
| 808 | Find Three Element From Different Three Arrays Such That a + b + c = sum | 2599 |
| 809 | Valid Triangle Number LeetCode Solution | 2593 |
| 810 | Unique Binary Search Trees LeetCode Solution | 2590 |
| 811 | Smallest Range II Leetcode Solution | 2590 |
| 812 | Find Sum of all unique sub-array sum for a given array | 2589 |
| 813 | Find Element Using Binary Search in Sorted Array | 2587 |
| 814 | Minimum insertions to form a palindrome with permutations allowed | 2586 |
| 815 | Check if a given array can represent Preorder Traversal of Binary Search Tree | 2585 |
| 816 | Vertical sum in a given binary tree | 2584 |
| 817 | Sort Elements by Frequency II | 2582 |
| 818 | Count number of triplets with product equal to given number | 2581 |
| 819 | Find subarray with given sum (Handles Negative Numbers) | 2574 |
| 820 | Largest Submatrix With Rearrangements LeetCode Solution | 2567 |
| 821 | Newman-Conway Sequence | 2567 |
| 822 | Maximum difference between frequency of two elements such that element having greater frequency is also greater | 2565 |
| 823 | Check if two nodes are on the same path in a Tree | 2565 |
| 824 | Find K Length Subarray of Maximum Average | 2565 |
| 825 | Minimum Distance Between BST Nodes Leetcode Solution | 2564 |
| 826 | Find distance between two nodes of a Binary Tree | 2563 |
| 827 | Number Of Longest Increasing Subsequence | 2559 |
| 828 | Merging Two Sorted Arrays | 2558 |
| 829 | Find Common Characters Leetcode Solution | 2548 |
| 830 | First Bad Version | 2543 |
| 831 | Check Completeness of a Binary Tree LeetCode Solution | 2541 |
| 832 | Third Maximum Number Leetcode Solution | 2540 |
| 833 | Maximum subsequence sum such that no three are consecutive | 2534 |
| 834 | Flatten 2D Vector LeetCode Solution | 2533 |
| 835 | Segment Tree | 2532 |
| 836 | Print all triplets in sorted array that form AP | 2531 |
| 837 | Find Peak Element | 2527 |
| 838 | Longest Bitonic Subsequence | 2525 |
| 839 | Arrange given numbers to form the biggest number | 2523 |
| 840 | Lower Case To Upper Case | 2523 |
| 841 | Maximum number of segments of lengths a, b and c | 2522 |
| 842 | Kth Smallest Element in a Sorted Matrix LeetCode Solution | 2521 |
| 843 | Print All Distinct Elements of a Given Integer Array | 2521 |
| 844 | Closest Leaf in a Binary Tree LeetCode Solution | 2520 |
| 845 | Products of ranges in an array | 2520 |
| 846 | Employee Importance LeetCode Solution | 2518 |
| 847 | Largest subarray with equal number of 0s and 1s | 2517 |
| 848 | Range Sum Query using Sparse Table | 2514 |
| 849 | Array Nesting Leetcode Solution | 2511 |
| 850 | Find Smallest Range Containing Elements from k Lists | 2510 |
| 851 | Diagonal Traversal of Binary Tree | 2509 |
| 852 | Valid Parenthesis String | 2503 |
| 853 | Stone Game IV LeetCode Solution | 2501 |
| 854 | Find Nth Node | 2501 |
| 855 | Median of Two Sorted Arrays | 2498 |
| 856 | Trapping Rain Water II LeetCode Solution | 2490 |
| 857 | Distinct Subsequences | 2490 |
| 858 | Contiguous Array | 2488 |
| 859 | Longest Palindromic Subsequence | 2488 |
| 860 | Print Right View of a Binary Tree | 2484 |
| 861 | Largest BST Subtree LeetCode Solution | 2478 |
| 862 | Bottom View of a Binary Tree | 2476 |
| 863 | Maximum Population Year LeetCode Solution | 2472 |
| 864 | Write a function to get the intersection point of two Linked Lists | 2469 |
| 865 | Largest divisible pairs subset | 2466 |
| 866 | Shuffle an Array | 2466 |
| 867 | Compare Strings by Frequency of the Smallest Character Leetcode Solution | 2465 |
| 868 | Path Sum | 2462 |
| 869 | Four Elements that Sum to Given | 2461 |
| 870 | Number of siblings of a given Node in n-ary Tree | 2456 |
| 871 | Stone Game IV LeetCode Solution | 2450 |
| 872 | Count and Say | 2446 |
| 873 | Isomorphic Strings | 2446 |
| 874 | Binary array after M range toggle operations | 2445 |
| 875 | Subset Sum Problem in O(sum) space | 2442 |
| 876 | Find the largest multiple of 3 | 2442 |
| 877 | Infix to Postfix | 2441 |
| 878 | Unique Binary Search Trees | 2440 |
| 879 | Merge Two Sorted Arrays | 2439 |
| 880 | Permutations of a Given String Using STL | 2427 |
| 881 | Red-Black Tree Introduction | 2426 |
| 882 | Next Greater Element in an Array | 2420 |
| 883 | Height of a generic tree from parent array | 2413 |
| 884 | Minimum Swaps To Make Sequences Increasing LeetCode Solution | 2408 |
| 885 | Friends Pairing Problem | 2407 |
| 886 | Find Largest d in Array such that a + b + c = d | 2403 |
| 887 | Valid Perfect Square LeetCode Solution | 2396 |
| 888 | Closest Binary Search Tree Value Leetcode Solution | 2395 |
| 889 | The Number of Weak Characters in the Game LeetCode Solution | 2394 |
| 890 | Maximum Product Subarray | 2394 |
| 891 | Valid Number | 2392 |
| 892 | Maximum Side Length of a Square with Sum Less than or Equal to Threshold LeetCode Solution | 2384 |
| 893 | Encoded String With Shortest Length LeetCode Solution | 2384 |
| 894 | Sentence Screen Fitting LeetCode Solution | 2382 |
| 895 | Count Primes in Ranges | 2382 |
| 896 | Averages of Levels in Binary Tree | 2375 |
| 897 | Rearrange an array such that ‘arr[j]’ becomes ‘i’ if ‘arr[i]’ is ‘j’ | 2374 |
| 898 | Insert Delete GetRandom | 2371 |
| 899 | Transform a BST to Greater sum Tree | 2363 |
| 900 | Find unique character in a string | 2362 |
| 901 | Maximum Sum of 3 Non-Overlapping Subarrays | 2360 |
| 902 | Shuffle a given Array | 2360 |
| 903 | Binary Search Tree Delete Operation | 2355 |
| 904 | Edit Distance | 2353 |
| 905 | Range Minimum Query (Square Root Decomposition and Sparse Table) | 2352 |
| 906 | Print n terms of Newman-Conway Sequence | 2348 |
| 907 | Step-By-Step Directions From a Binary Tree Node to Another LeetCode Solution | 2335 |
| 908 | Integer to Roman | 2334 |
| 909 | Binary Tree Longest Consecutive Sequence LeetCode Solution | 2330 |
| 910 | Convert BST into a Min-Heap without using array | 2326 |
| 911 | Orderly Queue LeetCode Solution | 2325 |
| 912 | Reorganize String | 2325 |
| 913 | Minimum sum of squares of character counts in a given string after removing k characters | 2323 |
| 914 | Serialize and Deserialize Binary Tree LeetCode Solution | 2321 |
| 915 | Serialize and Deserialize Binary Tree | 2315 |
| 916 | Find Minimum In Rotated Sorted Array | 2308 |
| 917 | Maximum Product Subarray | 2307 |
| 918 | Lowest Common Ancestor in Binary Search Tree | 2305 |
| 919 | Kth Smallest Number in Multiplication Table Leetcode Solution | 2303 |
| 920 | Range Queries for Longest Correct Bracket Subsequence | 2302 |
| 921 | Bold Words in String LeetCode Solution | 2298 |
| 922 | Next greater element | 2297 |
| 923 | Swap Nodes In Pairs | 2295 |
| 924 | Koko Eating Bananas LeetCode Solution | 2290 |
| 925 | Array Queries for multiply replacements and product | 2287 |
| 926 | Diameter of N-Ary Tree LeetCode Solution | 2285 |
| 927 | Find the smallest binary digit multiple of given number | 2280 |
| 928 | K’th Largest element in BST using constant extra space | 2274 |
| 929 | Maximum Sum Increasing Subsequence | 2272 |
| 930 | K’th Largest Element in BST when modification to BST is not allowed | 2267 |
| 931 | Advantages of BST over Hash Table | 2258 |
| 932 | Constant time range add operation on an array | 2255 |
| 933 | Moving Stones Until Consecutive Leetcode Solution | 2254 |
| 934 | Write Code to Determine if Two Trees are Identical | 2251 |
| 935 | Insert into a Sorted Circular Linked List LeetCode Solution | 2245 |
| 936 | Next Greater Element II LeetCode Solution | 2241 |
| 937 | Best Meeting Point LeetCode Solution | 2235 |
| 938 | Valid Tic-Tac-Toe State LeetCode Solution | 2233 |
| 939 | Design Underground System Leetcode Solution | 2229 |
| 940 | Check if an Array is Stack Sortable | 2228 |
| 941 | Power of Two | 2219 |
| 942 | Queries on XOR of greatest odd divisor of the range | 2218 |
| 943 | Longest Increasing Consecutive Subsequence | 2217 |
| 944 | Total Hamming Distance LeetCode Solution | 2216 |
| 945 | Level Order Traversal of Binary Tree | 2207 |
| 946 | Number of Orders in the Backlog Leetcode Solution | 2206 |
| 947 | Numbers with prime frequencies greater than or equal to k | 2205 |
| 948 | Reverse a Path in BST using Queue | 2201 |
| 949 | Check if each internal node of a BST has exactly one child | 2198 |
| 950 | Find the node with minimum value in a Binary Search Tree | 2198 |
| 951 | Number of elements less than or equal to a given number in a given subarray | 2197 |
| 952 | Clone a Binary Tree with Random Pointers | 2196 |
| 953 | Check if X can give change to every person in the Queue | 2195 |
| 954 | Count the Pairs at Same Distance as in English Alphabets | 2194 |
| 955 | Form minimum number from given sequence | 2190 |
| 956 | Greatest Sum Divisible by Three LeetCode Solution | 2189 |
| 957 | Image Overlap LeetCode Solution | 2186 |
| 958 | Maximum Array from Two given Arrays Keeping Order Same | 2183 |
| 959 | A program to check if a binary tree is BST or not | 2183 |
| 960 | Find minimum number of merge operations to make an array palindrome | 2181 |
| 961 | Count and Toggle Queries on a Binary Array | 2175 |
| 962 | Graph Cloning | 2174 |
| 963 | Design Add and Search Words Data Structure LeetCode Solution | 2173 |
| 964 | Collect maximum points in a grid using two traversals | 2171 |
| 965 | Factorial Trailing Zeroes LeetCode Solution | 2164 |
| 966 | Closest Binary Search Tree Value II LeetCode Solution | 2160 |
| 967 | Merge Sort | 2155 |
| 968 | Print Next Greater Number of Q queries | 2154 |
| 969 | Merge two BSTs with limited extra space | 2145 |
| 970 | Largest Plus Sign Leetcode Solution | 2143 |
| 971 | Queries for Decimal Values of Subarrays of a Binary Array | 2143 |
| 972 | Form Minimum Number From Given Sequence | 2143 |
| 973 | Check for Palindrome after every character replacement Query | 2142 |
| 974 | Maximum difference between first and last indexes of an element in array | 2141 |
| 975 | Merge Sorted Array | 2133 |
| 976 | Group Shifted Strings Leetcode Solution | 2131 |
| 977 | Dividing Array into Pairs With Sum Divisible by K | 2126 |
| 978 | Priority Queue | 2117 |
| 979 | Print Ancestors of a Given Binary Tree Node Without Recursion | 2103 |
| 980 | Longest Substring Without Repeating Characters Leetcode Solution | 2100 |
| 981 | Print modified array after multiple array range increment operations | 2100 |
| 982 | Print all Possible Ways to Break a String in Bracket Form | 2093 |
| 983 | Count even length binary sequences with same sum of first and second half bits | 2091 |
| 984 | Excel Sheet Column Number LeetCode Solution | 2090 |
| 985 | Palindrome Partitioning | 2087 |
| 986 | Guess The Word | 2087 |
| 987 | Binary Search Tree | 2083 |
| 988 | Cutting a Rod | 2081 |
| 989 | Swim in Rising Water LeetCode Solution | 2075 |
| 990 | Kth Smallest Element in a BST | 2072 |
| 991 | Minimum Moves to Equal Array Elements LeetCode Solution | 2070 |
| 992 | Find postorder traversal of BST from preorder traversal | 2062 |
| 993 | Excel Sheet Column Title LeetCode Solution | 2053 |
| 994 | Find maximum average subarray of k length | 2045 |
| 995 | Count Pairs Whose Products Exist in Array | 2041 |
| 996 | How to print maximum number of A’s using given four keys | 2037 |
| 997 | Insert Delete GetRandom O(1) – Duplicates allowed LeetCode Solution | 2036 |
| 998 | Unique Paths II | 2034 |
| 999 | Binary Search Tree Search and Insertion | 2019 |
| 1000 | Regular Expression Matching | 2017 |
| 1001 | Sum of Left Leaves LeetCode Solution | 2016 |
| 1002 | Check given array of size n can represent BST of n levels or not | 2013 |
| 1003 | Longest Common Prefix using Character by Character Matching | 2012 |
| 1004 | K Empty Slots | 2007 |
| 1005 | Decrease Elements To Make Array Zigzag LeetCode Solution | 1978 |
| 1006 | Sorted Array to Balanced BST | 1976 |
| 1007 | Minimum Possible Integer After at Most K Adjacent Swaps On Digits LeetCode Solution | 1967 |
| 1008 | Queries for Number of Distinct Elements in a Subarray | 1960 |
| 1009 | Maximum Depth Of Binary Tree | 1945 |
| 1010 | Construct Complete Binary Tree from its Linked List Representation | 1939 |
| 1011 | Iterative method to find ancestors of a given binary tree | 1938 |
| 1012 | Find the Town Judge LeetCode Solution | 1934 |
| 1013 | Shortest Unsorted Continuous Subarray LeetCode Solution | 1920 |
| 1014 | Maximum weight transformation of a given string | 1911 |
| 1015 | Find Maximum Depth of Nested Parenthesis in a String | 1896 |
| 1016 | Binary Tree to Binary Search Tree Conversion using STL set | 1895 |
| 1017 | Symmetric Tree LeetCode Solution Leetcode Solution | 1888 |
| 1018 | Data Structure Designing | 1871 |
| 1019 | Random Pick Index LeetCode Solution | 1867 |
| 1020 | Search in Sorted Rotated Array | 1867 |
| 1021 | Search an Element in Sorted Rotated Array | 1823 |
| 1022 | Next Greater Element I Leetcode Solution | 1812 |
| 1023 | Convert a BST to a Binary Tree such that sum of all greater keys is added to every key | 1809 |
| 1024 | Kth Smallest Product of Two Sorted Arrays LeetCode Solution | 1807 |
| 1025 | Minimum Number of Operations to Move All Balls to Each Box LeetCode Solution | 1801 |
| 1026 | Print Maximum Length Chain of Pairs | 1773 |
| 1027 | Flatten Binary Tree to Linked List LeetCode Solution | 1768 |
| 1028 | Maximum Binary Tree | 1749 |
| 1029 | Peeking Iterator LeetCode Solution | 1720 |
| 1030 | Find k-th smallest element in BST (Order Statistics in BST) | 1703 |
| 1031 | Find Two Non-overlapping Sub-arrays Each With Target Sum LeetCode Solution | 1668 |