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
fixed
The kata is really good, thanks!
Great kata, thanks!
An example of terrible implementation of a classic exercise.
It's a terrible idea to require an exact sequence of elements as a result. Why didn't you implement sorting of results before comparison?
What is the reason for returning [[]] when k > len(indices). In such case there are no permutations which can be produced, so the result should be an empty list of permutations.
I cannot pass your random tests for a reason that I don't know your EXACT algorithm. For this reason the order of combinations in the resulting list is different in my solution and your solution. Why wouldn't you implement simple sorting of the solutions to accept the results of different but correct algorithms?