Skip to content

Commit 892d2bd

Browse files
committed
Day22
1 parent 56fa7c5 commit 892d2bd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

leetcode3/최민지/3898.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class Solution:
2+
def findDegrees(self, matrix: list[list[int]]) -> list[int]:
3+
4+
result = []
5+
6+
for i in matrix:
7+
temp = 0
8+
for j in i:
9+
if j == 1:
10+
temp += 1
11+
result.append(temp)
12+
13+
return result
14+

0 commit comments

Comments
 (0)