Skip to content

Instantly share code, notes, and snippets.

@kenpower
Created October 9, 2013 10:41
Show Gist options
  • Select an option

  • Save kenpower/6899336 to your computer and use it in GitHub Desktop.

Select an option

Save kenpower/6899336 to your computer and use it in GitHub Desktop.
to determine if there is a gap between two number ranges (useful for SAT)
if(max1<min2 || max2 <min1) //check for gap
return true;// true=no overlap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment