摘要:
https://leetcode.com/problems/linked-list-random-node 阅读全文
摘要:
https://leetcode.com/problems/basic-calculator-ii 思路参考:http://www.cnblogs.com/grandyang/p/4601208.html 阅读全文
摘要:
https://leetcode.com/problems/basic-calculator/ 用 stack 存储当前运算符: 也可以用 RPN 做 阅读全文
摘要:
https://leetcode.com/problems/longest-harmonious-subsequence 阅读全文
摘要:
http://www.lintcode.com/en/problem/graph-valid-tree/ DFS 解法: Union Find 解法: 这道题还可以用 BFS 解。 阅读全文
摘要:
https://leetcode.com/problems/friend-circles 阅读全文
摘要:
https://leetcode.com/problems/surrounded-regions weight union find 解法: 阅读全文
摘要:
https://leetcode.com/problems/course-schedule 阅读全文
摘要:
https://leetcode.com/problems/freedom-trail/ 阅读全文
摘要:
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 阅读全文