Interview Algorithms: Difference between revisions

No edit summary
Line 87: Line 87:
}}
}}


==Bit tricks==
==Tricks==
===Bit tricks===
 
See https://www.geeksforgeeks.org/bit-tricks-competitive-programming/
See https://www.geeksforgeeks.org/bit-tricks-competitive-programming/


Line 99: Line 101:
E.g. this can be used to count the number of set bits.
E.g. this can be used to count the number of set bits.


==Tricks==
===Bitmask===
===Bitmask===