diff --git a/python/67_add_binary.py b/python/67_add_binary.py new file mode 100644 index 0000000..d451827 --- /dev/null +++ b/python/67_add_binary.py @@ -0,0 +1,3 @@ +class Solution: + def addBinary(self, a: str, b: str) -> str: + return bin(int(a, 2) + int(b, 2))[2:]