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.
can y'all explain, is this operator is equialent to concatMap?
This is a low kyu kata so values of input arguments should be printed for failed assertions (or for all assertions).
Sample tests fail with the following error message:
UPD: After some research and tests, I've noticed, that Clang 8 implements strings with a null-terminator in the memory layout. Technically, I dereference not
std::string::end
(which would be UB), but the address in memory, where\0
is located.I unpublished this kata because the initial solution contains the intended solution. The initial solution should be
Other issues
Undefined behavior for strings which end with
a
.Thank you very much for such detailed explanation!
See above
This comment is hidden because it contains spoiler information about the solution
Could you please briefly elobarate on how you came up with this formula?
Me every time I hit "submit"
I may be stupid :P
The name of this theorem in the description is still incorrect. It should be
base2_lead_zero
.Thanks for catching that oversight.
Description:
should be replaced with
Loading more items...