Challenge Description
Cycle all letters from the first part of the alphabet in one direction, and letters from the second half of the alphabet in the other. Other characters stay in place.
Examples
1: Hello world
Hello_world //Input
Hell ld //Letters from first half of alphabet
o wor //Letters from second half of alphabet
_ //Other characters
dHel ll //Cycle first letters
w oro //Cycle second letters
_ //Other characters stay
dHelw_oroll //Solution
2: codegolf
codegolf
c deg lf
o o
f cde gl
o o
focdeogl
3.: empty string
(empty string) //Input
(empty string) //Output
Input
String you need to rotate. May be empty. Does not contain newlines.
Output
Rotated input string, trailing newline allowed
May be written to the screen or returned by a function.
Rules
- No loopholes allowed
- This is code-golf, so shortest code in bytes solving the problem wins
- Program must return the correct solution