Skip to content

Commit 200678c

Browse files
committed
ci: fix sonarcloud issue
1 parent 282f684 commit 200678c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/alien_dictionary/solution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class Solution:
55
def alien_order(self, words: list[str]) -> str:
66
# Build adjacency list and in-degree count
77
adj: dict[str, set[str]] = {c: set() for word in words for c in word}
8-
in_degree = {c: 0 for c in adj}
8+
in_degree = dict.fromkeys(adj, 0)
99

1010
# Build graph by comparing adjacent words
1111
for i in range(len(words) - 1):

0 commit comments

Comments
 (0)