Cody

Problem 324. 7 segment LED display

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

51.08% Correct | 48.92% Incorrect
Last solution submitted on Aug 19, 2019

Problem Comments

Recent Solvers147

Suggested Problems

More from this Author39