The test cases were wrong?!


  • 0
    P

    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:03","0:05","0:06","0:09","0:10","0:12","0:17","0:18","0:20","0:24","0:33","0:34","0:36","0:40","0:48","1:01","1:02","1:04","1:08","1:16","1:32","2:01","2:02","2:04","2:08","2:16","2:32","3:00","4:01","4:02","4:04","4:08","4:16","4:32","5:00","6:00","8:01","8:02","8:04","8:08","8:16","8:32","9:00","10:00"]


  • 0
    V

    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.