maths.addition_without_arithmetic¶
Illustrate how to add the integer without arithmetic operation Author: suraj Kumar Time Complexity: 1 https://en.wikipedia.org/wiki/Bitwise_operation
Attributes¶
Functions¶
|
Implementation of addition of integer |
Module Contents¶
- maths.addition_without_arithmetic.add(first: int, second: int) int ¶
Implementation of addition of integer
Examples: >>> add(3, 5) 8 >>> add(13, 5) 18 >>> add(-7, 2) -5 >>> add(0, -7) -7 >>> add(-321, 0) -321
- maths.addition_without_arithmetic.first¶