2016年10月13日

LeetCode: permutation, combination

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-10-13 10:35 gaoxingxing 阅读(5) 评论(0) 推荐(0) 编辑

2016年10月11日

LeetCode[DP] house robber

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-10-11 07:47 gaoxingxing 阅读(1) 评论(0) 推荐(0) 编辑

2016年10月7日

c++ tips

摘要: c++ - std::include //if subset std::include(collection1.begin(), collection1.end(), collection2.begin(), collection2.end()} => if collection2 is a sub 阅读全文

posted @ 2016-10-07 03:43 gaoxingxing 阅读(81) 评论(0) 推荐(0) 编辑

2016年10月3日

LeetCode(list): list cycle, rotate arr/list, palindrom list, arr/list intersection,

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-10-03 07:49 gaoxingxing 阅读(3) 评论(0) 推荐(0) 编辑

LeetCode(Tree 1): tree depth, tree pre/in/post/level/vertical/zigzag order

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-10-03 06:55 gaoxingxing 阅读(9) 评论(0) 推荐(0) 编辑

2016年9月12日

LeetCode: missing num, count of 1s, roman to/from integer, decode ways, reverse integer

摘要: Missing Number [Problem] [Solution2] sum: Time~O(n) Space~O(1) //overflow riskmissing = expected_sum - actual_sum = (0+n)(n+1)/2 - sum [Solution1] xor 阅读全文

posted @ 2016-09-12 05:27 gaoxingxing 阅读(204) 评论(0) 推荐(0) 编辑

2016年9月9日

LeetCode: Design twitter

摘要: Design Twitter [Problem] [Solution]- define struct User: "set<uid> followees", "vector<pair<postTime, tid>> tweets"- twitter: "map<uid, user> users"- 阅读全文

posted @ 2016-09-09 23:19 gaoxingxing 阅读(140) 评论(0) 推荐(0) 编辑

2016年8月18日

LeetCode: search 2D Matrix, kth min/max, sliding win max, gray code, zigzag conversion, tic-tac-toe

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-08-18 22:15 gaoxingxing 阅读(16) 评论(0) 推荐(0) 编辑

2016年8月7日

LeetCode(Tree 2): (de)serialize Tree, tree right view, symmetric tree, path sum, simplify path,inorder BST iterator/succesor,inorder+postorder to BT, flatten BT to list, closest in BST, largest BST

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-08-07 11:03 gaoxingxing 阅读(31) 评论(0) 推荐(0) 编辑

2016年7月31日

LeetCode: count prime, product of arr except self, water container, excel column title/num, compare version

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2016-07-31 14:14 gaoxingxing 阅读(11) 评论(0) 推荐(0) 编辑

导航