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.
Sets are unique elemets [1,2,2,2,2,3,4] in a set would be [1,2,3,4] so you can not count set occurances, I mean you could but it would be pointless as they will always be 1 ocurrance of an item :) I see where your thinking was going though
1as4hJUwhlDvqWOjC6APkibN5,
No, it's not. The complexity is still O(N²).
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm not certain what the original author intended which is why I state it as a question. I do feel that it should either this point should be clear in the description or that the tests need to be rebuilt.
Tried stating this as an issue yesterday, but it was marked resolved. I was expecting it to return the same color each time it's referenced, but my implementation that didn't do that worked.
Something that I am confused about from looking at some of the highly marked solution in the ruby code. Should the color of the ghost be static after initialization or can one instance of ghost return a different color each time it is referenced?
Schrodinger's Ghost.
lol, that is actually the only unit test I used, and my answer is 2. I think both opinion makes sense.
This works depending on the parameters of the problem:
Should the following function return 1 or 2?
solution('bbb','bb')