/********************************************************************** * Section : 15 * Machine No. : N * Roll No. : 19CS100XY * Name : Aritra Hazra * Assignment No : LT-1-EVEN-A * Description : Delete Set of Intervals from Existing Set of Intervals **********************************************************************/ #include #define MAX 100000 int main() { int n, m, t, i, j; int existLeftInterval[MAX], existRightInterval[MAX]; int newLeftInterval[MAX], newRightInterval[MAX]; int finalLeftInterval[MAX], finalRightInterval[MAX]; // scanning existing interval information from user printf("Enter Number of Existing Intervals: "); scanf("%d", &n); printf("Enter %d Existing Intervals:\n", n); for (i=0; i finalRightInterval[t-1]) // allow only valid existing intervals t++; // end of the new interval is before the end of the existing interval if (newRightInterval[j] < existRightInterval[i]) { // next deleted interval starts before the end of current existing interval if ((j