0
how to reverse the elements of a two dimensional array
4 Respuestas
+ 5
Do you mean this:
{{1,2,3},{4,5,6}} -> {{6,5,4},{3,2,1}}
or this:
{{1,2,3},{4,5,6}} -> {{3,2,1},{6,5,4}}
or something else?
+ 3
@Vova Denys - I see what you're getting at there; have you found CodePlayground (or maybe have your own compiler set up)?
+ 2
@Akash... I looked at your "Codes". You have one that reverses a 1D array; could you not apply the same concept per row?
0
maybe for(i=rows, i<=0,i--)
for(i=cols, i<=0,i--)