i_love_emilia_clarke's blog

By i_love_emilia_clarke, history, 9 years ago, In English

Hi Codeforces folks, i was wondering whether python has alternative for Bitset(in C++) to use it as flag in sieve, i thought of using a string but it is immutable, so do we have an alternative for bitset in python or are we compelled to make a list?

| Write comment?
»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You can probably use a bytearray.