Retired

Integer sum (with restrictions) (retired)

Description:

Task

You're given two integer numbers (-10**6 <= x,y <= 10**6). The goal is to create a function named int_sum which return their sum.

Restrictions

The restrictions can be summurized as 'bit and logical operations are allowed'.

Here comphrensive description. You're code mustn't contain:

1. `import`, `getattr`, `exec`, `eval`, `sum`  # with next point produce short solutions,
2. `int` class methods names                   # but here is another idea.
3. `if`, `in`, `is`                            # they start with `i` :)
4. `+`, `-`, `*`, `/`, `//`, `%`               # arithmetic operations
5. `==`, `!=`, `<`, `>`, `<=`, `>=`            # comparisions

Note

Advanced version of this kata

Please assess the difficulty of the kata when you finish it :)

Puzzles
Restricted
Fundamentals

More By Author:

Check out these other kata created by A.Freeman

Stats:

CreatedDec 10, 2016
Warriors Trained100
Total Skips13
Total Code Submissions249
Total Times Completed22
Python Completions22
Total Stars3
% of votes with a positive feedback rating64% of 14
Total "Very Satisfied" Votes7
Total "Somewhat Satisfied" Votes4
Total "Not Satisfied" Votes3
Total Rank Assessments11
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • A.Freeman Avatar
Ad