MCPcopy Create free account
hub / github.com/HuberTRoy/leetCode / setZeroes

Method setZeroes

Array/SetMatrixZeroes.py:69–80  ·  view source on GitHub ↗

:type matrix: List[List[int]] :rtype: void Do not return anything, modify matrix in-place instead.

(self, matrix)

Source from the content-addressed store, hash-verified

67"""
68class Solution(object):
69 def setZeroes(self, matrix):
70 """
71 :type matrix: List[List[int]]
72 :rtype: void Do not return anything, modify matrix in-place instead.
73 """
74 # x
75 raw_length = len(matrix[0])
76 # y
77 column_length = len(matrix)
78
79 # O(mn) 第一版.
80 # {"12", "23", "34"}
81
82# zero_xy = set()
83

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected