![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer
jingqiulyue
迭代升级中
展开
-
49.把字符串转换成整数
class Solution { public: int StrToInt(string str) { int len = str.size(); if(len == 0||str.empty()) return 0; int sum =0; char zero = 0+'0'; char nine = 9+'...原创 2018-08-13 09:03:10 · 131 阅读 · 0 评论 -
59.按之字形打印二叉树
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }; */ class Solution { public: ve...原创 2018-08-13 12:54:59 · 256 阅读 · 0 评论