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

 

jebbert@volusia.k12.fl.us > harmony
prev  |  next  |  chance

Write a method that works as shown in the test data.


harmony([-532, -239, -2354, 32], [-400, -10, 10, 32]) → [-400, -10, 10, 64]
harmony([50, 44, 20], [50, 44, 20]) → [100, 88, 40]
harmony([-56, -17, 24, 8, 0], [-15, -20, 10, 5, 0]) → [-15, -17, 24, 8, 0]

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

public int[] harmony(int[] starter, int[] changer) { }

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: 440

Copyright Nick Parlante 2017 - privacy