matrix
feeeeeeet
这个作者很懒,什么都没留下…
展开
-
Leetcode 48. Rotate Image
Fold along the middle line and then fold along the diagonal line. 1 2 3 \space \space \space \space 3 2 1 \space \space ...原创 2018-12-05 23:21:09 · 85 阅读 · 0 评论 -
Leetcode 54 & 59. Spiral Matrix I & II
Spiral Matrix I class Solution: def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ if len(matrix) == 0: retu...原创 2018-12-12 07:08:58 · 99 阅读 · 0 评论 -
Leetcode 73. Set Matrix Zeroes
class Solution: def setZeroes(self, matrix): """ :type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead. """原创 2018-12-29 00:38:17 · 71 阅读 · 0 评论