Top 200 DSA Problems for Placements
The coding problems most asked in campus placements and product company interviews, as a 60-day plan. Write your code, run it against real test cases, then read a detailed solution in Python, JavaScript, Java and C++.
- 200
- problems
- 60
- day plan
- 4
- languages
- 49/131/20
- easy/medium/hard
Asked at
- Amazon
- Microsoft
- Adobe
- Flipkart
- Goldman Sachs
- TCS
- Infosys
Day 1
Arrays & Hashing0/4Day 2
Arrays & Hashing0/4Day 3
Arrays & Hashing0/4Day 4
Arrays & Hashing0/4Day 5
Arrays & Hashing0/3Day 6
Arrays & Hashing0/3Day 7
Two Pointers0/4Day 8
Two Pointers0/3Day 9
Two Pointers0/3Day 10
Revision dayRevision: re-solve every problem from days 1 to 9 that you could not finish without a hint. Time yourself: 20 minutes for Easy, 35 for Medium.
Day 11
Sliding Window0/4Day 12
Sliding Window0/3Day 13
Sliding Window0/3Day 14
Strings0/4Day 15
Strings0/4Day 16
Strings0/4Day 17
Binary Search0/5- β55Binary SearchEasyMicrosoft, Amazon, Apple, TCS
- β56Search Insert PositionEasyAmazon, Apple, Adobe, Cognizant
- β57Find First and Last Position of Element in Sorted ArrayMediumMeta, Amazon, Microsoft, LinkedIn
- β58Search in Rotated Sorted ArrayMediumMeta, Amazon, Microsoft, LinkedIn
- β59Find Minimum in Rotated Sorted ArrayMediumAmazon, Microsoft, Meta, Goldman Sachs
Day 18
Binary Search0/4Day 19
Binary Search0/4Day 20
Revision dayRevision: Strings and Binary Search. Write the binary search template from memory and explain both boundary cases out loud.
Day 21
Linked List0/4Day 22
Linked List0/4Day 23
Linked List0/4Day 24
Linked List0/3Day 25
Stack & Queue0/5- β83Valid ParenthesesEasyAmazon, Microsoft, Google, Meta
- β84Min StackMediumAmazon, Microsoft, Bloomberg, Goldman Sachs
- β85Implement Queue using StacksEasyMicrosoft, Amazon, Apple, Zoho
- β86Evaluate Reverse Polish NotationMediumAmazon, LinkedIn, Google
- β87Daily TemperaturesMediumAmazon, Meta, Google, Uber
Day 26
Stack & Queue0/4Day 27
Stack & Queue0/4Day 28
Recursion & Backtracking0/4Day 29
Recursion & Backtracking0/3Day 30
Revision dayRevision: Linked List and Stack. Practice explaining pointer changes on paper before you code.
Day 31
Recursion & Backtracking0/3Day 32
Recursion & Backtracking0/3Day 33
Trees & BST0/4Day 34
Trees & BST0/4Day 35
Trees & BST0/4Day 36
Trees & BST0/4- β121Lowest Common Ancestor of a Binary TreeMediumMeta, Amazon, Microsoft, LinkedIn
- β122Construct Binary Tree from Preorder and Inorder TraversalMediumAmazon, Microsoft, Bloomberg, Adobe
- β123Binary Tree Maximum Path SumHardMeta, Amazon, Google, Microsoft
- β124Serialize and Deserialize Binary TreeHardAmazon, Meta, Google, Microsoft
Day 37
Trees & BST0/3Day 38
Trees & BST0/3Day 39
Heap / Priority Queue0/5- β131Kth Largest Element in an ArrayMediumMeta, Amazon, Microsoft, LinkedIn
- β132Last Stone WeightEasyAmazon, Google
- β133K Closest Points to OriginMediumMeta, Amazon, Apple, LinkedIn
- β134Find Median from Data StreamHardAmazon, Microsoft, Google, Apple
- β135Task SchedulerMediumMeta, Amazon, Microsoft
Day 40
Revision dayRevision: Backtracking and Trees. Draw the recursion tree for two problems and state the complexity.
Day 41
Heap / Priority Queue0/4Day 42
Graphs0/4Day 43
Graphs0/4Day 44
Graphs0/4Day 45
Graphs0/4Day 46
Graphs0/4Day 47
Dynamic Programming0/4Day 48
Dynamic Programming0/4Day 49
Dynamic Programming0/4Day 50
Revision dayRevision: Heap and Graphs. Re-solve Number of Islands, Course Schedule and Network Delay Time without looking.
Day 51
Dynamic Programming0/4Day 52
Dynamic Programming0/3Day 53
Dynamic Programming0/3Day 54
Dynamic Programming0/3Day 55
Greedy & Intervals0/4Day 56
Greedy & Intervals0/3Day 57
Greedy & Intervals0/3Day 58
Bit Manipulation & Math0/3Day 59
Bit Manipulation & Math0/3Day 60
Final mockMock interview day: pick 3 random unsolved or hard problems, 45 minutes each, talk through your approach as if an interviewer is listening.
Want a mentor to review your code and run mock interviews? Join the live DSA course with an industry engineer.
See the DSA courseFrequently asked questions
Is the DSA practice free?
Yes. All 200 problems, tests and solutions are free and need no sign-up. Your progress and code are saved in your own browser.
Which languages can I use?
You can write in Python, JavaScript, Java or C++, and every problem has a full solution in all four. Python and JavaScript run against the test cases directly in your browser; for Java and C++ you write your code and compare it with the reference solution.
Are these the problems companies actually ask?
The list is built from the problems most often reported in campus placement and product company interviews (Amazon, Microsoft, Google, Adobe, Flipkart, Goldman Sachs, TCS, Infosys and others). Each problem lists the companies where it is frequently asked.
How many hours a day does the 60-day plan need?
About 2 to 3 hours: three or four problems a day, with a revision day after every nine study days and a mock interview on day 60.
I am a complete beginner. Can I start here?
Start once you know one language well enough to write loops, functions and use lists and maps. Day 1 begins with easy array problems and the difficulty rises slowly within each topic.