Hey coders,

In the past few months, I started to share some Interview Experience and tips for preparing for various company Interviews. During, that time, I have got so many requests from students for some Interview questions list, so that they can prepare easily.

Here in this article, I am sharing a comprehensive list of DSA questions that you can practice on Leetcode to increase your chances of cracking that Interview.

Now, before I start with the List. I want to tell you, 

HOW TO WORK WITH THIS LIST.

The list is divided based on different topics and level of difficulty. I would recommend to start by solving all the questions of a difficulty level rather than following a specific topic and solving all easy, medium and hard questions. This way once you complete a difficulty level you will have a better understanding of all the topics rather than being a expert in just one topic.

Moreover, if you have a interview coming your way soon, then my recommendation would be to follow the same pattern within a difficulty level, i.e. for Easy level – 1 question of one topic followed by question of another topic. This way you will have grasp in multiple topics in a short span of time. Focusing on one topic and getting expert at it is only helpful if you have enough time to prepare.

Another tip from my side is to find the most optimal solution for the problem, if you are able to get it Great, otherwise look at the fastest submissions and try to understand and replicate it.

So, Choose your strategy wisely.

Also, if you are unable to solve a particular problem. Try reading Solution code first and attempt to understand what is done in code rather than watching a video on YouTube. You can find the solutions to these question in my Github Repository(LINK). Give it a star if you find it helpful.

