Create a bitarray module that provides a BitArray class, with the following interface: - BitArray(size) - setall(bit) - set(n, bit) - get(n) Where `bit` is `1` or `0`, and `n` is an offset in the BitArray.
Create a bitarray module that provides a BitArray class, with the following interface:
Where
bitis1or0, andnis an offset in the BitArray.