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.
Wouldn't this fail (logic error) if s - y is less than -128 or greater than 127? Because sometimes the needed copmlement is not in the i8 range. So then the indexing would confuse it with another complement value that is inisde the i8 range. If so, it could be fixed by a simple bounds check on x and a continue if it is out of bounds.
Very nice use of iterators!! :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
didn't read that width and height will be > 1 :D
Am i mistaken or does this only check if the number is even and not odd, but does not check if it's a power of two? For example
I guess the test cases only test odd numbers for the False test case and thus the test cases work fine.