Skip to content

Instantly share code, notes, and snippets.

@taybenlor
Created February 22, 2012 05:39
Show Gist options
  • Save taybenlor/1881734 to your computer and use it in GitHub Desktop.
Save taybenlor/1881734 to your computer and use it in GitHub Desktop.
int maxlen = max(a.length, b.length, c.length);
for(int i = 0; i < maxlen; i++){
int ai = max(a.length - i, 0);
int bi = max(b.length - i, 0);
int ci = max(c.length - i, 0);
//dostuff
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment