update project structure

This commit is contained in:
2024-06-20 06:29:07 +08:00
parent 17b4ef8970
commit fdaa94a0fa
49 changed files with 35 additions and 4 deletions

9
leetcode_py/67.py Normal file
View File

@@ -0,0 +1,9 @@
# Given two binary strings a and b, return their sum as a binary string.
class Solution:
def addBinary(self, a: str, b: str) -> str:
int_a = int("0b" + a, 2)
int_b = int("0b" + b, 2)
int_c = int_a + int_b
return bin(int_c)[2:]