Python solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \nextract save pattern an
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nextract save pattern and use slicing\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\nO(n) \n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\nO(n) \n\n# Code\n```\nclass Solution:\n    def decodeCiphertext(self, encodedText: str, rows: int) -> str:\n        \n        if rows == 1:\n            return encodedText\n        \n        cols = int(len(encodedText) / rows)\n\n        ans = ""\n        for i in range(cols):\n            ans += encodedText[i::cols+1]\n        return ans.rstrip()\n```
['Python3']