Question: Merge 0 ( List 1 , List 2 ) Set OUTlist to empty While List 1 is not empty OR List 2 is not empty
MergeList List
Set OUTlist to empty
While List is not empty OR List is not empty
If one list is empty and the other is not,
Remove the first number from the nonempty list and add it to OUTlist
If both lists are nonempty,
Remove the first number from List and add it to OUTlist
Remove the first number from List and add it to OUTlist
Return OUTlist
If ListA is and ListB is then what is the result of MergeListA MergeListB ListA
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
