about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 110
Copyright Nick Parlante 2017 - privacy