Re: [闲聊] 每日leetcode

楼主: sixB (6B)   2024-05-23 04:11:22
131. 怕拎奘 切切切
超讨厌回文==写起来超不奘的
写出来都看起来超笨超慢超级烧空间
我的问题:(
class Solution {
public:
vector<vector<string>> partition(string s) {
vector<vector<string>> res;
cut(s, res, {});
return res;
}
bool isPa(string& s){
for(int i = 0, j = s.length() -1; i < j; i++, j
楼主: sixB (6B)   2024-05-23 04:12:00
原本想说能不能dp 可是我想不出来 感觉就会影响到dp先记是不是回文 好

Links booklink

Contact Us: admin [ a t ] ucptt.com