0

Unfold in all directions
code-golf
Input:
A string
Output:
1) First we take remove character at the end of the input-string until we are left with a length that is a square root (i.e. 1, 4, 9, 16, 25, 36, etc.)
So abcdefghijklmnopqrstuvwxyz (length 26) becomes abcdefghijklmnopqrstuvwxy (leng...