Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
x := make([]uint64, (n+63)/64)
x := make([]bool, n)
let x = new Buffer (Math.ceil (n / 8))
(let ((x (make-array n :element-type 'bit))))
$x = new BitSet($n);
procedure Task;
var
x: Set Of Byte;
begin
x:= [2,4,8,16,32,64,256];
end;
vec($x, $n, 1) = 0;
class BitSet:
def __init__(self, n):
self.a = [False] * n
def __getitem__(self, i):
return self.a[i]
def __setitem__(self, k, v):
self.a[k] = v
def __str__(self):
s = ('01'[x] for x in self.a)
return ''.join(s)
x = BitSet(n)
x = 0
let mut x = vec![false; n];