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

 

tmhscs@gmail.com arrays > array_halfLife
prev  |  next  |  chance

Given an integer "n", return an integer array of size "n" that contains the values 100, 50, 25, 12, 6...


array_halfLife(1) → [100]
array_halfLife(2) → [100, 50]
array_halfLife(3) → [100, 50, 25]

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

public int[] array_halfLife(int n) { }

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

Copyright Nick Parlante 2017 - privacy