摘要: 问题: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. 官方难度: Easy 翻译: 实现atoi功能,将一个字符串转化成一个整数。 提示:仔细考 阅读全文
posted @ 2016-09-27 23:43 Gerrard_Feng 阅读(272) 评论(0) 推荐(1)
摘要: 问题: Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 官方难度: Easy 翻译: 将一个整数倒转输出。 例子: 整数:123,倒转输出:321。 整数:-123,倒转输 阅读全文
posted @ 2016-09-27 14:02 Gerrard_Feng 阅读(238) 评论(0) 推荐(1)