[LeetCode] Wildcard Matching, Solution

摘要: Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th... 阅读全文
posted @ 2013-01-13 14:43 小刀初试 阅读(135) 评论(0) 推荐(0)

[LeetCode] 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 n... 阅读全文
posted @ 2013-01-13 13:42 小刀初试 阅读(255) 评论(0) 推荐(0)