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

 

tmhscs@gmail.com recursion > recur_contains789
prev  |  next  |  chance

Given an integer array "arr", return true if it contains 7, 8, 9 in that order anywhere in the array. Assume that the provided int "index" is always sent a 0 to start at the beginning of the array.


recur_contains789([1, 2, 3, 4], 0) → false
recur_contains789([7, 8, 9, 1], 0) → true
recur_contains789([1, 7, 8, 9], 0) → true

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

public boolean recur_contains789(int[] arr, int index) { }

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