Skip to content

Instantly share code, notes, and snippets.

@Amit-Hora
Last active July 20, 2017 04:58
Show Gist options
  • Save Amit-Hora/f58d4cb128eaa339a69c8f101587cd70 to your computer and use it in GitHub Desktop.
Save Amit-Hora/f58d4cb128eaa339a69c8f101587cd70 to your computer and use it in GitHub Desktop.
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