摘要: 搞暴力算法也能搞出来,而且不大困难,这个题最主要的问题是第一次接触了动态规划的东西,具有一定的历史意义。下面先贴暴力代码 class Solution { public: string longestPalindrome(string s) { int n = s.length(); int i = 阅读全文
posted @ 2021-03-02 19:57 zhaohhhh 阅读(62) 评论(0) 推荐(0)