Order a plagiarism free paper now

Our professional writers are ready to do this paper for you

  

Design and write an algorithm to find all the common elements in two sorted lists of numbers. For example, for the lists 2, 5, 5, 5 and 2, 2, 3, 5, 5, 7, the output should be 2, 5, 5. What is the maximum number of comparisons your algorithm makes if the lengths of the two given lists are m and n, respectively?

Order your essay today and save 10% with the discount code ESSAYHELP