Skip to content

Commit 34d618f

Browse files
committed
daily
1 parent 6ac6053 commit 34d618f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

my-submissions/e2965.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution:
2+
def findMissingAndRepeatedValues(self, grid: List[List[int]]) -> List[int]:
3+
cnt = Counter()
4+
for g in grid :
5+
cnt.update(g)
6+
7+
return [[k for k, v in cnt.items() if v == 2][0],
8+
[x for x in range(1, len(grid) ** 2 + 1) if x not in cnt][0]]

0 commit comments

Comments
 (0)