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

 

srp4379@lausd.net quiz > doubleIt
prev  |  next  |  chance

int[] doubleIt(int[] nums). Given an array with 4 members, return an array (length = 4) with each of those elements doubled.


doubleIt([1, 2, 3, 4]) → [2, 4, 6, 8]
doubleIt([5, 2, 8, 1]) → [10, 4, 16, 2]
doubleIt([10, 20, 108, -1]) → [20, 40, 216, -2]

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

int[] doubleIt(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: 110

Copyright Nick Parlante 2017 - privacy