摘要: 给定一个字符串,验证它是否是回文串,只考虑字母和数字字符,可以忽略字母的大小写。(第二个不是我写的其他的都两个是我写的) class Solution(object): def isPalindrome1(self, s): """ :type s: str :rtype: bool """ len 阅读全文
posted @ 2021-01-08 18:09 楠海 阅读(61) 评论(0) 推荐(0)
摘要: 给定一个 n × n 的二维矩阵表示一个图像。将图像顺时针旋转 90 度。(这次没有抄,都是我写的) class Solution(object): def rotate1(self, matrix): """ :type matrix: List[List[int]] :rtype: None D 阅读全文
posted @ 2021-01-08 16:18 楠海 阅读(63) 评论(0) 推荐(0)