On a bipartite graph of peaks and valleys, two players alternate choosing an unvisited neighbor and the player who cannot move loses; report the winner for every starting peak.
Medium7Game theoryGraphDynamic programmingDFSNo attempts yetTime limit1sMemory limit256 MB