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.
In bit-wise operations, we start off from the end (right) of bits, not from the start (left). Also, it is not moving the bits, but flipping the bits.
Approved
approved.
python new test framework
Rust translation
The description says that you need to find the number of bits to convert the number
But immediately describes that you can move the bits, then the description conflicts with itself
We must remove the bits after indices 0, 4 and insert new ones in their place, then the required number of bits is really two, but if we move the bits between each other, their number will remain the same
Further in tests with numbers 7 and 17 we get
'111' and '10001' where answer 3 is not entirely correct. Only the first bit matches, the rest must be replaced, and then the answer should be 4
That matrix is part of the test suit. Not relevant for the solution.
a and b are nodes, so yes, that's all you need to find the path (or not).
how is suppossed to have access to the matrix of connections? with just 'a' and 'b' should we get the result?
see issue above, please.
Approved.
Java translation
rewrote the description
the graphs are directed. going from
A
toB
is not the same as going fromB
toA
all done except big cyclic graphs
Loading more items...