Dashboard Temp Share Shortlinks Frames API

HTMLify

Day 124
Views: 3 | Author: djdj
1
2
3
4
5
6
7
8
class Solution(object):
    def addBinary(self, a, b):
        """
        :type a: str
        :type b: str
        :rtype: str
        """
        return bin(int(a, 2) + int(b, 2))[2:]