4 lines
110 B
Python
4 lines
110 B
Python
class Solution:
|
|
def addBinary(self, a: str, b: str) -> str:
|
|
return bin(int(a, 2) + int(b, 2))[2:]
|