class Solution {
public:
string convert(string s, int numRows) {
string ans="";
if(s.length()==0 || numRows<=1) return s;
int len=s.length();
for(int i=0;
i
class Solution {
public:
string convert(string s, int numRows) {
string ans="";
if(s.length()==0 || numRows<=1) return s;
int len=s.length();
for(int i=0;
i