摘要:
/* struct RandomListNode { int label; struct RandomListNode *next, *random; RandomListNode(int x) : label(x), next(NULL), random(NULL) { } }; */ class Solution { public: ... 阅读全文
摘要:
//肯定是要用中序遍历。。。可是开始不怎么会弄 //为什么这么菜 /* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) { } }... 阅读全文
摘要:
class Solution { public: int Add(int num1, int num2) { while (num2--) { num1++; } return num1; } }; 阅读全文
摘要:
class Solution { public: int Add(int num1, int num2) { while (num2--) { num1++; } return num1; } }; 阅读全文