Arrays Challenge - Wave Pattern(Algo++)


here is my attempt i am not able to get the required wave pattern can you help me with the approach and how i should loop it correctly.

hey @arhanchoudhury array wave is not what you are thinking,array wave means you have to print first column from top to bottom second column from bottom to top third from top to bottom and so on you have to make wave.

how should I print it ?

when you are printing each column check if it is even column (0,2,4…) print from row=0 to row= n-1 and if column number is odd(1,3,5…) print from row=n-1 to row=0.