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

 

apcsaRecurAnyOdd


Given an ArrayList of integers, determine recursively if any of the integers are odd.


HINT: How did Martin do this with the Alchemist?  It's OK to mutate the ArrayList...

apcsaRecurAnyOdd([0, 1]) → true
apcsaRecurAnyOdd([0, 2, 3, 4]) → true
apcsaRecurAnyOdd([0, 2, 4]) → false

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

public boolean apcsaRecurAnyOdd(ArrayList<Integer> 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: 350

Copyright Nick Parlante 2017 - privacy