We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I don't understand all the complicated solutions here. There is someone talking about overflow being well defined in C++ for unsigned types, and there happens to be a common 32bit unsigned integer type usually available in unsigned int. So my simple solution which passes all tests seems best.
Bit Array
You are viewing a single comment's thread. Return to all comments →
I don't understand all the complicated solutions here. There is someone talking about overflow being well defined in C++ for unsigned types, and there happens to be a common 32bit unsigned integer type usually available in
unsigned int
. So my simple solution which passes all tests seems best.