上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 46 下一页
摘要: class Solution {public: int reverse(int x) { bool neg = x = 0; 8 while (x) { 9 int d = x % 10;10 if (positiv... 阅读全文
posted @ 2014-06-24 14:34 卖程序的小歪 阅读(150) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(... 阅读全文
posted @ 2014-06-24 14:27 卖程序的小歪 阅读(174) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(... 阅读全文
posted @ 2014-06-24 14:19 卖程序的小歪 阅读(124) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int threeSumClosest(vector &num, int target) { int len = num.size(); if (len target) { q-... 阅读全文
posted @ 2014-06-24 11:07 卖程序的小歪 阅读(122) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *... 阅读全文
posted @ 2014-06-24 10:36 卖程序的小歪 阅读(130) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int maxProfit(vector &prices) { int len = prices.size(); if (len &prices) { int len = prices.size(); ... 阅读全文
posted @ 2014-06-24 02:19 卖程序的小歪 阅读(154) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(... 阅读全文
posted @ 2014-06-23 21:58 卖程序的小歪 阅读(178) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(... 阅读全文
posted @ 2014-06-23 21:39 卖程序的小歪 阅读(114) 评论(0) 推荐(0) 编辑
摘要: /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *... 阅读全文
posted @ 2014-06-20 19:05 卖程序的小歪 阅读(155) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int searchInsert(int A[], int n, int target) { if (A == NULL || n target) { q = mi; } els... 阅读全文
posted @ 2014-06-20 16:19 卖程序的小歪 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 46 下一页