Skip to content

Commit 2a0ac7e

Browse files
committed
Runtime: 44 ms (Top 81.42%) | Memory: 99.3 MB (Top 65.13%)
1 parent 602e280 commit 2a0ac7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/L/Longest Cycle in a Graph/Longest Cycle in a Graph.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 44 ms (Top 81.42%) | Memory: 99.3 MB (Top 65.13%)
12
class Solution {
23
public int longestCycle(int[] edges) {
34
int[] map = new int[edges.length];
@@ -22,4 +23,4 @@ int helper(int index, int total, int[] edges, int[] map) {
2223

2324
return result;
2425
}
25-
}
26+
}

0 commit comments

Comments
 (0)