about | help | code help+videos | done | prefs |
Given a string containing more than one word separated by a whitespace, change the order of the words inside the string and return a new string. For instance: if str = "Hi my name is M", the result should be "M is name my Hi". changeOrder("hi") → "hi" changeOrder("") → "" changeOrder("Hi Alex") → "Alex Hi" ...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: 199
Copyright Nick Parlante 2017 - privacy