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 79aceae commit d5d97f4Copy full SHA for d5d97f4
matrix/transitive_closure.py
@@ -1,4 +1,4 @@
1
-def transitive_closure(graph) -> list[list[int]]:
+def transitive_closure(graph: list[list[int]]) -> list[list[int]]:
2
"""
3
Computes the transitive closure of a directed graph using the Floyd-Warshall algorithm.
4
0 commit comments