[Codewars #52] Ones and Zeros (7kyu)
[Codewars #52] Ones and Zeros (7kyu) 문제 풀이
Instructions
링크
Given an array of one’s and zero’s convert the equivalent binary value to an integer.
Eg: [0, 0, 0, 1] is treated as 0001 which is the binary representation of 1.
Examples:
1
2
...