🐹 C++ || EASY_UNDERSTANDING COMMENTS+IMAGES
\n\n\n\n\n\tCODE\n\n\t\tclass Solution {\n\t\tpublic:\n\t\t\tstring decodeCiphertext(string e, int rows) {\n\t\t\tint size=e.size();\n\t\t\tint col=size/rows;\n
![image](https://assets.leetcode.com/users/images/490d4bba-7328-4e7f-b735-38f2bf6e03b9_1661026373.273487.png)\n![image](https://assets.leetcode.com/users/images/823894aa-6fac-44e2-9cf6-185e8c27e290_1661026380.454058.png)\n![image](https://assets.leetcode.com/users/images/02554695-2d77-4b9e-aee3-0e0dc62a9893_1661026913.1704528.png)\n\n\n\tCODE\n\n\t\tclass Solution {\n\t\tpublic:\n\t\t\tstring decodeCiphertext(string e, int rows) {\n\t\t\tint size=e.size();\n\t\t\tint col=size/rows;\n\t\t\tstring ans;\n\t\t\tfor(int i=0;i<col;i++)\n\t\t\t{\n\t\t\t\tfor(int j=i;j<size;j+=col+1)\n\t\t\t\t{\n\t\t\t\t\tans+=e[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (isspace(ans.back()))\n\t\t\t{\n\t\t\t\tans.pop_back();\n\t\t\t}\n\t\t\t\treturn ans;\n\t\t\t}\n\t\t};\n\t\t\n\t\t\n\t\t\nComplexity Analysis\nSpace Complexity: O(n), where n is the size of encodedText\nTime Complexity: O(n), where n is the size of encodedText
['C', 'C++']