문제
BinaryGap coding task - Learn to Code - Codility
Find longest sequence of zeros in binary representation of an integer.
app.codility.com
결과
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
풀어놨던 코드 복붙했기 때문에 시간은 무시하면 됩니다.
'🔥 PS(Problem Solving) 🔥 > Codility' 카테고리의 다른 글
[Codility] Lesson 3 Time Complexity : TapeEquilibrium (0) | 2021.04.06 |
---|---|
[Codility] Lesson 3 Time Complexity : PermMissingElem (0) | 2021.04.06 |
[Codility] Lesson 3 Time Complexity : FrogJmp (0) | 2021.04.05 |
[Codility] Lesson 2 Arrays : OddOccurrencesInArray (0) | 2021.04.05 |
[Codility] Lesson 2 Arrays : CyclicRotation (0) | 2021.04.02 |
댓글