2016年11月14日

100. Same Tree (Tree;DFS)

摘要: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an 阅读全文

posted @ 2016-11-14 22:37 joannae 阅读(246) 评论(0) 推荐(0) 编辑

98. Validate Binary Search Tree (Tree; DFS)

摘要: Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows: The left subtree of a node contains only 阅读全文

posted @ 2016-11-14 20:39 joannae 阅读(265) 评论(0) 推荐(0) 编辑

导航