about | help | code help+videos | done | prefs |
public int getTwice1stValue(int[] nums)
public int getTwiceFirstValue(int[] nums) { int val = nums[0] * 2; return val; } getTwice1stValue([1]) → 2 getTwice1stValue([5, 6, 1]) → 10 getTwice1stValue([7, 4, 3, 1]) → 14 ...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: 1
Copyright Nick Parlante 2017 - privacy