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.
Not Sure if you still need an answer but the problem is that you are declaring your list in the class and never clear it, so on the first test i assume that your programm works but on the second one he is just adding things to the list of the last test and that is what gets you this weird solutions. try it again and write as first line in the singlePermutations method: "list.clear();" so the list is empty when you start a new test. Hope i could help :)
This comment is hidden because it contains spoiler information about the solution