Skip to content

Instantly share code, notes, and snippets.

@jarmitage
Created June 10, 2015 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarmitage/563fa4de7827005cc79a to your computer and use it in GitHub Desktop.
Save jarmitage/563fa4de7827005cc79a to your computer and use it in GitHub Desktop.
Array traversal
for (int r = 0; r < graphRows; r++)
{
for (int c = 0; c < graphCols; c++)
{
int current = (graphCols - 1 - c) * graphRows + r;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment