in reply to Read array of arrays in reverse order
Have two indexes - on is initialized to largest index of your outer array, and the second one is initialized to the largest index of your inner array.
State to iteration, each time decrement both indexes by 1, until at least one of those indexes hits zero. With each iteration, take the element identifies by those two indexes - that's what you want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read array of arrays in reverse order
by PeterPeiGuo (Hermit) on Apr 18, 2010 at 22:51 UTC |