about | help | code help+videos | done | prefs |
string_allMixedUp--These strings are all mixed up. None of the letters except for the first one is in the right place. Luckily, they were all mixed up following a particular pattern. The first letter is in the right place, the second letter is at the end, the third letter is in the second place, and the fourth letter is second to the end. This pattern continues for all the letters in the string. Write a method given a "mixed up" string and return a string that has been corrected. string_allMixedUp("MONO") → "MOON" string_allMixedUp("Pormermagr") → "Programmer" string_allMixedUp("Tmallbo") → "Tomball" ...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