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.
Arrays are always faster regardless of "complexity" since that only applies to mathematical functions limit to infinity and their growths, which is not how hardware behaves...
For anyone wondering: It is generally advised to return by value instead of moving, as std::move may prevent return value optimization.
You don't say!
This is a really bad idea, this is far from clever.
yea i am a novice and i understand this but takes a while before i know how the top one works
Bro nobody gets it!! it simply works LMAO
what's going on here?
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 agree. It's more just a cool solution instead of the best solution.
This is my incomplete reading of the standard. I don’t write like that anymore, but in old katas such my code will be found.
I see. Thank you! And why 'return std::move(dna)' and not just 'return dna'?
A const is more or less just an int that represents an ascii value.
7097511 takes advantage of that by defining a new alphabet and then getting the corresponding letters.
Each hex character represents a 'nibble', or 4 bits. Shifting 4 bits to the right lets them read the upper nibble of the input, after having done the lower nibble.
I really liked this kata, but it's more a 6kyu, isn't it?
Loading more items...