摘要:
官方动态规划解决最长回文串问题代码解释: class Solution: def longestPalindrome(self, s: str) -> str: n = len(s) #字符串的总长度 if n < 2: return s #如果字符串长度为1,则s本身就是最长回文串 max_len 阅读全文
摘要:
错误: 一.TypeError:object of type 'NoneType' has no len() list=[] i=0 j=0 while len(list)<=len(nums1)+len(nums2): 报错:TypeError:object of type 'NoneType' 阅读全文