You are viewing a single comment's thread. Return to all comments →
Simple and redable. Passed all test cases.
def encryption(s): n = 0 st = math.ceil(math.sqrt(len(s))) res = "" for i in range(n, st, 1): res += s[n::st]+" " n += 1 return res
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
Simple and redable. Passed all test cases.