摘要: 题目描述: 方法一:动态规划 O(n2) ->O(mn) m为字典中单词最大长度 class Solution: def respace(self, dictionary: List[str], sentence: str) -> int: d = {}.fromkeys(dictionary) n 阅读全文
posted @ 2020-07-10 08:51 oldby 阅读(121) 评论(0) 推荐(0) 编辑