摘要: 单词拆分 题目链接:139. 单词拆分 - 力扣(LeetCode) 思路:竟然真能转化为背包问题。 class Solution { public: bool wordBreak(string s, vector<string>& wordDict) { unordered_set<string> 阅读全文
posted @ 2024-03-14 20:20 SandaiYoung 阅读(4) 评论(0) 推荐(0) 编辑