Advertisement
kylemsguy

convert_2_to_10.py

Nov 29th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. def convert_2_to_10(b: list) -> int:
  2.     return max([b[0] * 2**(len(b) - 1) + convert_2_to_10(b[1:]) if b else 0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement