Skip to content

Commit 56017b7

Browse files
committed
Algorithm solving problem "136. Single Number" from Leetcode (https://leetcode.com/problems/single-number/)
1 parent 66af9cb commit 56017b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: bit_manipulation/single_number.py

+6
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ def single_number(nums: list) -> int:
3333
for el in nums:
3434
result ^= el
3535
return result
36+
37+
38+
if __name__ == "__main__":
39+
import doctest
40+
41+
doctest.testmod()

0 commit comments

Comments
 (0)