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 was kind misled by others because they mentioned bitset. And Yes, i tried to do the binary calcuation for bitseted strings. As a result, I spent too much time. However, it can be calculated simply by comparing to the number of 1s. Here is my result in c++
https://www.hackerrank.com/challenges/acm-icpc-team/submissions/code/47932867
ACM ICPC Team
You are viewing a single comment's thread. Return to all comments →
I was kind misled by others because they mentioned bitset. And Yes, i tried to do the binary calcuation for bitseted strings. As a result, I spent too much time. However, it can be calculated simply by comparing to the number of 1s. Here is my result in c++ https://www.hackerrank.com/challenges/acm-icpc-team/submissions/code/47932867