leetcode [#8] | GCidea's blog
目录1. 题目2. 解决方案3. 注意事项
题目Implement atoi to convert a string to an integer.
HintCarefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
NotesIt is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather all the input requirements up front.
解决方案12345678910111213141516171819202122232425262728293031323334353637383940import java.util.regex.Matcher;import jav...阅读全文
题目Implement atoi to convert a string to an integer.
HintCarefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
NotesIt is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather all the input requirements up front.
解决方案12345678910111213141516171819202122232425262728293031323334353637383940import java.util.regex.Matcher;import jav...阅读全文