Code Help! | Sololearn: Learn to code for FREE!


Code Help!

I wrote this code that gives the max number of 0's between two 1's in the binary representation of an integer (it's explained in the code file). It was working fine but when I tried other numbers it got some answers wrong. What am I doing wrong?

4/9/2021 6:18:29 PM

Sena Tunca

2 Answers

New Answer


Here's an idea


thanks to you all!