摘要: 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 @ 2015-09-04 21:21 linqiaozhou 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.cnblogs.com/alex4814/archive/2011/09/12/2174173.html當題目涉及到求最大最小值時,最初的比較數字就應當設置爲INT_MAX或INT_MIN,更爲安全。中有INT_MAX和INT_MIN的宏定義可直接使用。或者自行定義宏#de... 阅读全文
posted @ 2015-09-04 20:57 linqiaozhou 阅读(7724) 评论(0) 推荐(0) 编辑