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.
Seems like a Clang thing for C++17 and up (which is what Codewars uses). On Compiler Explorer, both GCC and MSVC compile without issue (and Clang C++14 ironically). For whatever reason, Clang seems unable to see the size of your array at compile time(?) No idea why that is. But if you are explicit with it, that should solve it.
Is there a point of the last two lines?
This comment is hidden because it contains spoiler information about the solution
you don't need integer_sequence at all, also, lambdas might be useful for this...
This comment is hidden because it contains spoiler information about the solution
I haven't tried this yet, and I hardly even use C++, but this series is such a cool concept I think I'd really like to try it.
And more to the point, this is exactly what doing "kata" should be about, at least in the traditional Japanese sense—repetitive application of difficult procedures with the aim of achieving mastery. Bravo!
This comment is hidden because it contains spoiler information about the solution
Sorry, I should read the problem description more carefully。=_=||
What do you think is the difference between a recursive function with a correct base case, and an incorrect base case?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
And this
This comment is hidden because it contains spoiler information about the solution
Take this!
Loading more items...