We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4346965 commit d3616b8Copy full SHA for d3616b8
Python/find-a-good-subset-of-the-matrix.py
@@ -14,7 +14,7 @@ def goodSubsetofBinaryMatrix(self, grid):
14
if not mask:
15
return [i]
16
for mask2, j in lookup.iteritems():
17
- if mask&mask2 == 0:
+ if mask2&mask == 0:
18
return [j, i]
19
lookup[mask] = i
20
return []
0 commit comments