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.
Great minds think alike ;-)
This comment is hidden because it contains spoiler information about the solution
Me: create variables, use for loop, if else ... My opponent with his single code line:
This comment is hidden because it contains spoiler information about the solution
Why not?
This comment is hidden because it contains spoiler information about the solution
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
Loading more items...