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.
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
codegolf c deg lf o o f cde gl o o focdeogl
3.: empty string
(empty string) //Input (empty string) //Output
String you need to rotate. May be empty. Does not contain newlines.
Rotated input string, trailing newline allowed
May be written to the screen or returned by a function.
- No loopholes allowed
- This is code-golf, so shortest code in bytes solving the problem wins
- Program must return the correct solution