Skip to content

DSA Practice Problems
Grouped by Pattern

CodeStory's app holds 352 problems filed under the pattern that solves them and the companies that ask them. Write in C, C++, Java, Python or JavaScript, test against hidden cases and take a hint only when you are stuck.

Start free with 100 AI credits at signup and 100 more every month. Solving problems costs no credits.

Why DSA Practice Needs a Pattern Plan

Most students practise by scrolling a sheet, while CodeStory files every problem under the idea behind it.

Sheets tell you what to solve but not why those problems sit together, so you finish forty of them and still freeze when the wording changes. Patterns carry over, from two pointers and sliding window to monotonic stack, binary search on the answer and the half dozen shapes of dynamic programming.

In CodeStory's app, every problem belongs to at least one pattern, and every pattern has a ladder inside it. You start with a problem that shows the shape plainly, then move to the ones that hide it. Solve the ladder and the next unseen problem in that pattern stops being a surprise.

CodeStory cuts the same problems by company as well. 463 companies have their own set, so a week before an Amazon or a Zoho round you practise what that company asks instead of a generic top 100. Add online assessment practice for the timed half of the screen.

What One DSA Problem Gives You

CodeStory gives you the same screen as a real online round, minus the panic.

Clear Problem Statement

Constraints, input and output format and worked samples with an explanation tell you what counts as correct before you type.

Test Samples, Then Submit

Test on the samples or on input you make up. Submit checks your code against hidden tests, because every problem carries cases you never see, the way a real judge works.

Clear Verdicts

You see accepted, wrong answer, time limit, memory limit, runtime error or compile error, and CodeStory never names the line to change.

Hints, One at a Time

Every problem has a ladder of hints. Take the first, try again and take the next. Hints cost no credits.

How to Practise DSA So It Sticks

CodeStory's own batches use this method, and the app follows it.

  1. Learn the idea firstOpen the free DSA guide for the pattern, or watch it move in the algorithm visualiser. Ten minutes of understanding saves an hour of guessing.
  2. Solve the starter, then the coreOne problem where the pattern is obvious, then two where it is buried. If the second one takes more than 40 minutes, go back to the idea.
  3. Say the approach out loudBefore you type, say the plan in one sentence covering what you keep, what you throw away and why it beats brute force.
  4. Then take the company setA week before a round, switch from patterns to that company's set and time yourself. Panic you feel there costs less than panic in the round.

Next Steps After DSA Practice

CodeStory students open these pages after their first patterns.

DSA Practice FAQs

Want to try first? Start free, or ask a mentor on a free call.

Start free
Is DSA practice on CodeStory free?

Yes, to start. CodeStory gives you 100 AI credits at signup and 100 more every month, and solving a problem costs no credits. You need no card to begin.

Which languages can I write in?

C, C++, Java, Python and JavaScript. Every language has its own time limit on every problem, so a slower language is not punished for being slower.

How many problems does CodeStory have?

CodeStory has 352 problems filed under 71 patterns and topics, and cut again into sets for 463 companies.

Does CodeStory use hidden test cases?

Yes. Every problem carries hidden cases you never see, and Submit checks your code against them.

Do hints cost credits?

No. CodeStory's hints come one at a time and cost no credits.

Can I practise company wise questions?

Yes. CodeStory has problem sets for 463 companies, cut from the same 352 problems.

Is CodeStory's app the same as the paid batch?

No. CodeStory's app is practice you do on your own. CodeStory's online batch adds live classes, a mentor who reviews your code and scored mock rounds, and it includes the app's Pro plan while the batch lasts.

Where do I start if I have never done DSA?

Start with the free guides on arrays, hash tables and Big O, then the starter problem in every pattern. CodeStory orders them for you.

Stuck on DSA? Get a Free Callback

Share your level and target role with CodeStory, and a mentor maps your DSA path.

  1. 1CodeStory finds your level, from never coded to ready for interviews.
  2. 2CodeStory proposes online or campus, and a batch timing that fits your day.
  3. 3You decide. No pressure, no payment on the call.

Get a Free Callback

I am a
I want to learn

CodeStory uses your number only to discuss your DSA path.