โ† Juspay questions

Largest Sum Cycle in a Maze

Filed under Juspay

The question

Given an array representing unidirectional edges in a maze of N cells, calculate the sum of the nodes in the largest sum cycle. Return -1 if no cycle exists.

No write-up yet. Related questions below have one.

Related Juspay questions

Collected from public candidate posts and coding forums. Updated Nov 2026.