about | help | code help+videos | done | prefs |
Given an array of integers, return true if each element in the array is exactly one greater than the previous element, and return false otherwise. Arrays will always contain at least two elements. isGrowing([7, 8, 9]) → true isGrowing([4, 5, 6, 7]) → true isGrowing([3, 3, 4, 5]) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy