about | help | code help+videos | done | prefs |
APCS Array 1, Problem 5. Given an array of ints, we'll say that a triple is a value appearing 3 times in a row in the array. Return true if the array does not contain any triples. A15_noTriples([1, 1, 2, 2, 1]) → true A15_noTriples([1, 1, 2, 2, 2, 1]) → false A15_noTriples([1, 1, 1, 2, 2, 2, 1]) → 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: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy