Skip to content

Which loop goes outside

A two dimensional table has table[i][j] depending on table[i - 1][j] and table[i][j - 1].

Does it matter whether i or j is the outer loop?