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.
Why is 'flag' a nominal number instead of an ordinal number representing the position of the bit in the data? With ordinal numbers, the input is guaranteed to represent a single bit. If you do allow nominal numbers, why not allow combinations of bits as the flag too? This would make the kata a bit more refreshing.
No, args/return values are normal integers, not "base 10 numbers".
This comment is hidden because it contains spoiler information about the solution
you can republish your kata now
Added more info and explanation. Thanks for the feedback!
Added. :)
You need random tests.
You don't explain whether 'flag' can only be a power of 2, or also any other number.