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.
Yeah, but it was just a coincidence that I had just seen bitwise being explained to me on leetcode in their video solution for this problem.
https://leetcode.com/explore/featured/card/the-leetcode-beginners-guide/692/challenge-problems/4425/
I thought it was pretty cool and looked it up, then I seen it in your solution here on the same day
When writing real code, clarity is the most important rule in practice, beyond doing smart tricks. You do NOT need to use bitwise operations in non-bitwise-based logic. We only did it because we're used to code golfing.
I have just learned about bitwise operators today. I will, like you, start using them in practice.
Well done
I think this is the most clever solution I've seen.
Thank you so much for your explanation and the function explaining it. I tested it and it worked with my assumptions in the way your functions explained. I shall look more into bitwise operations as well.
This comment is hidden because it contains spoiler information about the solution
what is thaat?