6 kyu
Simple Sum (with restrictions)
207A.Freeman
Description:
Task
You're given two non-negative numbers (0 <= x,y)
. The goal is to create a function named simple_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. `__loader__`, `vars`, `__dict__` # even more of them.
4. `if`, `in`, `is` # they start with `i` :)
5. `+`, `-`, `*`, `/`, `//`, `%` # arithmetic operations
6. `==`, `!=`, `<`, `>`, `<=`, `>=` # comparisions
Note
Inspired by suic's katas
Please assess the difficulty of the kata when you finish it :)
Puzzles
Restricted
Similar Kata:
Stats:
Created | Dec 10, 2016 |
Published | Dec 10, 2016 |
Warriors Trained | 561 |
Total Skips | 16 |
Total Code Submissions | 1086 |
Total Times Completed | 207 |
Python Completions | 207 |
Total Stars | 9 |
% of votes with a positive feedback rating | 90% of 73 |
Total "Very Satisfied" Votes | 61 |
Total "Somewhat Satisfied" Votes | 9 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 6 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 4 kyu |
Lowest Assessed Rank | 7 kyu |