大俗XD_
大俗XD_
全部文章
算法
未归档(1)
自学(10)
问题(2)
归档
标签
去牛客网
登录
/
注册
asd
qwert
全部文章
/ 算法
(共2篇)
【LeetCode】爬楼梯,遇到的问题
发现 阶乘太厉害了 ,这样搞很容易溢出,导致计算出错。 class Solution { public: int climbStairs(int n) { int ret=0; for(int i=0;i<=n/2;i++) { ...
2018-04-16
0
290
【LeeCode】Reverse Integer 总结
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: ...
2017-12-19
0
330