Is there any memory efficient method to store 10^9 bool values?
im getting runtime error when using that
there’s no way to store 10^9 arbitrary (variable) bits in less than 10^9 bits. I can imagine some compression strategies but don’t know if that what you are looking for
Watch Errichto’s video on bitsets.