Codility - BinaryGap - JavaScript
π§ Binary Gap β Explained Line by Line
The Binary Gap problem asks to find the longest sequence of zeros surrounded by ones in the binary representation of a given positive integer N.
Example:N = 529 β Binary: 1000010001 β Gaps: 0000, 000 β Longest =...
andreecirillo.hashnode.dev2 min read