def test_add_binary(self): self.assertEqual("100", add_binary("11", "1")) self.assertEqual("101", add_binary("100", "1")) self.assertEqual("10", add_binary("1", "1"))
""" Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". """ from algorithms.strings import add_binary a = "11" b = "1" print(add_binary(a,b))