id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

pais@kinetigram.com arrays01 > A15_noTriples
prev  |  next  |  chance

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)

public boolean A15_noTriples(int[] nums) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy