mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-23 00:41:19 -04:00
Update sum_with_bitwise.py
This commit is contained in:
parent
3fbab4d88f
commit
805e80144d
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# author: bt3gl
|
||||||
|
|
||||||
|
|
||||||
def get_sum(self, a: int, b: int) -> int:
|
def get_sum(self, a: int, b: int) -> int:
|
||||||
|
|
||||||
if a == -b:
|
if a == -b:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue