Wave print traversal

Why we traverse the column from top to down when column is even, and bottom to down if it is odd column number please give reason?

@aara98 because its written in the question. the name is wave print and in problem statements its written

wave print is to print columns alternatively, why can’t we go from top to down in odd column and down to top in even, is it right or only t to d in even is correct

@aara98 yes it is also correct but the problem setter will mention what you will have to do
like in interview it would me mentioned what wave print they are considering

1 Like

ok thanks I got it @vatsal38

np just mark it resolved :smiley: