Data-Structures-and-Algorithms-in-Java
Data-Structures-and-Algorithms-in-Java copied to clipboard
This it should be a bug. Try to pass '101' and it return 3 instead of 5 because of this line.
https://github.com/TrainingByPackt/Data-Structures-and-Algorithms-in-Java/blob/0ad5788f0785e3018e6a5f781f7134c66dd29672/src/main/java/com/packt/datastructuresandalg/lesson1/binarytodecimal/BinaryToDecimal.java#L10