Skip to content

Commit 7b0814f

Browse files
authored
Update a_b_problem.py
1 parent 694745d commit 7b0814f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

a_b_problem.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
"""
@@ -15,4 +15,6 @@ def aplusb(self, a, b):
1515
carry = ctypes.c_int32(a & b).value
1616
a = ctypes.c_int32(a ^ b).value
1717
b = ctypes.c_int32(carry << 1).value
18-
return a
18+
return a
19+
20+
# easy: http://lintcode.com/zh-cn/problem/a-b-problem/

0 commit comments

Comments
 (0)