努橙刷题编

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年5月29日

摘要: https://leetcode.com/problems/linked-list-random-node 阅读全文
posted @ 2017-05-29 04:18 努橙 阅读(136) 评论(0) 推荐(0) 编辑

2017年5月27日

摘要: https://leetcode.com/problems/basic-calculator-ii 思路参考:http://www.cnblogs.com/grandyang/p/4601208.html 阅读全文
posted @ 2017-05-27 00:11 努橙 阅读(119) 评论(0) 推荐(0) 编辑

2017年5月26日

摘要: https://leetcode.com/problems/basic-calculator/ 用 stack 存储当前运算符: 也可以用 RPN 做 阅读全文
posted @ 2017-05-26 00:42 努橙 阅读(121) 评论(0) 推荐(0) 编辑

2017年5月25日

摘要: https://leetcode.com/problems/longest-harmonious-subsequence 阅读全文
posted @ 2017-05-25 23:24 努橙 阅读(137) 评论(0) 推荐(0) 编辑

摘要: http://www.lintcode.com/en/problem/graph-valid-tree/ DFS 解法: Union Find 解法: 这道题还可以用 BFS 解。 阅读全文
posted @ 2017-05-25 00:08 努橙 阅读(127) 评论(0) 推荐(0) 编辑

2017年5月23日

摘要: https://leetcode.com/problems/friend-circles 阅读全文
posted @ 2017-05-23 00:32 努橙 阅读(169) 评论(0) 推荐(0) 编辑

2017年5月22日

摘要: https://leetcode.com/problems/surrounded-regions weight union find 解法: 阅读全文
posted @ 2017-05-22 23:52 努橙 阅读(141) 评论(0) 推荐(0) 编辑

摘要: https://leetcode.com/problems/course-schedule 阅读全文
posted @ 2017-05-22 13:38 努橙 阅读(117) 评论(0) 推荐(0) 编辑

2017年5月19日

摘要: https://leetcode.com/problems/freedom-trail/ 阅读全文
posted @ 2017-05-19 11:03 努橙 阅读(195) 评论(0) 推荐(0) 编辑

2017年5月18日

摘要: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note:A solution using O(n) space i 阅读全文
posted @ 2017-05-18 12:24 努橙 阅读(87) 评论(0) 推荐(0) 编辑