File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 66## ** Referance:** [ Competetive programming with python] ( https://www.youtube.com/playlist?list=PLS1QulWo1RIZZc0V_a8cEuFFkF5KbGlsf )
77
88------------------------------------------------------------------------------------
9- #### bitwise operator not - ~ : (a = 10 => 1010 (Binary) => ~ a = ~ 1010 = -(1010 + 1) = -(1011) = -11)
10- #### bitwise operator xor - ^ : (n^n = 0), (n^0 = n)
11- #### bitwise operator rightshift - >> : (100 >> 2 = 25)
12- #### bitwise operator leftshift - << : (100 << 2 = 400)
9+ #### bitwise operator not { ~ } : (a = 10 => 1010 (Binary) => ~ a = ~ 1010 = -(1010 + 1) = -(1011) = -11)
10+ #### bitwise operator xor {^} : (n^n = 0), (n^0 = n)
11+ #### bitwise operator rightshift {>>} : (100 >> 2 = 25)
12+ #### bitwise operator leftshift {<<} : (100 << 2 = 400)
1313
1414-------------------------------------------------------------------------------------
1515### Odd-Even: O (1)
You can’t perform that action at this time.
0 commit comments