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

 

Functional-2 > two2
prev  |  next  |  chance

Given a list of non-negative integers, return a list of those numbers multiplied by 2, omitting any of the resulting numbers that end in 2.


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

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

public List<Integer> two2(List<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: 223

Copyright Nick Parlante 2017 - privacy