In Best case
example:
List1 12
List2 345678
it needs 2 comparisons==> min(m,n)
list1 123456
list2 78 this needs 6 comparisons but this not the best case
In worst case
List1 1357
List2 2468
it needs 7 comparisons==> m+n-1
@ Vipin Rai
why you select this is the best answer?
Hemanth_13 already explain in the comment section.
please remove, this is not a good answer.
If she explains better than anyone then you can select the best answer.
64.3k questions
77.9k answers
244k comments
80.0k users