about | help | code help+videos | done | prefs |
Let's make up a new term... Let's define the "flipper" of a string this way: The "flipper" of "abcdefgh" is "badcfehg" such that each pair of characters is switched. You may assume that the input parameter contains a string with an even number of characters. stringFlipper("test") → "etts" stringFlipper("go") → "og" stringFlipper("12345678") → "21436587" ...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
Copyright Nick Parlante 2017 - privacy