摘要:
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element. 阅读全文
摘要:
Implement wildcard pattern matching with support for '?' and '*'.* '?' Matches any single character.* '*' Matches any sequence of characters (includin 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文