Skip to content

Commit 1f36161

Browse files
authored
Create 3898. Find the Degree of Each Vertex.py
1 parent 3f8e598 commit 1f36161

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
3+
'''
4+
1. 아이디어 :
5+
-
6+
7+
2. 시간복잡도 :
8+
O(n)
9+
10+
3. 자료구조/알고리즘 :
11+
-
12+
13+
'''
14+
15+
class Solution:
16+
def findDegrees(self, matrix: list[list[int]]) -> list[int]:
17+
return [sum(m) for m in matrix]

0 commit comments

Comments
 (0)