about | help | code help+videos | done | prefs |
moveMisbehavingStudent3
The order of "students" in a line is represented by an array of Strings. Position 0 represents the student at the beginning of the line. Unfortunately, the students near the front of the line are misbehaving, while the students near the end of the line are behaving well. Reverse the order of the array so that the misbehaving students are now at the end. moveMisbehavingStudent3(["Moe", "Larry", "Curly"]) → ["Curly", "Larry", "Moe"] moveMisbehavingStudent3(["Moe", "Larry"]) → ["Larry", "Moe"] moveMisbehavingStudent3(["Moe"]) → ["Moe"] ...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: 250 Post-solution available
Copyright Nick Parlante 2017 - privacy