摘要: Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element. 阅读全文
posted @ 2018-09-03 13:24 jasminemzy 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Implement wildcard pattern matching with support for '?' and '*'.* '?' Matches any single character.* '*' Matches any sequence of characters (includin 阅读全文
posted @ 2018-09-03 10:38 jasminemzy 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po 阅读全文
posted @ 2018-09-03 07:42 jasminemzy 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target. Example Given root = {1}, target = 0 阅读全文
posted @ 2018-09-03 04:16 jasminemzy 阅读(298) 评论(0) 推荐(0) 编辑