摘要: 问题描述 解决方案 cpp class Solution { public: //考虑溢出情况 int myAtoi(string str) { long long int lli=atoll(str.c_str()); if(lli 0&&lli INT_MAX) lli=INT_MAX; if( 阅读全文
posted @ 2016-08-22 23:50 弦断 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-22 23:15 弦断 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 阅读全文
posted @ 2016-08-22 14:16 弦断 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 非递归方式 递归方式 阅读全文
posted @ 2016-08-22 14:06 弦断 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 cpp class Solution { public: bool isPowerOfThree(int n) { if(n 阅读全文
posted @ 2016-08-22 10:21 弦断 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 问题描述 解决方案 位运算 bitset 阅读全文
posted @ 2016-08-22 10:02 弦断 阅读(105) 评论(0) 推荐(0) 编辑