Easy C++ Solution
Code\n\nclass Solution {\npublic:\n    string decodeCiphertext(string encodedText, int rows) {\n        int m = rows;\n        int n = (encodedText.length()/row
# Code\n```\nclass Solution {\npublic:\n    string decodeCiphertext(string encodedText, int rows) {\n        int m = rows;\n        int n = (encodedText.length()/rows);\n        vector<vector<char>> vc(m,vector<char>(n));\n        int ind = 0;\n        for(int i=0;i<rows;i++){\n            for(int j=0;j<n;j++){\n                vc[i][j]=encodedText[j+ind];\n            }\n            ind+=n;\n        } \n        string ans = "";\n        for(int j=0;j<n;j++){\n            int starti = 0;\n            int startj = j;\n            while(starti<m && startj<n){\n                ans+=vc[starti][startj];\n                starti++;\n                startj++;\n            }\n        }\n        while(ans.back()==\' \') ans.pop_back();\n        return ans;\n    }\n};\n```
['C++']