bool wordBreak(string s, vector<string>& wordDict) { bool dp[s.size() + 1]; // 建立一個大小為s.size() + 1的陣列,記錄從0到那個位置是否能夠被字典裡的字串組成
確定! 回上一頁