Solve 67. Add Binary

This commit is contained in:
ktkovachev 2024-04-08 16:38:50 +01:00 committed by GitHub
parent fa5a35e24d
commit eef4cd9ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
python/67_add_binary.py Normal file
View File

@ -0,0 +1,3 @@
class Solution:
def addBinary(self, a: str, b: str) -> str:
return bin(int(a, 2) + int(b, 2))[2:]