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.
Did the author mean m < n?
Where is the 48 coming from? I don't get the solution.
True. Thank you
but, one of the tests is
test.assert_equals(xor_reduction(1, 1), 1)
withm=n
that works!
Thank you for the feedback. Done.
This comment is hidden because it contains spoiler information about the solution
why wouldn't that be a duplicate, this time?oh, 'just saw the difference, ok.
You're welcome, sorry it didn't work out. The difference would be minimal in that the lower bound simply isn't
0
anymore, so while it's not an exact duplicate, it's too close. Regardless, always check for duplicates as rigorously as possible, trying many different names.Thank you!
I didn't find it when I searched for similar katas.
I've also made a similar one (not published yet) where you're given two ints and have to xor all ints between them, is it a duplicate as well?
Duplicate.