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

Stats:

CreatedNov 21, 2018
Warriors Trained19
Total Skips0
Total Code Submissions115
Total Times Completed7
JavaScript Completions7
Total Stars0
% of votes with a positive feedback rating25% of 6
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes3
Total "Not Satisfied" Votes3
Total Rank Assessments4
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • uahnbu Avatar
Ad