about | help | code help+videos | done | prefs |
Write a method that accepts an array of strings and returns that array in reverse order. Look at the test data for examples. quiz2024_08_23_P1SLHL_reverseStr(["this is a long string", "but", "the length of the", "string", "has nothing", "to do with the order"]) → ["to do with the order", "has nothing", "string", "the length of the", "but", "this is a long string"] quiz2024_08_23_P1SLHL_reverseStr(["xyz", "abc", "123"]) → ["123", "abc", "xyz"] quiz2024_08_23_P1SLHL_reverseStr(["This is a test", "of your reversing ability", "do well"]) → ["do well", "of your reversing ability", "This is a test"] ...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: 210
Copyright Nick Parlante 2017 - privacy