Skip to content

Commit caec37a

Browse files
committed
Add more expected results
1 parent 6fb1772 commit caec37a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def add_numbers(a, b):
2+
while b != 0:
3+
carry = (a & b) << 1
4+
a = a ^ b
5+
b = carry
6+
7+
return a
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def add_two_numbers(a, b):
2+
return a + b

0 commit comments

Comments
 (0)