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 comment is hidden because it contains spoiler information about the solution
Then it would be the opposite.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The only portable solution which I see is to implement your own version of
std::stoull
foruint64_t
. But in most practical cases, it is enough to add a static assertion:static_assert(sizeof(uint64_t) <= sizeof(unsigned long long))
.so what is ideal to use instead of std::stoull since u said it's not ideal
std::stoi
returnsint
but the required return type isuint64_t
.std::stoull
is also not ideal because it could happen thatsizeof(uint64_t) != sizeof(unsigned long long)
. But it works on Codewars.Why did you use
std::stoull
instead ofstd::stoi
?Why your solution with recursion is twice faster than with linq query?
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
I'm not sure what you mean...
This comment is hidden because it contains spoiler information about the solution
Why this solution so slow?
Loading more items...