Challenge
In this challenge, the input will be an ordered set of numbers and the program should be able to tell if the set of numbers is an Arithmetic Sequence.
Input
- The input will be a list separated by
,
(comma) or,
(comma+space). The minimum length of the list should be 3 elements.
Output
- The Output can be a Boolean (True or False), or a number (1 for True, 0 for False).
Test cases
In: 1, 3, 5
Out: True
In: 1,4, 7
Out: 1
In: 5, 9,10
Out: 0
In: 5,3,1
Out: False
Rules
- This is code-golf, so the shortest code by bytes wins.
- The input will be finite
Best of Luck
5,3,1
false? \$\endgroup\$ – xnor Jul 3 '20 at 21:57