Retired
Redirect numbers without IF statements (retired)
Description:
Task
You're given six numbers a, b, c, d, e, f (a < b < c) and the number n, which equals either a, b or c.
Return d if n equals a, e if n equals b, f if n equals c.
Code Limit
Use math operators and Math
functions only.
The characters below are not allowed:
if
statements and shorthands- comparison operators (
==
,===
,!=
,!==
,>
,<
,>=
,<=
) - logical operators (
&&
,||
,!
) - assignment operators (
=
,+=
,-=
,*=
,/=
,%=
) - backslash
Puzzles
Numbers
Data Types
Mathematics
Algorithms
Logic
Similar Kata:
Stats:
Created | Nov 21, 2018 |
Warriors Trained | 19 |
Total Skips | 0 |
Total Code Submissions | 115 |
Total Times Completed | 7 |
JavaScript Completions | 7 |
Total Stars | 0 |
% of votes with a positive feedback rating | 25% of 6 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 3 |
Total "Not Satisfied" Votes | 3 |
Total Rank Assessments | 4 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |