# L1-BinaryGap ###### tags: `Codility_lessons` ## Question https://app.codility.com/programmers/lessons/1-iterations/binary_gap/ ## Key 先將十進位轉到二進為,再用一個倒序的loop迭代和用快慢算子紀錄1,然後相減index,得到距離 ## Reference ## Solution
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up