- I finished up all the important binary questions on leetcode. Most of them were difficulty easy, but I'm still proud of myself.
- Binary is pretty hard honestly, if you're out of practice. One thing I did learn is that xor is usedddd soo much in leetcode to solve problems, its so versatile.
- Definetely drawing things out and solving them by fiddling around and trying to reason is the way to go about these problems. Bits can get pretty hard, and almost impossible at times. The great thing is that there isn't many operations you can really do with bits. Masking, setting, toggling, anding, oring, xoring, testing the Kth bit. Just using a combination of these tools is how we solve it.
No comments:
Post a Comment