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.
Thanks!
Jperm was great, but I can't say I prefer one over the other. If only people could exist as two beings at the same time...
I just removed the entire Performance section. Looking at it now, 4 months later, it doesn't really say much; the test specifications should be enough for the users to draw their own conclusions.
To be honest, I was originally trying to timeout solutions like yours, but I think
80%
of the time is spent creating the tests, so it's kind of hard to properly time the solutions. I guess this isn't, and it doesn't really need to be a performance kata.Also, I'm glad you liked the kata :)
For non-english speakers, it's just a bunch of latin letters.
It's cool to read programs as plain text, though.
Hi,
Thank you for approving my 2-year-old kata:) I just got informed my an email XD.
Also thanks for letting me remember the Codewars website.
poetic, though
Duplicate issue.
This comment is hidden because it contains spoiler information about the solution
no
Cool, thank you!
Cause it that was the case, the answer would be
(1 << n.bit_length()) - 1
, which is too easy for6 kyu
, lol.Because we're not looking for
1 | 2 | 3 | ... | (n-1) | n
.The problem wants you to calculate
(n | 1) + (n | 2) + (n | 3) + ... + (n | (n-1)) + (n | n)
I guess you could've reduced my comment to one line then, lol. I'm impressed at how much of a difference that single line made. I knew it was bad, just not that bad.
Anyway, I'm glad you understand now. Even if a fully optimised solution wasn't necessary, and it shouldn't be, that would be insanely annoying.
I don't ;)
This comment is hidden because it contains spoiler information about the solution
Loading more items...