I’ve been looking for small programming problems to practice on while running experiments. One such source is Fivethirtyeight’s Riddler column which posts conundrums weekly. This week one problem focus on one of life’s universal problems: how many urinals are needed in any bathroom for all patrons to use it without awkwardness.
Formally this is phrased as:
Some number, N, of people need to pee, and there is some number, M, of urinals in a row in a men’s room.