arrayscodingpractice
Test interval invariants, not just examples
Anonymous
For an interval merge, check that output intervals are ordered and that no neighboring intervals overlap under the chosen endpoint rule. Also check that the input and output cover the same points. A few boundary cases make it clear whether touching endpoints count as overlap.
0