Bitset In Python

Revision en1, by i_love_emilia_clarke, 2015-10-28 21:59:20

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?

Tags python, sieve, optimization

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English i_love_emilia_clarke 2015-10-28 21:59:20 266 Initial revision (published)