MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / Solution

Class Solution

LeetCode_problems/add-binary/Solution.py:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15# Solution : conversion method
16class Solution:
17 def addBinary(self, a, b) -> str:
18 return '{0:b}'.format(int(a, 2) + int(b, 2))
19
20
21#solution : Bit manipulation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected