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 5bbee8c commit b6bedd4Copy full SHA for b6bedd4
10/9.cpp
@@ -32,7 +32,6 @@ void topologySort() {
32
// 큐에서 원소 꺼내기
33
int now = q.front();
34
q.pop();
35
- result.push_back(now);
36
// 해당 원소와 연결된 노드들의 진입차수에서 1 빼기
37
for (int i = 0; i < graph[now].size(); i++) {
38
result[graph[now][i]] = max(result[graph[now][i]], result[now] + times[graph[now][i]]);
0 commit comments