about | help | code help+videos | done | prefs |
Given an integer array containing numerical values, return the number of times that the value changes from the previous to the current value from the first to the last element in the array. compress_numIntegerChanges([1, 1, 1]) → 1 compress_numIntegerChanges([1, 2, 2]) → 2 compress_numIntegerChanges([1, 2, 3]) → 3 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy