摘要: 原题地址:https://oj.leetcode.com/problems/recover-binary-search-tree/题意:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree... 阅读全文
posted @ 2014-05-22 22:20 南郭子綦 阅读(3446) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/binary-tree-maximum-path-sum/题意:Given a binary tree, find the maximum path sum.The path may start and end at any... 阅读全文
posted @ 2014-05-22 14:43 南郭子綦 阅读(3726) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/题意:Follow up for problem "Populating Next Right Pointers in Each ... 阅读全文
posted @ 2014-05-22 12:20 南郭子綦 阅读(1896) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/populating-next-right-pointers-in-each-node/题意: 1 / \ 2 3 / \ / \ 4 5 6 7变为: ... 阅读全文
posted @ 2014-05-22 10:52 南郭子綦 阅读(2051) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/copy-list-with-random-pointer/题意:A linked list is given such that each node contains an additional random pointe... 阅读全文
posted @ 2014-05-22 10:37 南郭子綦 阅读(7667) 评论(1) 推荐(0) 编辑