Skip to content

Commit db0ae71

Browse files
Add Binary( just fucking one sentence)
1 parent c3b9ca7 commit db0ae71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

067(FK_1)_Add Binary.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution(object):
2+
def addBinary(self, a, b):
3+
"""
4+
:type a: str
5+
:type b: str
6+
:rtype: str
7+
"""
8+
return bin(int(a, 2) + int(b, 2))[2:]

0 commit comments

Comments
 (0)