Last active
July 20, 2017 04:58
-
-
Save Amit-Hora/f58d4cb128eaa339a69c8f101587cd70 to your computer and use it in GitHub Desktop.
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
BitSet - By default all the bits are false, 0 , you call set(position) to set that bit in the bit set to true,12 | |
the position starts with one | |
BitSet bits=new BitSet(); | |
bits.set(1) ---> {1} | |
BitSet alloes to grow as needed, allowing us to easily manipulate bits while optimizing space |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment