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

 

tmhscs@gmail.com monroe > codies
prev  |  next  |  chance

figure out and code the algorithm used based on the examples given below


codies([1, 2, 3, 4, 5, 6, 7]) → [2000, 5000, 8000, 8000, 11000, 14000, 14000]
codies([8, 9, 10, 11, 12, 13]) → [16000, 19000, 22000, 22000, 25000, 28000]
codies([50, 54, 57, 49, 23, 10]) → [100000, 109000, 116000, 98000, 47000, 22000]

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

public int[] codies(int[] arr){ }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy