Distributed Mode and Median
Anthropic interview questions · Hard · Coding round · reported 12× · 5 tests
Combine already-sorted numeric shards to recover global mode and median; the interesting part is tie-breaking and even-length median handling.
The full question, tests and reference solution are available with a plan that includes Anthropic.
Run your code with Ctrl+Enter to see results.