Given a list of 0s and 1s, compute the integer value it represents in binary.
Constraints
Example
>>> binary_list_to_int([1, 0, 1]) 5 >>> binary_list_to_int([]) 0 >>> binary_list_to_int([1] * 4) 15 >>> binary_list_to_int([0] * 5) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints