9/13
Part 6 of 7 · The worked exampleLearn

A worked example: mode and median across nodes, out loud

Here's the Anthropic question, worked out loud.

Compute the mode and the median of data spread across many nodes, with a messaging interface. (2 sources)

1. Ask about sizes and costs. How many nodes and values? Integers or floats, and what range? Is a message expensive, or a round of messages?

Predict

There are 10 nodes and 1,000 values in all. What's the cheapest exact median?

Pick an answer above to see the rest
Predict

The values are floats, not integers. What goes wrong with binary search on the value?

Pick an answer above to see the rest