about | help | code help+videos | done | prefs |
test2021_06_03_APP1SL_arrayToString
Write a method that returns the 'nums' array, but as a string. It will need to LOOK just like the 'nums' array, with no spaces, but it will need to be a string instead of an array. NOTE: You are NOT allowed to use maps, functional programming, or array lists. You are NOT allowed to have any nested loops or nested recursion. You are NOT allowed to make a giant array that is way longer than the input parameter arrays. Kyle, you must resist your natural impulses! test2021_06_03_APP1SL_arrayToString([5, 6, 7]) → "{5,6,7}" test2021_06_03_APP1SL_arrayToString([4]) → "{4}" test2021_06_03_APP1SL_arrayToString([]) → "{}" ...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: 220
Copyright Nick Parlante 2017 - privacy