Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Fixed.
Why is this an issue? its more of a suggestion.
I think the rules are already self-explanatory. It seems you only got into trouble by imagining other cockroach behaviours (like looking around at the scenery while they are running) which are not part of the rules at all...
It doesn't "see" anything. The cockroach runs in a straight line, hit a wall then turns left until it gets to a hole. That's it. Its little buggy eyes are closed because of the bright lights.
By exactly same Kata rules.
Why?
That cockroach will head RIGHT (as you look at the floor). Then it will hit the right-side wall. Then it will turn left (from the bugs POV) which means it will go into hole #2
There is no such test case. Probably you were mutating the input.
The last 3 pairs aren't consecutive perfect squares. Not a kata issue.
What don't you understand exactly? What would you expect? Please be more specific.
Deleted my comment