Function decode

Source
pub fn decode(s: &str) -> String
Expand description

A squared string has n lines, each substring being n characters long. For example: s = “abcd\nefgh\nijkl\nmnop” is a squared string of size 4. We will use squared strings to code and decode texts. To make things easier we suppose that our original text doesn’t include the character ‘\n’.

§Example

code("\x0bi A\n\x0bnTl\n\x0bgua\n\x0b\x0brn")
returns “Alan Turing”