1502. Can Make Arithmetic Progression From Sequence
https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence
Description
A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the same.
Given an array of numbers arr
, return true
if the array can be rearranged to form an arithmetic progression. Otherwise, return false
.
Example 1:
Example 2:
Constraints:
2 <= arr.length <= 1000
-106 <= arr[i] <= 106
ac
Previous1501. Countries You Can Safely Invest InNext1503. Last Moment Before All Ants Fall Out of a Plank
Last updated