Python3 Solution -> Time: O(n), Space: O(1)
Python3 Solution\n\n\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        cols = len(encodedText)//rows\n        total
Python3 Solution\n\n```\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        cols = len(encodedText)//rows\n        total_index = cols*rows\n        final_str = ""\n        for i in range(cols):\n            cur_ind = i\n            \n            while cur_ind < total_index:\n                final_str += encodedText[cur_ind]\n                cur_ind += cols+1\n                \n\n            \n        return final_str.rstrip()\n```\n\nTime Complexity: O(n)\nSpace Complexity: O(1)
[]