External links
Find the longest cycle in a grid of arrows.
No surprises in this implementation. Use a set so that we visit each node at most once. Check for a cycle when attempting to visit an already-visited node.
https://www.reddit.com/r/dailyprogrammer/comments/2m82yz
arrows
Tue, 15 Jul 2025 12:04:35 GMT