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.
This comment is hidden because it contains spoiler information about the solution
Why not?
Why &1 ?
I think he definitely did it cause it was fancier lol. There's no need to do it
That's really smart.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Someone more experimented may correct me or give more precision, but I understood that using bitwise operators was generally way more efficient. Though in a kata like this one it probably makes no significant difference. From now I generally try to use prioritarily them when they are appropriated.
Did you use '&' rather than '%' just because it's fancier? Or is there another reason?
This comment is hidden because it contains spoiler information about the solution
https://www.geeksforgeeks.org/bitwise-operators-in-c-cpp/
This comment is hidden because it contains spoiler information about the solution
you could have used greater() in sort function to sort in decending order.
This comment is hidden because it contains spoiler information about the solution
Nice Implementation..got to understand new concepts!
Loading more items...