We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b123b4d commit 232e49eCopy full SHA for 232e49e
course-schedule/hi-rachel.py
@@ -1,7 +1,6 @@
1
-from typing import List
2
-from collections import defaultdict
3
-
4
"""
+https://leetcode.com/problems/course-schedule/
+
5
문제: 수강 해야 하는 모든 강좌의 수 numCourses가 주어질 때, 모든 강좌를 끝낼 수 있으면 true, 아니면 false를 반환해라.
6
prerequisites[i] = [ai, bi], bi를 수강하기 위해선 반드시 ai를 사전 수강해야만 한다.
7
@@ -27,6 +26,7 @@
27
26
SC: O(V + E), 그래프 + 진입차수 배열
28
29
+from typing import List
30
from collections import defaultdict, deque
31
32
class Solution:
0 commit comments