3:42.
Right now exactly lit lamps are on. Return every time the clock could be showing. Format each string like this:
- the hour has no leading zero: "5:07", not "05:07";
- the minutes always have two digits: "10:03", not "10:3".
The times may be listed in any order.lit=0 → ['0:00']
All lamps are off, so the clock shows 0:00.
lit=9 → []
The hour row can have at most 3 lamps lit (7 or 11) and the minute row at most 5 (such as 59 or 47): 4 lamps would mean hour 15, and 6 would mean minute 63. So at most 8 lamps can be on, and the answer is empty.
lit=1 → ['0:01', '0:02', '0:04', '0:08', '0:16', '0:32', '1:00', '2:00', '4:00', '8:00']
One lamp: either an hour of 1, 2, 4 or 8 with 00 minutes, or 0 hours with 01, 02, 04, 08, 16 or 32 minutes.
lit ≤ 10lit=0
['0:00']
Run checks the first 3 tests in your browser. Submit checks all 14 tests on the server, hidden ones included.