Interview
DSA Mock Interview: How to Practise Coding Rounds With an AI Interviewer (2026)
A DSA mock interview is a timed coding round you rehearse out loud. See the format, the rubric, AI vs human vs peer options, and how to practise free.

A DSA mock interview is a timed rehearsal of a data structures and algorithms round: someone (a person or an AI interviewer) gives you a problem, you clarify it, explain an approach out loud, write working code, test it, and answer follow-ups about complexity and edge cases. The point is not to solve one more problem. It is to practise the performance that a real coding round grades, under the same clock.
This guide covers what a good DSA mock interview looks like, how real coding rounds are timed, the rubric interviewers use, how AI, human and peer mocks compare, and how to run one free today.
Want to start now? Thita's AI mock interview for coding rounds has a free, no-sign-up 3-question version: one coding problem whose code is compiled and run against stored test cases, plus one behavioural and one system design question.
DSA mock interview at a glance
| Question | Short answer |
|---|---|
| What is it? | A timed rehearsal of a live coding round, spoken out loud, with follow-ups |
| How long? | Most real coding rounds are about 45 minutes; Meta's own prep post describes 35 minutes of coding inside a 45-minute interview |
| What is graded? | Problem understanding, approach, correct working code, testing, complexity, communication |
| Can I do one free? | Yes — peer platforms and free AI tiers exist; Thita's free mock needs no account |
| AI or human? | AI for frequent reps; a human for calibration close to the real loop |
| How many? | Enough to stop repeating the same mistake; see the FAQ below |
What a DSA mock interview should actually test
Solving a problem alone in an IDE tests one thing: can you reach code that passes. A coding round tests more. Meta's official guide to its software engineering interview says interviewers weigh how you think through a problem as much as the final answer (Meta Careers). A mock is only useful if it puts pressure on the same skills:
- Clarifying the problem — inputs, constraints, edge cases, what to return.
- Choosing an approach — usually a baseline first, then a better one when constraints demand it.
- Stating complexity before and after coding.
- Writing correct code in a language you are fluent in.
- Testing — walking through normal and awkward cases, then fixing what breaks.
- Handling follow-ups — "what if the input doesn't fit in memory?", "can you do it in O(1) space?"
If your "mock" never asks a follow-up and never runs your code, it is practising only half of that list. That is the main thing to check when you choose a tool (does your AI mock interview actually run your code?).
How real coding rounds are timed
Treat these as typical, not fixed — formats change and vary by team and level, so confirm yours with your recruiter.
| Company | Reported format | Source quality |
|---|---|---|
| Meta | 45 minutes: ~5 intro, ~35 coding (often two problems), ~5 questions | Official Meta Careers post |
| About 45 minutes per technical interview | Third-party guides and candidate reports | |
| Many others | 45–60 minute live coding, sometimes after an online assessment | Candidate reports |
Some companies now also run AI-allowed coding rounds, where you may use an assistant and are graded on how you use it. If your loop includes one, read how AI-allowed coding rounds work — it is a different skill from a classic DSA round.
A 45-minute mock, minute by minute
| Minutes | What you do | What a good interviewer probes |
|---|---|---|
| 0–5 | Restate the problem, ask about constraints and edge cases | "What's the input size?" "Can values be negative?" |
| 5–12 | Propose a baseline, then an improved approach, with complexity | "Why does this work?" "Can you do better?" |
| 12–32 | Write the code, narrating key decisions | Watches structure, naming, off-by-one risks |
| 32–40 | Run and test; fix what fails | "Which case would break this?" |
| 40–45 | Follow-ups and wrap-up | Space trade-offs, scaling, a variant of the problem |
The rubric: how to score a DSA mock
Most coding-interview feedback reduces to four areas. Score yourself 1–4 on each after every mock, whoever the interviewer was.
| Area | Strong signal | Weak signal |
|---|---|---|
| Problem solving | Identifies the pattern, justifies the approach, improves it deliberately | Jumps between ideas, or codes the first idea without checking it |
| Coding | Correct, readable code that runs; sensible helpers and names | Code that only works on the example; frequent rewrites |
| Verification | Tests edge cases unprompted; finds and fixes own bugs | Declares "done" without testing |
| Communication | Thinks out loud at the right level; responds well to hints | Long silences, or narrates every keystroke |
If "problem solving" is your weakest score, the fix is pattern recognition, not more mocks: work through the DSA patterns sheet and read how to identify the right DSA pattern in a coding interview. If "communication" is weakest, read how to think out loud in coding interviews and do more spoken mocks.
AI vs human vs peer DSA mock interviews
| AI mock interview | Paid human mock | Peer mock | |
|---|---|---|---|
| Availability | Any time, no scheduling | Booked in advance | Depends on matching a partner |
| Cost | Free tiers exist; paid plans are monthly | Usually priced per session | Often free, with limits |
| Runs your code | Depends on the tool — check | Usually a shared editor | Usually a shared editor |
| Follow-up quality | Good on technical follow-ups; consistent | Best: calibrated to real hiring bars | Varies widely with the partner |
| Feedback | Instant written report | Verbal or written, depends on the coach | Informal |
| Best for | Frequent reps, fixing habits | Calibration in the last 1–2 weeks | Cheap practice, learning to interview others |
An honest recommendation: use an AI interviewer for most of your reps, because volume and immediate feedback are what fix habits. Book one or two human mocks close to the real loop, because an experienced interviewer can tell you where you sit against a specific company's bar — something no AI tool can verify. Peer platforms are a good free option if you can tolerate scheduling and uneven partners; see Pramp vs an AI interviewer that runs your code and mock coding interview online without a partner.
What a DSA mock interview on Thita looks like
Thita's AI mock interview is a live voice session rather than a chat window:
- The interviewer speaks the problem and listens. You answer out loud. When you skip a step — a complexity claim with no justification, a missing edge case — it asks a follow-up instead of moving on.
- You code in an in-browser editor. The interviewer can read your current code and the language you picked.
- Your code really runs. Submissions execute against the problem's test cases in Python, C++, Java, JavaScript, Go or C#, and the pass/fail result is passed to the interviewer, so it reacts to what your code does rather than what you say it does.
- Single-problem rounds are 30 minutes; company, role and resume-based interviews run 45 minutes.
- You get a written report covering your reasoning, your code and the follow-ups you missed, stored in your history so you can compare attempts on the same pattern.
The problem bank behind it is the same one as the rest of the site: 410 DSA problems organised into 99 patterns in 16 families, and company-mapped practice for 160 companies.
What it is not: it is not a human calibrated to a specific company's hiring bar, and it will not tell you your odds of an offer. Use it for reps; use a human for calibration.
How to do a DSA mock interview for free
- Free AI mock, no account: the 3-question mock on /ai-interview gives you one Easy coding problem (Python, JavaScript, Java or C++) whose code is compiled and run against stored test cases, plus a behavioural and a system design question, each scored out of ten with one specific thing to fix. It takes about ten minutes.
- Free account: Thita's Starter plan is free forever and includes limited full AI mock interviews.
- Peer platforms: free peer mocks exist, usually with a monthly cap.
- Do-it-yourself: set a 45-minute timer, record yourself, pick an unseen Medium from the DSA patterns sheet, and score yourself with the rubric above. You lose the follow-ups, but you keep the clock and the out-loud practice.
How to get the most from each mock
- Use an unseen problem. A mock on a problem you remember tests recall, not problem solving.
- Don't pause the clock. Running out of time is information.
- Review within 24 hours. Write down the one mistake that cost you the most, and the pattern it belongs to.
- Close the loop. Do 2–3 problems from that pattern, then mock the same pattern again.
- Mix difficulty. Most rounds are Medium-heavy; see Easy vs Medium vs Hard: what difficulty actually matters.
Patterns worth mocking first
Two pointers, sliding window, hash maps, binary search, BFS/DFS on trees and graphs, heaps, and then dynamic programming and backtracking. The order matters less than mocking each one until you can recognise it from the problem statement.
A simple weekly cadence
| Situation | Mocks per week | Between mocks |
|---|---|---|
| Interviews 2+ months away | 1–2 | Pattern study and untimed practice |
| Interviews in 3–6 weeks | 3–4 | Target the weakest rubric area |
| Interviews in under 2 weeks | 4–6, including one human mock | Review, not new topics |
Common mistakes a mock should catch
- Coding before agreeing on the approach. Say the plan and its complexity first.
- Ignoring edge cases — empty input, one element, duplicates, overflow.
- Going silent when stuck. Say what you are considering and what would change your mind.
- Optimising too early. A correct baseline beats an unfinished optimal solution.
- Not testing. Walk one normal case and one awkward case through your code before declaring it done.
For a system design round, the format and rubric are different — see the system design mock interview guide.
AI in real interviews
FAQ
What is a DSA mock interview?
A timed rehearsal of a data structures and algorithms interview round. You solve an unseen problem out loud while an interviewer — a person or an AI — asks clarifying questions and follow-ups, then you get feedback on your approach, code, testing and communication.
Is there a free DSA mock interview?
Yes. Thita's free AI mock interview needs no sign-up and runs your code against real test cases. Peer mock platforms also offer free sessions, usually with a monthly cap.
Does an AI mock coding interview run my code?
It depends on the tool. Some only read your code and comment on it. Thita executes your code against the problem's test cases in Python, C++, Java, JavaScript, Go or C#, and the interviewer sees the result.
How long should a DSA mock interview be?
Match the real round. Most coding interviews are about 45 minutes; Meta's official prep post describes about 35 minutes of coding inside a 45-minute interview. A 30–45 minute mock on a single problem is a good default.
How many mock interviews should I do before a coding interview?
There is no magic number. Keep going until the same mistake stops showing up in your feedback — for most people that means several mocks per week in the final month, plus one or two human mocks near the end for calibration.
Is an AI mock interview as good as a human one?
For frequent practice and instant feedback, an AI interviewer is more practical. For calibration against a specific company's hiring bar, an experienced human interviewer is still better. Most candidates benefit from both.
Can I practise company-specific DSA interviews?
Yes. On Thita you can start a company or role-at-company interview, and the company-wise kits map problems to companies. Treat company-tagged problems as a guide to patterns, not a promise of what you will be asked.
What should I do after a bad mock?
Write down the single biggest mistake, find the pattern it belongs to, practise 2–3 problems from that pattern, and mock the same pattern again within a few days.
Start your first DSA mock interview
Pick one unseen Medium, set a 45-minute clock, and do it out loud. If you want an interviewer who asks follow-ups and actually runs your code, start an AI coding interview; the free version needs no account.
Topics
Related on Thita
Your next step
Practise with AI mock interviews
A spoken interview that asks follow-up questions, runs your code and ends with a written report.