Thread:7o'clock/@comment-40187992-20200509154219/@comment-33992908-20200510214355

You start from the right and move toward the left. Your result starts at 0. Each time you encounter a 1, add two to the the power of how many spaces you have moved from the right-most digit to your result.