Skip to content

Commit 40ff915

Browse files
committed
Additional perf boost for Nim
1 parent af38e6f commit 40ff915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nim.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ proc readPlaces: tuple[nodes: seq[Node], num: int] =
2626

2727
return (nodes, numNodes)
2828

29-
proc getLongestPath(nodes: seq[Node], nodeId: int, visited: var seq[bool]): int =
29+
proc getLongestPath(nodes: seq[Node], nodeId: int, visited: var openarray[bool]): int =
3030
visited[nodeId] = true
3131
for neighbour in nodes[nodeId].neighbours:
3232
if not visited[neighbour.dest]:

0 commit comments

Comments
 (0)