摘要: 原题链接在这里:https://leetcode.com/problems/validate-binary-search-tree/ 题目: Given a binary tree, determine if it is a valid binary search tree (BST). Assum 阅读全文
posted @ 2015-09-10 23:05 Dylan_Java_NYC 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/recover-binary-search-tree/description/ 题目: T Two elements of a binary search tree (BST) are swapped by mistake. 阅读全文
posted @ 2015-09-10 07:04 Dylan_Java_NYC 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/populating-next-right-pointers-in-each-node-ii/ 题目: Given a binary tree Populate each next pointer to point to i 阅读全文
posted @ 2015-09-10 04:52 Dylan_Java_NYC 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ 题目: You are given a perfect binary tree where all leaves are on the 阅读全文
posted @ 2015-09-10 02:48 Dylan_Java_NYC 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/binary-tree-right-side-view/ 题目: Given a binary tree, imagine yourself standing on the right side of it, return 阅读全文
posted @ 2015-09-10 02:16 Dylan_Java_NYC 阅读(265) 评论(0) 推荐(0) 编辑