摘要:
题目: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see be 阅读全文
posted @ 2016-10-26 18:32
一只笨笨鸟
阅读(473)
评论(0)
推荐(0)
摘要:
题目: Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 思路:不断取最低位加到先前值得后面,如下: while(x!=0){ res=res*10+x%10; x/ 阅读全文
posted @ 2016-10-26 10:27
一只笨笨鸟
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号