Skip to content

Instantly share code, notes, and snippets.

@Nub
Created October 29, 2011 21:41
Show Gist options
  • Select an option

  • Save Nub/1325129 to your computer and use it in GitHub Desktop.

Select an option

Save Nub/1325129 to your computer and use it in GitHub Desktop.
int count;
int items[];
for(int i = 0; i < count; i ++)
{
int a = items[i];
for(int j = 0; j < count;j ++)
{
if(j == i) continue;//skip comparing this item to this item
int b = items[j];
//insert compare
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment