Idea about this case [forgive my poor English]


  • 0

    As we know,
    HOUR is from 0 to 11,
    MIN is from 0 to 59.
    So there are 12*59=720 possible situations.
    Why not prebuilt all the possible situations in 10 string[]?
    720 is not a big number.
    And I think use more memory for more efficient code is nice.

    Plz show me if I was wrong.


Log in to reply
 

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