Test cases
|
|
Solution 1: accepted
Basicly hard code, not wise at all.
|
|
Solution 2: accepted 41ms, 54%
Concise and fast. A smart way to detect overflow.
|
|
Solution 3: accepted 36ms 92%
Even more concise and faster! Jump out of the “box”!
|
|
|
|
Basicly hard code, not wise at all.
|
|
Concise and fast. A smart way to detect overflow.
|
|
Even more concise and faster! Jump out of the “box”!
|
|