Skip to content

Commit 35af9f9

Browse files
BarklimBarklim
Barklim
authored and
Barklim
committed
Create 1502.js
1 parent d3a8027 commit 35af9f9

File tree

1 file changed

+19
-0
lines changed
  • example/ProgrammingSkills/0.Basic

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* 1502. Can Make Arithmetic Progression From Sequence
3+
* https://leetcode.com/problems/can-make-arithmetic-progression-from-sequence/
4+
* Difficulty: Easy
5+
*
6+
* A sequence of numbers is called an arithmetic progression if the difference
7+
* between any two consecutive elements is the same.
8+
*
9+
* Given an array of numbers arr, return true if the array can be rearranged to
10+
* form an arithmetic progression. Otherwise, return false.
11+
*/
12+
13+
/**
14+
* @param {number[]} arr
15+
* @return {boolean}
16+
*/
17+
var canMakeArithmeticProgression = function(arr) {
18+
19+
}

0 commit comments

Comments
 (0)