Solution 1: accepted
A primitive solution that manipulates Strings. Spent 7 ms and beats 9.5%.
|
|
Solution 2: accepted
Improved based on the first one, it now beats 14.9%.
|
|
Solution 3: accepted
Manipulate numbers are more efficient than manipulating Strings. Now we have 85%.
|
|