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 is genius
The problem description is NOT totally correct. it's not how many rats died. We have a total of 10 rats. That's it. These rats are put on position numbered from 0 to 9, so total 10 rats.
1000 bottles of wine are also numbered from 0 to 999. Then each bottle of wine is polled into the glasses in front of the rats according to the binary representation of the bottle number, that is: if the bottle number has bit 1 for position i (0<=i<=9), then poll wine into the glass of that position.
The numbers we received should be the position number of the rats.
This comment is hidden because it contains spoiler information about the solution
Any concrete suggestions?
I should be careful, so sorry for my mistake!
This comment is hidden because it contains spoiler information about the solution
What? I just find an error in the original code and report it. People who did't pass the kata won't see the post and my comment. Did I miss anything?
Spoiler flag!
This comment is hidden because it contains spoiler information about the solution
The description needs to be improved, people feels hard to understand the setting and your notation... I major is math so that is not with me, but I think others may suffer.
Now I know why creator feels upset to
cheating
LOLYou did it right so far, keep going. Maybe you should play with acos more.
I think it will save time, since we only need to evaluate
Counter(word)
once.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...