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.
cool
Yes. bitwise-or of the modulo(remainder). It is only zero if both modulos are zero.
When using it on bools you have to be a bit careful, as (1 | 2) is 0011, and that is stored in boolean. true is 0001, so while (1 | 2) evalutes to true, it's not equal to true in some way. Here it's fine, but be aware. Negating with ! (boolean not) "normalizes" it to 0000 or 0001 though. ~ would be the bitwise not.
bitwise-or may be faster as it does not branch (both sides are always evaluated), as opposed to boolean or. But don't rely on that.
is this the bitwise OR operator?
nice man good job ?? !!
Approved
python new test framework is required. updated in this fork
the error is still there
This comment is hidden because it contains spoiler information about the solution
Approved
python new test framework is required. updated in this fork
it's really clever but indentation is not very good.
nice coding
You can just print the input: random testing reaches up to
n = 100,000
I am running in a timeout when submitting my solution. I tested it for a limit of 1500 without running in a timeout.
Which is the highest number use in the tests?
Thx
there is a difference between a person trying to solve a 7kyu, i guess, it is not at all a 7 kyu at least needs to be 5 kyu. of course for "dan's" it might be a single line, but the complexity level should be set according to a person most likely to solve it i.e. a newbee.
Loading more items...