about | help | code help+videos | done | prefs |
Write a method that returns a string made up of 'copies' copies of the digit in the ones place of 'num'. Look at the test data for examples. test2021_11_18_APSLHL_digits(1224, 5) → "44444" test2021_11_18_APSLHL_digits(806, 1) → "6" test2021_11_18_APSLHL_digits(412, 5) → "22222" ...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: 240
Copyright Nick Parlante 2017 - privacy