Skip to content

Commit d3616b8

Browse files
authored
Update find-a-good-subset-of-the-matrix.py
1 parent 4346965 commit d3616b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/find-a-good-subset-of-the-matrix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def goodSubsetofBinaryMatrix(self, grid):
1414
if not mask:
1515
return [i]
1616
for mask2, j in lookup.iteritems():
17-
if mask&mask2 == 0:
17+
if mask2&mask == 0:
1818
return [j, i]
1919
lookup[mask] = i
2020
return []

0 commit comments

Comments
 (0)