Qm

The biggest digit sum a 24-hour clock ever shows

A digital clock displays times from 00:00 to 23:59 using four digits.

What is the largest possible sum of the four digits ever shown, and at what time does it occur? Explain why nothing larger is possible.

Show a hint

The minutes can contribute at most 5 + 9. The hours are the tricky part: 23 is the biggest hour, but it does not have the biggest digit sum.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Twenty-five horses, five lanes, the top twoTying your shoelace on the moving walkwayThe angle between the hands at 3:15The angle between the hands at 7:20The number equal to the sum of the cubes of its digits
All questions →