[LeetCode] 67. Add Binary
Python
class Solution:
def addBinary(self, a: str, b: str) -> str:
return format(int(a, 2) + int(b, 2), 'b')
class Solution:
def addBinary(self, a: str, b: str) -> str:
return format(int(a, 2) + int(b, 2), 'b')
댓글남기기