about | help | code help+videos | done | prefs |
apcsaArraysPrintArrayValuesReversedWithBrackets
Given an array of int values, concatenate and return a String including all the numbers in the array, in descending index order. Around values, print square brackets "[" (before) and "]" (after). HINTMostly this is the same as another problem, but the order is changed. How could this be accomplished? Think visually, that might help. apcsaArraysPrintArrayValuesReversedWithBrackets([0, 1, 2, 3]) → "[3][2][1][0]" apcsaArraysPrintArrayValuesReversedWithBrackets([-1, -3, 5]) → "[5][-3][-1]" apcsaArraysPrintArrayValuesReversedWithBrackets([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: 220
Copyright Nick Parlante 2017 - privacy