A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is constant.
Given an array of numbers arr, return true if the array can be rearranged to form an arithmetic progression, and false otherwise.
Constraints:
arr.length
arr[i]
A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is constant.
Given an array of numbers arr, return true if the array can be rearranged to form an arithmetic progression, and false otherwise.
Constraints:
arr.length
arr[i]