Module fundamentals

Source
Expand description

Modules categorized by Codewars labels - 5kyu *** Fundamentals ***

Functions§

code
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’.
decode
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’.