Given a whole number, output how many segments would be lit up to display it on a 7 segment LED display (see Wikipedia: http://en.wikipedia.org/wiki/Seven-segment_display)
Examples:
1 -> 2
34 -> 9

Solution Stats

659 Solutions

285 Solvers

Last Solution submitted on Feb 10, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...