I have a problem that consists in sorting an two-dimensional array into one-dimensional array using zigzag.
for example we have this input:
I have a problem that consists in sorting an two-dimensional array into one-dimensional array using zigzag.
for example we have this input: