Leetcode 1502: Can Make Arithmetic Progression From Sequence
Category: Easy Problem Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elements is the same. Return true if the array can be rearranged to form an arithmetic progression, otherwise, return false. https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/ Examples Example 1: Example 2: Constraints 2 <= arr.length <= 1000 -10^6 <= arr[i] <= […]
Leetcode 1502: Can Make Arithmetic Progression From Sequence Read More »