Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 09a1a12

Browse files
AshwinSolanki76yanglbme
andauthored
feat: add python solution to lc problem: No.0067. Add Binary (doocs#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
Lines changed: 3 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /