Add Binary LeetCode solution in Python

1
class Solution(object):
2
def addBinary(self, a, b):
3
"""
4
:type a: str
5
:type b: str
6
:rtype: str
7
"""
8

9
return str(bin(int(a, base=2) + int(b, base=2)))[2:]

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0