Here Come questions –

  • EASY

  • MEDIUM

  1. https://leetcode.com/problems/merge-intervals/
  2. https://leetcode.com/problems/3sum/
  3. https://leetcode.com/problems/product-of-array-except-self/
  4. https://leetcode.com/problems/insert-delete-getrandom-o1/
  5. https://leetcode.com/problems/subarray-sum-equals-k/
  6. https://leetcode.com/problems/next-permutation/
  7. https://leetcode.com/problems/spiral-matrix/
  8. https://leetcode.com/problems/container-with-most-water/
  9. https://leetcode.com/problems/rotate-image/
  10. https://leetcode.com/problems/word-search/
  11. https://leetcode.com/problems/3sum-closest/
  12. https://leetcode.com/problems/game-of-life/
  13. https://leetcode.com/problems/pairs-of-songs-with-total-durations-divisible-by-60/
  14. https://leetcode.com/problems/4sum/
  15. https://leetcode.com/problems/find-the-duplicate-number/
  16. https://leetcode.com/problems/combination-sum/
  17. https://leetcode.com/problems/jump-game-ii/
  18. https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/
  19. https://leetcode.com/problems/maximum-area-of-a-piece-of-cake-after-horizontal-and-vertical-cuts/
  20. https://leetcode.com/problems/max-area-of-island/
  21. https://leetcode.com/problems/find-all-duplicates-in-an-array/
  22. https://leetcode.com/problems/k-diff-pairs-in-an-array/
  23. https://leetcode.com/problems/subsets/
  24. https://leetcode.com/problems/invalid-transactions/
  25. https://leetcode.com/problems/jump-game/
  26. https://leetcode.com/problems/subarray-sums-divisible-by-k/
  1. https://leetcode.com/problems/longest-substring-without-repeating-characters/
  2. https://leetcode.com/problems/minimum-remove-to-make-valid-parentheses/
  3. https://leetcode.com/problems/longest-palindromic-substring/
  4. https://leetcode.com/problems/group-anagrams/
  5. https://leetcode.com/problems/generate-parentheses/
  6. https://leetcode.com/problems/basic-calculator-ii/
  7. https://leetcode.com/problems/integer-to-roman/
  8. https://leetcode.com/problems/reverse-words-in-a-string/
  9. https://leetcode.com/problems/simplify-path/
  10. https://leetcode.com/problems/zigzag-conversion/
  1. https://leetcode.com/problems/encode-and-decode-tinyurl/
  2. https://leetcode.com/problems/string-to-integer-atoi/
  3. https://leetcode.com/problems/multiply-strings/
  4. https://leetcode.com/problems/angle-between-hands-of-a-clock/
  5. https://leetcode.com/problems/integer-break/
  6. https://leetcode.com/problems/valid-square/
  7. https://leetcode.com/problems/the-kth-factor-of-n/
  1. https://leetcode.com/problems/remove-all-adjacent-duplicates-in-string-ii/
  2. https://leetcode.com/problems/daily-temperatures/
  3. https://leetcode.com/problems/flatten-nested-list-iterator/
  4. https://leetcode.com/problems/online-stock-span/
  5. https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/
  6. https://leetcode.com/problems/sum-of-subarray-minimums/
  7. https://leetcode.com/problems/evaluate-reverse-polish-notation/
  1. https://leetcode.com/problems/add-two-numbers/
  2. https://leetcode.com/problems/copy-list-with-random-pointer/
  3. https://leetcode.com/problems/add-two-numbers-ii/
  4. https://leetcode.com/problems/reverse-linked-list-ii/
  5. https://leetcode.com/problems/reorder-list/
  6. https://leetcode.com/problems/remove-nth-node-from-end-of-list/
  7. https://leetcode.com/problems/flatten-a-multilevel-doubly-linked-list/
  8. https://leetcode.com/problems/partition-list/
  9. https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/
  10. https://leetcode.com/problems/odd-even-linked-list/
  11. https://leetcode.com/problems/sort-list/
  12. https://leetcode.com/problems/swap-nodes-in-pairs/
  13. https://leetcode.com/problems/rotate-list/
  1. https://leetcode.com/problems/time-based-key-value-store/
  2. https://leetcode.com/problems/search-in-rotated-sorted-array/
  3. https://leetcode.com/problems/powx-n/
  4. https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
  5. https://leetcode.com/problems/find-peak-element/
  6. https://leetcode.com/problems/search-a-2d-matrix/
  7. https://leetcode.com/problems/divide-two-integers/
  8. https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/
  9. https://leetcode.com/problems/minimum-limit-of-balls-in-a-bag/
  1. https://leetcode.com/problems/decode-ways/
  2. https://leetcode.com/problems/word-break/
  3. https://leetcode.com/problems/delete-and-earn/
  4. https://leetcode.com/problems/maximal-square/
  5. https://leetcode.com/problems/coin-change/
  6. https://leetcode.com/problems/maximum-product-subarray/
  7. https://leetcode.com/problems/maximum-length-of-repeated-subarray/
  8. https://leetcode.com/problems/palindromic-substrings/
  9. https://leetcode.com/problems/house-robber/
  10. https://leetcode.com/problems/continuous-subarray-sum/
  11. https://leetcode.com/problems/knight-dialer/
  12. https://leetcode.com/problems/longest-increasing-subsequence/
  13. https://leetcode.com/problems/unique-paths/
  14. https://leetcode.com/problems/count-square-submatrices-with-all-ones/
  15. https://leetcode.com/problems/range-sum-query-2d-immutable/
  16. https://leetcode.com/problems/longest-arithmetic-subsequence/
  1. https://leetcode.com/problems/task-scheduler/
  2. https://leetcode.com/problems/gas-station/
  3. https://leetcode.com/problems/minimum-deletion-cost-to-avoid-repeating-letters/
  4. https://leetcode.com/problems/maximum-number-of-events-that-can-be-attended/
  5. https://leetcode.com/problems/minimum-deletions-to-make-character-frequencies-unique/
  6. https://leetcode.com/problems/remove-k-digits/
  7. https://leetcode.com/problems/restore-the-array-from-adjacent-pairs/
  8. https://leetcode.com/problems/non-overlapping-intervals/
  1. https://leetcode.com/problems/partition-labels/
  2. https://leetcode.com/problems/sort-colors/
  3. https://leetcode.com/problems/longest-repeating-character-replacement/
  4. https://leetcode.com/problems/maximum-number-of-visible-points/
  5. https://leetcode.com/problems/subarrays-with-k-different-integers/
  1. https://leetcode.com/problems/palindrome-partitioning/
  2. https://leetcode.com/problems/combination-sum-ii/
  3. https://leetcode.com/problems/combinations/
  4. https://leetcode.com/problems/permutations-ii/
  5. https://leetcode.com/problems/subsets-ii/
  6. https://leetcode.com/problems/beautiful-arrangement/
  1. https://leetcode.com/problems/top-k-frequent-elements/
  2. https://leetcode.com/problems/design-twitter/
  1. https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/
  2. https://leetcode.com/problems/max-consecutive-ones-iii/
  3. https://leetcode.com/problems/grumpy-bookstore-owner/
  4. https://leetcode.com/problems/sliding-window-median/
  1. https://leetcode.com/problems/k-closest-points-to-origin/
  2. https://leetcode.com/problems/kth-largest-element-in-an-array/
  3. https://leetcode.com/problems/reorganize-string/
  4. https://leetcode.com/problems/furthest-building-you-can-reach/
  5. https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/
  6. https://leetcode.com/problems/cheapest-flights-within-k-stops/
  7. https://leetcode.com/problems/find-the-most-competitive-subsequence/
  8. https://leetcode.com/problems/ugly-number-ii/
  9. https://leetcode.com/problems/longest-substring-with-at-least-k-repeating-characters/
  10. https://leetcode.com/problems/max-consecutive-ones-iii/
  11. https://leetcode.com/problems/grumpy-bookstore-owner/
  12. https://leetcode.com/problems/sliding-window-median/
  1. https://leetcode.com/problems/count-good-nodes-in-binary-tree/
  2. https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/
  3. https://leetcode.com/problems/binary-tree-right-side-view/
  4. https://leetcode.com/problems/all-nodes-distance-k-in-binary-tree/
  5. https://leetcode.com/problems/validate-binary-search-tree/
  6. https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
  7. https://leetcode.com/problems/binary-search-tree-iterator/
  8. https://leetcode.com/problems/binary-tree-level-order-traversal/
  9. https://leetcode.com/problems/path-sum-iii/
  10. https://leetcode.com/problems/construct-binary-tree-from-preorder-and-postorder-traversal/
  11. https://leetcode.com/problems/unique-binary-search-trees/
  12. https://leetcode.com/problems/recover-binary-search-tree/
  13. https://leetcode.com/problems/populating-next-right-pointers-in-each-node/
  14. https://leetcode.com/problems/flatten-binary-tree-to-linked-list/
  15. https://leetcode.com/problems/maximum-width-of-binary-tree/
  16. https://leetcode.com/problems/unique-binary-search-trees-ii/
  17. https://leetcode.com/problems/kth-smallest-element-in-a-bst/
  18. https://leetcode.com/problems/redundant-connection/
  19.  
  1. https://leetcode.com/problems/letter-combinations-of-a-phone-number/
  2. https://leetcode.com/problems/course-schedule-ii/
  3. https://leetcode.com/problems/decode-string/
  4. https://leetcode.com/problems/number-of-provinces/
  5. https://leetcode.com/problems/clone-graph/
  6. https://leetcode.com/problems/shortest-bridge/
  7. https://leetcode.com/problems/all-paths-from-source-to-target/
  8. https://leetcode.com/problems/surrounded-regions//
  9. https://leetcode.com/problems/house-robber-iii/
  1. https://leetcode.com/problems/number-of-islands/
  2. https://leetcode.com/problems/rotting-oranges/
  3. https://leetcode.com/problems/snakes-and-ladders/
  4. https://leetcode.com/problems/is-graph-bipartite/
  5. https://leetcode.com/problems/minimum-jumps-to-reach-home/
  1. https://leetcode.com/problems/evaluate-division/
  2. https://leetcode.com/problems/accounts-merge/
  3. https://leetcode.com/problems/network-delay-time/
  4. https://leetcode.com/problems/find-eventual-safe-states/
  5. https://leetcode.com/problems/keys-and-rooms/
  6. https://leetcode.com/problems/possible-bipartition/
  7. https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/
  8. https://leetcode.com/problems/regions-cut-by-slashes/
  9. https://leetcode.com/problems/satisfiability-of-equality-equations/
  10. https://leetcode.com/problems/as-far-from-land-as-possible/
  11. https://leetcode.com/problems/number-of-closed-islands/
  12. https://leetcode.com/problems/number-of-operations-to-make-network-connected/
  13. https://leetcode.com/problems/find-the-city-with-the-smallest-number-of-neighbors-at-a-threshold-distance/
  14. https://leetcode.com/problems/time-needed-to-inform-all-employees/
  15.  
  1. https://leetcode.com/problems/lru-cache/
  2. https://leetcode.com/problems/find-median-from-data-stream/
  3. https://leetcode.com/problems/design-underground-system/
  4. https://leetcode.com/problems/lfu-cache/
  5. https://leetcode.com/problems/tweet-counts-per-frequency/
  6. https://leetcode.com/problems/all-oone-data-structure/
  7. https://leetcode.com/problems/design-browser-history/

  • HARD

  1. https://leetcode.com/problems/first-missing-positive/
  2. https://leetcode.com/problems/largest-rectangle-in-histogram/
  3. https://leetcode.com/problems/insert-delete-getrandom-o1-duplicates-allowed/
  4. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
  5. https://leetcode.com/problems/max-value-of-equation/
  1. https://leetcode.com/problems/text-justification/
  2. https://leetcode.com/problems/integer-to-english-words/
  3. https://leetcode.com/problems/minimum-window-substring/
  4. https://leetcode.com/problems/valid-number/
  5. https://leetcode.com/problems/distinct-subsequences/
  6. https://leetcode.com/problems/smallest-range-covering-elements-from-k-lists/
  7. https://leetcode.com/problems/substring-with-concatenation-of-all-words/
  8.  
  1. https://leetcode.com/problems/basic-calculator/
  2. https://leetcode.com/problems/max-points-on-a-line/
  3. https://leetcode.com/problems/permutation-sequence/
  4. https://leetcode.com/problems/number-of-digit-one/
  1. https://leetcode.com/problems/merge-k-sorted-lists/
  2. https://leetcode.com/problems/reverse-nodes-in-k-group/
  1. https://leetcode.com/problems/median-of-two-sorted-arrays/
  2. https://leetcode.com/problems/count-of-smaller-numbers-after-self/
  3. https://leetcode.com/problems/max-sum-of-rectangle-no-larger-than-k/
  4. https://leetcode.com/problems/split-array-largest-sum/
  5. https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/
  1. https://leetcode.com/problems/trapping-rain-water/
  2. https://leetcode.com/problems/word-break-ii/
  3. https://leetcode.com/problems/regular-expression-matching/
  4. https://leetcode.com/problems/maximal-rectangle/
  5. https://leetcode.com/problems/longest-valid-parentheses/
  6. https://leetcode.com/problems/edit-distance/
  7. https://leetcode.com/problems/minimum-difficulty-of-a-job-schedule/
  8. https://leetcode.com/problems/frog-jump/
  9. https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/
  10. https://leetcode.com/problems/burst-balloons/
  11. https://leetcode.com/problems/minimum-cost-to-merge-stones/
  12. https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome/
  13. https://leetcode.com/problems/super-egg-drop/
  14. https://leetcode.com/problems/count-different-palindromic-subsequences/
  15. https://leetcode.com/problems/minimum-cost-to-cut-a-stick/
  1. https://leetcode.com/problems/candy/
  2. https://leetcode.com/problems/minimum-number-of-taps-to-open-to-water-a-garden/
  3. https://leetcode.com/problems/create-maximum-number/
  1. https://leetcode.com/problems/word-search-ii/
  2. https://leetcode.com/problems/sudoku-solver/
  3. https://leetcode.com/problems/n-queens/
  4. https://leetcode.com/problems/unique-paths-iii/
  1. https://leetcode.com/problems/merge-k-sorted-lists/
  2. https://leetcode.com/problems/sliding-window-maximum/
  3. https://leetcode.com/problems/the-skyline-problem/
  4. https://leetcode.com/problems/trapping-rain-water-ii/
  5. https://leetcode.com/problems/minimum-number-of-refueling-stops/
  6. https://leetcode.com/problems/swim-in-rising-water/
  7. https://leetcode.com/problems/shortest-path-to-get-all-keys/
  8. https://leetcode.com/problems/minimum-cost-to-hire-k-workers/
  9. https://leetcode.com/problems/k-th-smallest-prime-fraction/
  1. https://leetcode.com/problems/serialize-and-deserialize-binary-tree/
  2. https://leetcode.com/problems/binary-tree-maximum-path-sum/
  3. https://leetcode.com/problems/vertical-order-traversal-of-a-binary-tree/
  4. https://leetcode.com/problems/binary-tree-cameras/
  5. https://leetcode.com/problems/sum-of-distances-in-tree/
  6. https://leetcode.com/problems/number-of-ways-to-reconstruct-a-tree/
  7. https://leetcode.com/problems/redundant-connection-ii/
  1. https://leetcode.com/problems/critical-connections-in-a-network/
  2. https://leetcode.com/problems/remove-invalid-parentheses/
  3. https://leetcode.com/problems/longest-increasing-path-in-a-matrix/
  4. https://leetcode.com/problems/concatenated-words/
  5. https://leetcode.com/problems/making-a-large-island/
  6. https://leetcode.com/problems/contain-virus/
  7. https://leetcode.com/problems/24-game/
  8. https://leetcode.com/problems/remove-boxes/
  1. https://leetcode.com/problems/word-ladder/
  2. https://leetcode.com/problems/word-ladder-ii/
  3. https://leetcode.com/problems/cut-off-trees-for-golf-event/
  4. https://leetcode.com/problems/reachable-nodes-in-subdivided-graph/