SQLServerCentral Article

TSQL Challenge 80 - Find the minimal set of intervals without gaps

,

TSQL Challenge 80 - Find the minimal set of intervals  without creating gaps

The challenge is to find the minimal set of intervals without creating gaps.

There is a table with groups of overlapping date intervals where each group has no gaps. Given this table, your job is to find the minimum set of date intervals without creating gaps in the group. A solution is defined such that if you remove any one of the intervals in the solution you will create a gap.

http://beyondrelational.com/puzzles/challenges/114/find-the-minimal-set-of-intervals-without-creating-gaps.aspx

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating