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.
.
hacked the random tests so that the average will always be an integer
Yeah, this part does not make any logical sense.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@craecke draw(n): remove the last
n
cards from the deck and return them in an array.Are you sure you're talking about this kata (Flexible Card Game) ?
@wthit56 made the JS translation a few weeks ago an you're not in the list of contributors.
:)
I just did the JS version, and I have no idea what you're talking about.
Got it! :P
This is a well done kata. I really like that you provided test cases that could be used prior to making an attempt.
I think the description would be better if you said 'returns the number of bits that are set' rather than 'returns the number of bits that are equal to one in the binary representation of that number.'
While the way you worded it is perfectly clear, I think referring to the bits as being set is more common in coder jargon than bits that equal 1.
I have changed the description.
yes, that should be be fixed before it is approved, otherwise good kata!
This comment is hidden because it contains spoiler information about the solution
All three test-cases are now rotated in all 12 different positions for the test.
I would love a JS version of this.
Loading more items...