Nannew

Results 4 comments of Nannew

same error with "-m 1500" or "-m 1000"

解法三 只用了一个bool 没必要用int ```cpp class Solution { public: string longestPalindrome(string s) { if (s.empty()) { return ""; } int n = s.size(), left = 0, len = 1; bool dp[n][n];...

有点问题 ```c++ if (it != m.end()) l.erase(it->second); ``` 用erase的话其实就O(N)了 还是应该用splice保证是O(1) 然后不在另外插入直接返回 ```c++ if (it != m.end()) { it->second->second = value; return l.splice(l.begin(), l, it->second); } ```