摘要:
class Solution { public: int myAtoi(string str) { if (str.empty()) return 0; int sign = 1, base = 0, i = 0, n = str.size(); while (i = '0' && str[i] INT_MAX / 10 || (base... 阅读全文
posted @ 2017-12-03 21:08
PirateLHX
阅读(165)
评论(0)
推荐(0)
摘要:
class Solution { public: int reverse(int x) { long long res = 0; while (x != 0) { res = 10 * res + x % 10; x /= 10; } return (res > INT_MAX... 阅读全文
posted @ 2017-12-03 20:22
PirateLHX
阅读(119)
评论(0)
推荐(0)
摘要:
class Solution { public: string convert(string s, int numRows) { if(numRows==1) return s; else { int len=s.size(); int count=0; ... 阅读全文
posted @ 2017-12-03 19:53
PirateLHX
阅读(131)
评论(0)
推荐(0)

浙公网安备 33010602011771号