2016年5月12日

Search Insert Position

摘要: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or 阅读全文

posted @ 2016-05-12 22:46 Sheryl Wang 阅读(115) 评论(0) 推荐(0) 编辑

Validate Binary Search Tree

摘要: 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-05-12 10:36 Sheryl Wang 阅读(153) 评论(0) 推荐(0) 编辑

导航