Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created February 8, 2009 00:59
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 mitchellh/60128 to your computer and use it in GitHub Desktop.
Save mitchellh/60128 to your computer and use it in GitHub Desktop.
int lowest_alpha_string(char **strings, int n) {
if (n == 0) return -1;
int next = lowest_alpha_string(strings + 1, n - 1);
if (next == -1 || strings[0] < strings[next])
return 0;
else
return 1 + next;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment