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

 

array11


Given an array of ints, compute recursively the number of times that the value 11 appears in the array.

You will need to implement a recursive helper method, and then call that helper method from array11() to start the recursive call.


array11([1, 2, 11]) → 1
array11([11, 11]) → 2
array11([1, 2, 3, 4]) → 0

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

public int array11(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: 300 Post-solution available

Copyright Nick Parlante 2017 - privacy