07 2016 档案

摘要:题目: Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: All root-to-leaf paths are: 链接: http://leetcode. 阅读全文
posted @ 2016-07-15 11:44 panini 阅读(170) 评论(0) 推荐(0)
摘要:题目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikip 阅读全文
posted @ 2016-07-05 07:22 panini 阅读(163) 评论(0) 推荐(0)
摘要:题目: Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 链接: http://leetcode.com/problems/invert-binary-tre 阅读全文
posted @ 2016-07-05 06:53 panini 阅读(147) 评论(0) 推荐(0)