1class Solution:2 def decodeCiphertext(self, encodedText: str, rows: int) -> str:3 n = len(encodedText)4 cols = n // rows5 step = cols + 16 res = ""78 for i in range(cols):9 for j in range(i, n, step):10 res += encodedText[j]1112 return res.rstrip()
WPM •0 •0
ACC •0 •0
TIME •0