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
Similar Kata:
Stats:
Created | Dec 10, 2016 |
Warriors Trained | 100 |
Total Skips | 13 |
Total Code Submissions | 249 |
Total Times Completed | 22 |
Python Completions | 22 |
Total Stars | 3 |
% of votes with a positive feedback rating | 64% of 14 |
Total "Very Satisfied" Votes | 7 |
Total "Somewhat Satisfied" Votes | 4 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 11 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |