LeetCode
远洋z
欢迎小伙伴们指教,也希望遇到能共同进步的朋友
展开
-
Reverse-Interger
Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here are some good questions to ask befo原创 2017-09-03 16:08:19 · 191 阅读 · 0 评论 -
LeetCode 109
第27行的代码只能放在那 第31和32行不能互换原创 2017-10-27 14:23:10 · 492 阅读 · 0 评论 -
LeetCode 61
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* rot原创 2017-10-30 21:45:52 · 227 阅读 · 0 评论 -
LeetCode 107
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ clas原创 2017-11-14 08:45:56 · 523 阅读 · 0 评论