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.
There are a total of 4 turns required, even though
(2, -1)
lands on a turning point, you do not need to turn on top of that coordinate in order to reach it.Hopefully the image below will make it clear, resolving this.
Thanks a lot!
it is mentioned in the descriptiom, "If there's a tie in the number of pets, choose the user with the smallest ID."
When, in an age group, there are several users owning the same number of pets as the maximum, I do not know how to choose the correct user.
In SQL, the test gives x=2, y=-1, res=4. However, I see 5 turns. Any comment on the test?