| about | help | code help+videos | done | prefs |
Given an ArrayList of Integers, construct and return a new ArrayList of Integer values made by traversing the input in reverse order and selecting only the elements with even values. Be aware: nulls are a possibility in inputs! apcsaListBackwardsEvens([1, 2, 3, 4, 5, 6]) → [6, 4, 2] apcsaListBackwardsEvens([6, 5, 4, 3, 2, 1]) → [2, 4, 6] apcsaListBackwardsEvens([1, 3, null, 1]) → [] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 230
Copyright Nick Parlante 2017 - privacy