LEETCODE : palindrome-partition(DFS)

  江湖傳說,若是要輸出全部可能的解,每每使用DFS。code 若是要輸出最優解,或者解的數量,每每使用動態規劃DP。blog   class Solution { public: vector<vector<string>> partition(string s) { vector<vector<string>> res; vector<string> c
相關文章
相關標籤/搜索