Karat logo

Karat Interview Question Bank

Karat conducts outsourced technical screens on behalf of hiring companies, so the round follows Karat's format rather than the hiring team's. Rounds are tightly time-boxed and multi-part, and reading speed on a long prompt or unfamiliar starter code matters about as much as coding speed.

Coding problems
14
Before you start
Showing 70 of 70
Coding·40 min
Single reportFree preview

Obstacle Course Run Collection: Personal Best, Best of Bests & Simulation

Three-part extension of a TypeScript Course / Run / RunCollection codebase in about 40 minutes of coding: (1) fix personalBest(), which returns 13 instead of 17 because it does not skip incomplete runs; (2) implement bestOfBests() = sum of per-obstacle minimum times across all runs, incomplete ones included (15 on the sample); (3) implement chanceOfPersonalBest(run) via a 10,000-trial Monte Carlo simulation that fills missing obstacles with uniformly sampled historical times and counts ties as success, within ±0.02.

SWE
debugging
code-reading
oop
simulation
+4
1 related discussion