Loading the code workspace…
Write a C program that implements B-tree search.
Requirements:
This is the exact traversal MySQL's InnoDB performs on every primary-key lookup and PostgreSQL runs for every btree index scan — three or four page reads regardless of table size. The reason a 10-million-row table returns a row in milliseconds is this logarithmic fan-out, not raw disk speed.