about | help | code help+videos | done | prefs |
Write a method that has an input parameter called 'str'. The method returns an array of strings such that each element in the array is a string with a single character and the single character in the string at index 'i' in the array matches the character at position 'i' in the string 'str'. Look at the test data for examples. test2024_10_31_SLHL_stringFromChars("A") → ["A"] test2024_10_31_SLHL_stringFromChars("") → [] test2024_10_31_SLHL_stringFromChars("The Jedi Council has spoken.") → ["T", "h", "e", " ", "J", "e", "d", "i", " ", "C", "o", "u", "n", "c", "i", "l", " ", "h", "a", "s", " ", "s", "p", "o", "k", "e", "n", "."] ...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