samedi 28 février 2015

Visiting specific cells of an array


I am trying to figure out an algorithm to loop through an array visiting all the cells from (a,b) to (c,d), (from 0 to `). How could i do this efficiently ? I can't seem to be able to find a pretty way to do this. Any ideas ?


enter image description here





Aucun commentaire:

Enregistrer un commentaire