1 min readJul 16, 2019
Hello, your solution is cool. I was also able to do it in a way that I think is better. Check it out here https://medium.com/@vooriko/a-simple-solution-to-calculate-the-longest-length-of-binary-gap-of-an-integer-in-javascript-66b2fb05c740