Interview Algorithms: Difference between revisions

Line 76: Line 76:
</pre>
</pre>
which zeros the least significant set bit.
which zeros the least significant set bit.
E.g. this can be used to count the number of set bits.


==Tricks==
==Tricks==