5 XP challenge
Is the Middle Between the Ends
very easy
Build it yourself · 3 min
1 Learn2 Predict3 Solve
TaskYour mission
values contains exactly three integers from -100 to 100. Return true when values[1] is between values[0] and values[2], including either endpoint.
Examples
| Input | Return |
|---|---|
values = [1,3,5] | true |
values = [5,3,1] | true |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.