摘要:
难题 1 class Solution { 2 public: 3 void dfs(string s, vector &tmp, vector &res, unordered_set &unused, unordered_set &dict) { 4 if (s.size(... 阅读全文
摘要:
看的别人的代码改了下 1 class Solution { 2 public: 3 bool wordBreak(string s, unordered_set &dict) { 4 vector f(s.size()+1); 5 f[0] = true; 6... 阅读全文