about | help | code help+videos | done | prefs |
Write a method that accepts a positive integer num and a string str, then returns a string representing num, but with str inserted BETWEEN each digit. Note that str will NOT be inserted before the first digit or after the last digit. Look at the test data for examples. quiz02_20_2017_digitSpread_APSLHL(456, " ") → "4 5 6" quiz02_20_2017_digitSpread_APSLHL(7813, "^") → "7^8^1^3" quiz02_20_2017_digitSpread_APSLHL(47820, "xyz") → "4xyz7xyz8xyz2xyz0" ...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: 290
Copyright Nick Parlante 2017 - privacy