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

 

norm.krumpe@muohio.edu arraylab1 > fill
prev  |  next  |  chance

Given a size and a value, create an array of that size, where each element has the specified value.


fill(3, 2) → [2, 2, 2]
fill(2, 3) → [3, 3]
fill(4, 0) → [0, 0, 0, 0]

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

int[] fill(int size, int value) { }

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

Copyright Nick Parlante 2017 - privacy