X103: countClumps

Say that a "clump" in an array is a series of 2 or more adjacent elements of the same value. Return the number of clumps in the given array.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.