about | help | code help+videos | done | prefs |
fill
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy