Draft
Redirect numbers without IF statements (Easy)
Description:
Task
You're given four numbers a, b, c, d and the number n, which equals either a or b.
Return c if n equals a, d if n equals b.
Code Limit
Use math operators and Math
functions only.
No if
, eval
, and the following characters ?:!&|{}<>=,
Mathematics
Algorithms
Similar Kata:
Stats:
Created | Nov 21, 2018 |
Warriors Trained | 12 |
Total Skips | 0 |
Total Code Submissions | 9 |
Total Times Completed | 4 |
JavaScript Completions | 4 |
Total Stars | 0 |
% of votes with a positive feedback rating | 33% of 3 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 2 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 3 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |