Skip to content

Files

Latest commit

Jul 15, 2019
ee29737 · Jul 15, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 15, 2019
Jul 15, 2019

Implement a bit array.

A bit array is a space efficient array that holds a value of 1 or 0 at each index.

  • init(size): initialize the array with size
  • set(i, val): updates index at i with val where val is either 1 or 0.
  • get(i): gets the value at index i.