Skip to content

Instantly share code, notes, and snippets.

View Rahulmahawar51's full-sized avatar

Rahul Mahawar Rahulmahawar51

View GitHub Profile
@Rahulmahawar51
Rahulmahawar51 / BitsMagic.py
Last active March 22, 2021 03:53
Bit wise operators in Python
'''
Bitwise Operators in Python and some of the famous problems solved using bits operations.
Operator Description Syntax
------------------------------------------
& Bitwise AND x & y
| Bitwise OR x | y
^ Bitwise XOR x ^ y
~ Bitwise NOT ~x
>> Bitwise right shift x>>