/********************************************************************** * Section : 15 * Machine No. : N * Roll No. : 19CS100XY * Name : Aritra Hazra * Assignment No : LT-1-ODD-A * Description : Insert Set of Intervals into Existing Set of Intervals **********************************************************************/ #include #define MAX 100000 int main() { int n, m, t, i, j, cont; 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