Skip to content

Instantly share code, notes, and snippets.

@Desolve
Created July 4, 2019 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Desolve/4aa0af1b415afafdcac2e2366321e69f to your computer and use it in GitHub Desktop.
Save Desolve/4aa0af1b415afafdcac2e2366321e69f to your computer and use it in GitHub Desktop.
0067 Add Binary
class Solution:
def addBinary(self, a: 'str', b: 'str') -> 'str':
return bin(int(a, 2) + int(b, 2))[2:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment