leetcode

8. String to Integer (atoi)

Solution code

Time complexity: O(n)

Space complexity: O(1)

Runtime 3 ms
Beats 17.79%

Memory 39.56 MB
Beats 100.00%