摘要: 最长回文字符串问题 def fun(strs): lens = len(strs) start = 0 # 初始步长 max_len = 0 if strs == strs[::-1]: return strs else: # 不断增加步长,比较回文 # 每次增加步长,循环查找有没有比这个步长更长的 阅读全文
posted @ 2020-09-13 16:19 -Learning- 阅读(10280) 评论(3) 推荐(1) 编辑