"Show me your cycle detection," Kai said.
Her job was to "lock in" the strongest edges of victory to create a directed graph of the winner—without creating a cycle. Cs50 Tideman Solution
Kai nodded slowly. "You are looking for a direct path back to the winner. But what if the path is three steps? Four? Your recursion only goes two levels deep." "Show me your cycle detection," Kai said