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

 

zbaharav@kehillah.org > addNum
prev  |  next  |  chance

Given an input number and an array and a String, return the array elements incremented by number.


addNum(1, [1, 2, 3], "String") → [2, 3, 4]
addNum(2, [1, 2], "A") → [3, 4]
addNum(5, [1], "B") → [6]

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

public int[] addNum(int n, int[] a, String str) { }

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: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy