摘要: class Solution {public: int divide(int dividend, int divisor) { bool aneg = dividend a || a == 0) return 0; unsigned int abits = 0, ... 阅读全文
posted @ 2014-04-16 21:18 卖程序的小歪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: vector > threeSum(vector &num) { vector > res; int len = num.size(); sort(num.begin(), num.end()); ... 阅读全文
posted @ 2014-04-16 19:49 卖程序的小歪 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 先来一个暴力解:class Solution {public: vector > fourSum(vector &num, int target) { vector > res; vector r; r.resize(4); sort(n... 阅读全文
posted @ 2014-04-16 09:34 卖程序的小歪 阅读(150) 评论(0) 推荐(0) 编辑