about | help | code help+videos | done | prefs |
countTrips
Complete the function so that it returns the number of times three identical numbers appear in the list countTrips([8, 8, 8, 8]) → 2 countTrips([7, 7, 7, 33, 33, 7, 7]) → 1 countTrips([5, 5, 5, 5, 5, 5, 5, 5, 5]) → 7 ...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: 250
Copyright Nick Parlante 2017 - privacy