摘要: /* struct RandomListNode { int label; struct RandomListNode *next, *random; RandomListNode(int x) : label(x), next(NULL), random(NULL) { } }; */ class Solution { public: ... 阅读全文
posted @ 2017-08-05 23:09 双马尾是老公的方向盘 阅读(131) 评论(0) 推荐(0) 编辑
摘要: //肯定是要用中序遍历。。。可是开始不怎么会弄 //为什么这么菜 /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }... 阅读全文
posted @ 2017-08-05 22:05 双马尾是老公的方向盘 阅读(115) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int Add(int num1, int num2) { while (num2--) { num1++; } return num1; } }; 阅读全文
posted @ 2017-08-05 01:07 双马尾是老公的方向盘 阅读(220) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int Add(int num1, int num2) { while (num2--) { num1++; } return num1; } }; 阅读全文
posted @ 2017-08-05 01:05 双马尾是老公的方向盘 阅读(101) 评论(0) 推荐(0) 编辑