| about | help | code help+videos | done | prefs |
reverseEachHalf
Given a String, return a string where the first half is the first half of the original string in reverse order followed by the second half of the original string in reverse order. A string with an odd number of characters should consider the extra character to be part of the second half of the string. reverseEachHalf("1234567890") → "5432109876" reverseEachHalf("12345") → "21543" reverseEachHalf("kcaBsdraw") → "Backwards" ...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