I can't help but feel bothered by the fact that the author didn't use the standard 7-segment display nomenclature/order for the segments (a-f clockwise starting from the top, middle is g) :-)<p>Another thing to note is that there isn't one standard 7-segment display font; in fact, whole papers have been written on the "optimal" font. The differences are the extra serifs that are optional on 7, 9, 6. It would be interesting to add this variability to the problem, where you don't know exactly what variant the clock is using.