Exemplo n.º 1
0
def test_solution():
    s = Solution()
    assert s.addBinary('11', '1') == '100'
Exemplo n.º 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from solution import Solution

a = "111"
b = "11111"
sol = Solution()
res = sol.addBinary(a, b)
print(res)
Exemplo n.º 3
0
 def test3(self):
     a = '1010'
     b = '1011'
     s = Solution()
     rtn = s.addBinary(a, b)
     print rtn
Exemplo n.º 4
0
 def test1(self):
     a = '0'
     b = '1'
     s = Solution()
     rtn = s.addBinary(a, b)
     print rtn
Exemplo n.º 5
0
 def test2(self):
     a = '11110011001011110111110001010000111110011110101100011111010010001000001101111001000111'
     b = '111001011011111010001001111001100000101010000101100010101100010010010011011000'
     s = Solution()
     rtn = s.addBinary(a, b)
     print rtn