Created
December 29, 2019 03:11
-
-
Save toymak3r/c22d89f38204fd5b7960b8f3cbb30757 to your computer and use it in GitHub Desktop.
Revisions
-
toymak3r created this gist
Dec 29, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ def binary_gap(N): return len(max(format(N, 'b').strip('0').split('1')))