Simplest c++ Solution || using two pointer || beats 100% users
\n\n# Code\n\nclass Solution {\npublic:\n    string decodeCiphertext(string encodedText, int rows) {\n        int col = encodedText.length()/rows;\n        vect
\n\n# Code\n```\nclass Solution {\npublic:\n    string decodeCiphertext(string encodedText, int rows) {\n        int col = encodedText.length()/rows;\n        vector<vector<char>>v;\n        string originalText;\n        for(int i = 0; i < col; i++){\n            for(int j = i; j < encodedText.length(); j = j + col + 1){\n                originalText += encodedText[j];\n            }\n        }\n        int j = 0;\n        for(int i = originalText.length() - 1; i >= 0; i--){\n            if(originalText[i] == \' \'){\n                originalText.erase(i,1);\n            }\n            else break;\n            \n        }\n        \n        return originalText;\n    }\n};\n```
['String', 'String Matching', 'C++']