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.
C++ Translation
Lua translation!
done
the input is an array of bits, so
int
would waste memory.bool
would have been a better fit for this precise kata, yes, butunsigned char
is the standard datatype for working with binary data (because it is byte-sized and because it avoids the usual caveats of bitwise operators with signed numbers)Merged
Java: random tests are susceptible to input mutation
fixed here along with better assertion messages and an upgrade to JUnit 5
OP was mutating the input array and returning it; raising a more precise issue
This comment is hidden because it contains spoiler information about the solution
did the same, so neat!
Oh, indeed, input is string, not list :)
who can explain me this
This comment has been deleted.
The
sympy
module is not among the external packages available on Codewars, you'll need to simplify the equalities manually, closingno evidence given, closing
That's very clever, congrats!
Loading more items...