The test cases were wrong?!

  • 0

    Consider when n = 2, follow the instruction the output should contain "12:00" (hours 8+4) but the expected output doesn't?
    This is the expected output of test case when n = 2

  • 0

    The reason for this is that 12:00 or (00:00) is represented by all bits being off.
    The clock counts from 00:00 to 11:59, then starts from 0 again.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.