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

 

apcsaListRemoveOdds


Given an ArrayList of Integer values, remove every other odd value encountered in the list, starting with the first one found. Return the modified list.


apcsaListRemoveOdds([3, 2, 5, 7, 9]) → [2, 5, 9]
apcsaListRemoveOdds([1, 3, 5, 7, 9]) → [3, 7]
apcsaListRemoveOdds([2]) → [2]

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

public ArrayList<Integer> apcsaListRemoveOdds(ArrayList<Integer> lst) { }

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: 240

Copyright Nick Parlante 2017 - privacy