개발자의 기본기/알고리즘 문제
<Codility> Lesson1. Binary Gap (python)
Ilhoon
2021. 2. 27. 22:13
Codility 사이트에서 문제를 풀어보았다.
영어로 된 문제에 처음부터 당황..
하지만 수많은 예시들 덕분에 이해하는데 어렵진 않았다.
Test results - Codility
A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The
app.codility.com