Code-Hub icon indicating copy to clipboard operation
Code-Hub copied to clipboard

Added Binary GAP calculation algorithm

Open Spratiher9 opened this issue 2 years ago • 0 comments

This algorithm finds the binary gap in a number that is, given a positive integer N, find and return the longest distance between two consecutive 1's in the binary representation of N.

Spratiher9 avatar Oct 16 '21 19:10 Spratiher9