20 QUESTIONS · 5 TOPICS · STRUCTURE DETECTIVE · ABOUT 12 MINUTES

Pick the wrong structure and fast code turns slow.

Twenty questions on how data structures behave and what they cost, each explained, plus a detective round: work out which structure produced an output. No sign-up, nothing saved.

Start the test
FIND ONE ITEM IN 1MSTEPSAT 1 µs
Unsorted arrayup to 1,000,0001 s
Balanced treeabout 2020 µs
Hash tableabout 11 µs
QUESTION 1 / 20 · ARRAYS & LISTSEasy

What is the time to access the element at a given index in an array?

CASE 1 OF 6 · 0 SOLVED

Structure detective

The same items went in, in the same order. Only the structure inside the box differs. From what came out, which structure is it?

OPERATIONS, IN ORDER
add 5add 3removeadd 8add 1removeremoveremove
OUTPUT3, 1, 8, 5

What this data structures test covers, in short

Twenty multiple-choice questions at first-year undergraduate level, four on each of five topics: arrays and linked lists, stacks and queues, hash tables, trees, and graphs and heaps. They test what each structure is good at and how much its operations cost in Big O terms.

Costs are the usual average-case figures taught in introductory courses. Code snippets use Python-like pseudocode. The test is our own and not normed.

By What's Your IQ · Reviewed 5 Oct 2026
Format
20 multiple-choice questions
Level
Introductory undergraduate
Bonus
6-case structure detective
Study first
The data structures guide

Keep going

Structured knowledge, structured thinking. Test your reasoning.

Our full IQ test covers logical, numerical, verbal and spatial reasoning: 60 questions, about 30 minutes.

Take the full IQ test