2022年8月15日

LeetCode54 螺旋矩阵

摘要: LeetCode54 螺旋矩阵 class Solution: def spiralOrder(self, matrix: List[List[int]]) -> List[int]: m, n = len(matrix), len(matrix[0]) l, r, t, b, cnt, tar, 阅读全文

posted @ 2022-08-15 11:06 solvit 阅读(19) 评论(0) 推荐(0)

LeetCode912 排序数组(手撕快排)

摘要: LeetCode912 排序数组 class Solution: def sortArray(self, nums: List[int]) -> List[int]: import random def partition(l: int, r: int) -> int: random_p = ran 阅读全文

posted @ 2022-08-15 10:10 solvit 阅读(45) 评论(0) 推荐(0)

导航