pub fn is_valid_schedule( tasks: &[Interval], machines: usize, assignment: &[usize], ) -> bool
Re-check a schedule: every assigned machine is in range and no two overlapping tasks share one.