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.
devagya, please use spoiler flag next time.
It can be, but plenty of compilers will optimize a divide-by-two into a shift anyway. (Specifically any divide-by-power-of-two can be turned into a single shift)
Yes, bit operating is faster
This comment is hidden because it contains spoiler information about the solution
Te la has jugado con out[1]. malloc no pone a 0 los valores de la memoria adquirida.
I like the bitwise operation to double the number used in the subtraction and the use of the counter to increase your second value in the array to count the steps. Very cleaver. Im still very new to programing.
OMG, this is too hard to understand. Where's the comments? The var names don't give any info.