Skip to content

Instantly share code, notes, and snippets.

@azubkokshe
Created November 22, 2021 04:33
Show Gist options
  • Save azubkokshe/e080e36f50b0b943e079872bd9e40b64 to your computer and use it in GitHub Desktop.
Save azubkokshe/e080e36f50b0b943e079872bd9e40b64 to your computer and use it in GitHub Desktop.
Elegant algorithm to detect overlapping periods
a.start <= b.end AND a.end >= b.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment