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.
A bit mathematics is involved, but by inspection/observation is more than enough.
better now.
The goose is not directly an index or element of the array, it is the
ith
person you reach. Try to think in terms ofthe 'ith' person encountered will be the goose.
I think it's a really simple and contrived problem so my explanation is a bit clunky because I'm trying to avoid giving too much away.Think of the elements as if they're are arranged in a circle.
What happens when you reach the last person in the circle? You're back to the start.
So in the example
5
returnsa.name
because you've come full circle. Extrapolate on this to understand the rest of the examples.