949. Largest Time for Given Digits

still need this , when [2,0, 6, 6], the first one cant get right ans, should consider another case start from 1

time: O(8*4) = O(32) = O(1), worst time

space: O(1)

Last updated

Was this helpful?