Question: How many times does Loop 1 iterate on input lists A = ( 2 , 7 , 1 1 , 1 6 , 2 1
How many times does Loop iterate on input lists A and B For all lists, items are removed from the front and added to the back. The front of the list is one the left and the back is on the right, so is at the front of list A and is at the back of list A
Loop :
While sizeA AND sizeB
If frontA frontB then x : removeA
If frontA frontB then x : removeB
addx C
Endwhile
a
b
c
d
a
b
c
d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
