[Community puzzle] Number of letters in a number - Binary

If you do it in JS you could use bignumber.js… but no reason to do it because test cases are crafted in a way that incorrect code that suffers numerical issues in last test case accidentally produces the same answer as correct code that operates with big numbers.

hello,I have already passed all testcases,However, when I submited, I failed the last Validators.can i ask what the last validators’ case is ?

It should validate a similar thing than the corresponding test-case (eg, the last one for you).

I’ve been looking through the C++ submissions after solving it, and so far I think I’m the only person who didn’t use an inner loop to crawl through the bits.

Those last test cases worried me for a moment XD

Good luck guys.