Solve 67. Add Binary
This commit is contained in:
parent
fa5a35e24d
commit
eef4cd9ade
3
python/67_add_binary.py
Normal file
3
python/67_add_binary.py
Normal file
@ -0,0 +1,3 @@
|
||||
class Solution:
|
||||
def addBinary(self, a: str, b: str) -> str:
|
||||
return bin(int(a, 2) + int(b, 2))[2:]
|
Loading…
Reference in New Issue
Block a user