about | help | code help+videos | done | prefs |
Given an array of Strings, array of booleans, and array of integers, all of the same size, return an array of Strings with elements according to the following rules: If the corresponding element in the boolean array is false, the element you return is a string containing the number. If the corresponding element in the boolean is true, return the string augmented with the number. Please use only the 'official' AP String functions if needed. Hint: you do NOT need any. logicStrings(["StringA"], [true], [1]) → ["StringA1"] logicStrings(["StringA"], [false], [1]) → ["1"] logicStrings(["A", "B", "C"], [false, true, true], [1, 2, 3]) → ["1", "B2", "C3"] ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy