要成为超级兵的小兵
要成为超级兵的小兵
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
要成为超级兵的小兵的博客
纸上得来终觉浅,绝知此事要躬行。
全部文章
(共13篇)
递归+string
class Solution { public: int NumberOf1Between1AndN_Solution(int n) { if(n<=0) return 0; string str=to_string(n); retur...
递归
字符串
logn
2021-03-26
0
510
迭代法+递归法
class Solution { public: TreeNode* Mirror(TreeNode* pRoot) { if(!pRoot) return nullptr; //使用一个stack stack<TreeNode*>...
2021-03-21
0
670
表示数值的字符串,剑指经典解法!!!
/* 参考剑指offer,改动了一些小部分。 数值可以表示为 A[.[B]]e|E[C] 其中A 和C 可以带有正负号,B不能带有符号 A可以没有,B也可以没有,不过在'.'的情况下 在e|E ,B是必须有的,所以这就是在判断str[index]=='.' 和s...
2021-03-19
8
963
首页
上一页
1
2
下一页
末页