
leetcode
lanse20
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
6. ZigZag Conversion leetcode
//这个可以提交。有问题或者建议可以留言,谢谢! class Solution { public: string convert(string s, int numRows) { string out_s=""; int size_s=s.length(); int step=0;//每个zigzag包含的字符个数 int原创 2017-10-24 21:51:12 · 159 阅读 · 0 评论 -
7. Reverse Integer LeetCode c++
//可以提交。有不足之处请留言,谢谢! class Solution { public: int reverse(int x) { if((x>(1<<31-1))||(x<-(1<<31))) //范围判断 return 0; int out_x=0; int temp_x=abs(x); int原创 2017-10-24 22:44:03 · 197 阅读 · 0 评论 -
8. String to Integer (atoi) LeetCode c++
//已经提交,若有不足之处,请留言,非常感谢!!! //#include //using namespace std; class Solution { public: int myAtoi(string str) { int len_str=str.length(); if(str=="") return INT_MAX;原创 2017-10-25 00:16:10 · 189 阅读 · 0 评论