Professional Documents
Culture Documents
DSA
Name: Sobel Bhatti Reg No: SP19-BSE-112(A)
QUESTION 1:
if(head1 == null)
{
current.next = head2;
}
else
{
current.next = head1;
}
return head3;
}
QUESTION 2:
int i;
if (front ==tail)
{cout(“queue is empty”);
}
else
for(int j=0, j.size,j++)
if (flightqueue(j).id==flightnumber)
{
i=front[j];
i=flightqueue[j];
front++
}