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.
Added a special random test for this case, so 1/3 of the solutions got invalid (one of your two solutions too);-)... Thanks for the hint!
Yes, higher... there is hint in the description:
[hint: -2+2=0, but -2&2=-4 i.e. -2&2=-(2&2) and not (-2)&2]
Thanks for your work and solution;-)!
I was only having fun :D Thats why they dont recommend linq and short hand if-else. They make it hard to read and debug.
It was a challenge, not to use the division operation and solve the problem in one pass.