⚡ Build the skills to land top-paying quant jobs. Offer ends in 25d 09h 52m 29s25 days 9 hours 52 minutes 29 seconds.
Two sorted arrays of lengths and are merged into one sorted array using the standard two-pointer merge (repeatedly compare the heads of the two arrays and move the smaller one to the output; once one array is exhausted the rest of the other is copied without comparisons).
What is the maximum number of element comparisons this algorithm can perform?