Skip to content

Commit 4f08639

Browse files
committed
[20240625] Add daily problem solution
1 parent 3968fb6 commit 4f08639

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

problems/problems_2732/solution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Solution(solution.Solution):
66
def solve(self, test_input=None):
77
return self.goodSubsetofBinaryMatrix(test_input)
88

9+
910
def goodSubsetofBinaryMatrix(self, grid: List[List[int]]) -> List[int]:
1011
mask_to_idx = {}
1112
for i, row in enumerate(grid):
@@ -21,3 +22,4 @@ def goodSubsetofBinaryMatrix(self, grid: List[List[int]]) -> List[int]:
2122
if (x & y) == 0:
2223
return sorted((i, j))
2324
return []
25+

0 commit comments

Comments
 (0)