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

 

array_777inARow


Given an integer array "a", return true if there are three values of "7" in a row! Return false otherwise.


array_777inARow([7, 7, 7]) → true
array_777inARow([7, 5, 7]) → false
array_777inARow([1, 7, 7, 7]) → true

...Save, Compile, Run (ctrl-enter)

public boolean array_777inARow(int[] a) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy