This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
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>> |