Convert a Binary Number to an Integral
Given an integer with only 1s and 0s that represents a binary number, turn it into it's decimal representation.

For instance,
0 -> 0 1 -> 1 10 -> 2 11 -> 3 101 -> 5

Answer

Answers are hidden from search engines.
algorithm binary coding