Solution 1: accepted
|
|
30 to 37~45.62 (15-16ms)
from char[] input = s.toCharArray()
to s.charAt(i)
25 to 30
from char current
to int current
18 to 25:
from after = input[i +1]
to after = current
Doesn’t make difference:
length
charAt / char[]
Solution 2: accepted
|
|