15 to 30 random questions in 15 to 30 minutes, by the level you choose: big-o, arrays, linked lists, trees, graphs, dp, greedy and sorting. After you submit you get your score, your strong and weak topics, and the right answer with an explanation for every question.
Want to revise first? Read the Data Structures and Algorithms interview questions and answers.
The test covers 13 topics across three levels. Each attempt picks 15 to 30 questions at random, by the level you choose, so every attempt is different.
One question from each level, the way they appear in the test. A new set comes on the 1st of every month. Try it, then open the answer.
Answer: 3. 6 goes left of 10, right of 5 and left of 7, so the path 10 -> 5 -> 7 -> 6 has 3 edges, the longest in the tree. Counting nodes instead of edges would give 4, so always check which convention a question uses.
Answer: 5. The first dequeue moves 1, 2, 3 (3 moves) and returns 1. The next two dequeues pop 2 and 3 straight from OUT. The last one finds OUT empty and moves 4 and 5. That is 5 moves for 5 items; no item ever moves twice.
Answer: Three-way partitioning into less than, equal to and greater than the pivot. With a two-way partition, equal keys all land on one side, so each step removes only the pivot. Three-way partitioning gathers every copy of the pivot in the middle and never recurses on them, so all-equal input takes one O(n) pass.
Take the full Data Structures and Algorithms mock test: 15 to 30 questions and 15 to 30 minutes, by level.
A question counts as right only when you pick exactly the right option, or all the right options where it says so; a question left blank counts as wrong. Your score is the share of the test's questions you got right (15 to 30, by level). The result also scores every topic, so you know what to revise before the interview.
Yes. The Data Structures and Algorithms mock test is free. You need a free CoreHRx Jobs account to start it, so your score and the topics to work on are saved.
It depends on the level: Easy has 15 questions in 15 minutes, Medium has 20 questions in 20 minutes, Hard has 30 questions in 30 minutes. They are multiple-choice questions picked at random from a larger bank of Data Structures and Algorithms questions at your level, so every attempt is different.
The questions cover Graphs, Dynamic Programming, Sorting and Searching, Trees and BST, Recursion and Backtracking, Complexity Analysis, Stacks and Queues, Arrays and Strings, Hashing, Two Pointers and Sliding Window, Greedy Algorithms, Heaps, Linked Lists. Your result shows how you did in each topic.
Easy: Arrays, strings, hashing, stacks, queues and Big-O basics. Medium: Trees, heaps, recursion, sorting and the patterns most coding rounds use. Hard: Graphs, dynamic programming and greedy choices, for top scores. Start with Easy and move up.
Only your best Data Structures and Algorithms score, and only when it is 60% or more. It shows on the job applications you send on CoreHRx. Lower scores stay private.
Yes, up to 10 tests a day. Each attempt picks questions you have not seen recently first.