Data Structures & Algorithms Interview Mock
A 450-question bank weighted toward advanced and tricky questions, served as 40-question, 60-minute mocks: complexity analysis, arrays/strings/hashing, linked lists/stacks/queues, trees, heaps and advanced structures, graphs, sorting and searching, recursion and backtracking, dynamic programming, and greedy and problem-solving patterns. Mapped to the roadmap.sh DSA roadmap, with code in Python, verified by running it, and every option explains its reasoning.
- questions
- 40
- minutes
- 60
- pass mark
- 70/ 100
- domains
- 4
Syllabus
4 domains · 10 skills, weighted like the official blueprint.
1Foundations20% of the exam · 2 skillsMastery—
2Data Structures29% of the exam · 3 skillsMastery—
3Graphs, Sorting and Searching24% of the exam · 2 skillsMastery—
4Algorithm Design27% of the exam · 3 skillsMastery—
Sample questions with answers
10 questions from the DSA bank, with an explanation for every option. No sign-up needed.
Resources
The best reading for each DSA topic: official docs, editors' picks and links shared by learners.
Complexity AnalysisStudy notes
Arrays, Strings, Hashing and Two PointersStudy notes
- Tech Interview Handbook: Array cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- Tech Interview Handbook: Hash table cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- Python wiki: TimeComplexity(opens in a new tab)Docswiki.python.orgOfficial docs
Linked Lists, Stacks and QueuesStudy notes
- Tech Interview Handbook: Linked list cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- Tech Interview Handbook: Stack cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- VisuAlgo: Linked list, stack, queue, deque(opens in a new tab)Toolvisualgo.netEditor’s pick
Trees, BSTs and TriesStudy notes
- Tech Interview Handbook: Tree cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- VisuAlgo: Binary search tree and AVL tree(opens in a new tab)Toolvisualgo.netEditor’s pick
- Tech Interview Handbook: Trie cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
Show resources for 6 more topicsShow fewer topics
Heaps, Union-Find and Advanced StructuresStudy notes
Graph AlgorithmsStudy notes
Sorting and SearchingStudy notes
Recursion, Backtracking and Divide and ConquerStudy notes
Dynamic ProgrammingStudy notes
- Tech Interview Handbook: Dynamic programming cheatsheet(opens in a new tab)Cheat sheettechinterviewhandbook.orgEditor’s pick
- Introduction to dynamic programming (cp-algorithms)(opens in a new tab)Articlecp-algorithms.comEditor’s pick
- MIT 6.006 Lecture 19: Dynamic Programming I(opens in a new tab)Videoyoutube.comEditor’s pick
Greedy Algorithms and Problem-Solving PatternsStudy notes
Interview experiences
Real DSA interviews, written up by learners and checked by our team.
No experiences shared yet. Interviewed for a role that tested DSA? Your rounds and questions could help someone prepare.
Help other DSA learners
Share a resource, write a question or describe an interview. Our team reviews every contribution and credits you by name.
Questions about this exam
How many questions are in a full Data Structures & Algorithms Interview Mock, and how long is it?
40 questions in 60 minutes. Each mock draws questions from every domain in proportion to its weight, so the mix matches the blueprint.
What score do you need to pass it?
Results are reported from 0 to 100, and 70 is the passing score used in these mocks. Harder questions carry more weight.
What does the Data Structures & Algorithms Interview Mock cover?
4 domains: Foundations (20%), Data Structures (29%), Graphs, Sorting and Searching (24%) and Algorithm Design (27%).
How can I practise for it?
Start with the free 15-question diagnostic to find your weak spots, drill any skill with an explanation after every answer, retry your mistakes with spaced review, then sit timed full mocks.
How is my readiness score worked out?
It weighs your recent answers on each skill by difficulty, combines the skills by their exam weight into a predicted score, and reports your chance of reaching the pass mark. How scoring works