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.
This comment is hidden because it contains spoiler information about the solution
can someone please explain the kata? I don't seem to get why the [6, 30, 125 is] is correct answer for the test [(4, True), (5, False), (3, True)] I understand where does 6 and 30 comes from, however, I don't understand why 125? Because in my opinion it should be 180. No?
my code failed in one test, when the uniqe item is right in the beginning or at the end of the array. Have you guys seen it? How to deal with this?
This is how I solved the kata, however I see that others use much more shorter code. Mostly they are returning list comprehension. So my question is about efficiency. Is returning one line list comprehension considered more effective?
xrange() was removed in Python 3, how this code passed the test?