Bit manipulation cheat sheet | Python
Why bit manipulation? ๐ญ
Bit manipulation introduces low-level control and speeds up code execution, thus improving performance.
Cheatsheet | python ๐
# =================
print(~13 & 1) # op: 0, odd num
print(~12 & 1) # op: 1, even num
# ======...
akshayrr.hashnode.dev1 min read