[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/anishLearnsToCode/leetcode-algorithms/master/python/add_binary.py [Back]  [Original]

class Solution:
    def addBinary(self, a: str, b: str) -> str:
        return bin(int(a, base=2) + int(b, base=2))[2:]


Web Proxy Viewer  |  New URL  |  Original Page