Skip to content

Commit 09a1a12

Browse files
feat: add python solution to lc problem: No.0067. Add Binary (#496)
* posted Python Solution * Update Solution.py Co-authored-by: Yang Libin <contact@yanglibin.info>
1 parent 19378e5 commit 09a1a12

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def addBinary(self, a: str, b: str) -> str:
3+
return bin(int(a, 2) + int(b, 2))[2:]

0 commit comments

Comments
 (0)