61u
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Tuesday April 16, 2024 @10:46AM (#40052658)
https://ideone.com/MGFwdo
I am running BFS from only the starting node because the graph is symmetrical.
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Tuesday April 16, 2024 @08:31AM (#40051132)
Just wondering... How do you calculate the minimum number of steps fast enough?
Re:"Here's a puzzle game. I call it Reverse the List of Integers."
on Tuesday April 16, 2024 @08:01AM (#40050919)
You could just run bfs from both starting and ending nodes until you find a node reachable from both the starting and ending nodes.