2360. Longest Cycle in a Graph - Solutions and Explanation | Vultr Docs