10 XP challenge
Count Increases Between Neighbors
easy
Build it yourself · 6 min
1 Learn2 Predict3 Solve
TaskYour mission
Count positions where a number is greater than the immediately preceding number. numbers contains 0 to 30 integers from -100 to 100.
Examples
| Input | Return |
|---|---|
numbers = [1,3,2,5]count: 0 → 1 → 2. The result is 2. | 2 |
numbers = [4,4,4] | 0 |
Your code
Write your answer inside Solution, then use return to send it back.
Ln 1, Col 1
JavaScript
Try examples runs the public examples. Check my code checks your full answer and saves your completion.