摘要:
暴力= =枚举断开位置...据说可以dp,等下试试class Solution {public: bool isPal(const string& s , int start , int end){ end --; while(start > &ans , vector& path , int prev , int end){ if(end >= s.size()){ if(isPal(s , prev , end)){ path.push_back(s.substr(prev , end-p... 阅读全文
posted @ 2013-12-30 20:27 1957 阅读(142) 评论(0) 推荐(0) 编辑