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.
I see. Thanks!
See the comments below, this implementation is correct as far as A is a list of unique integers.
Unique is an important detail. The devil is in the details.
The example you provided doesn't fit this requirement as 3 is not unique...
This may not be a correct implementation. For example: A = [3, 2, 3, 4, 5], a = 3, b = 4.
Using your function would return False, because A.index(3) = 0, A.index(4) = 3
I really wish I had noticed that it said unique integers.