Question: (10%) What does the following Python function do (suppose L1,L2 are two sorted lists in ascending order)? def what_is_me(L1, L2, H1 H2,L): if ((len(L1)
(10%) What does the following Python function do (suppose L1,L2 are two sorted lists in ascending order)? def what_is_me(L1, L2, H1 H2,L): if ((len(L1) == len (L2)) and (H1- len(L1)) and (H2= len(LZ))): return if HI== len(L1): return elif HZ- len(12): return elif (L1[H1] = L2[H2]): L.append(L1[1]) HIHI + 1 H2H2 + 1 what_is_me(L1,L2, H1,H2,L) return elif (L1[H1] 12 [H2]): HI HIT what is me(L1,L2,H1,H2,1) return elif (L2[H2] < L1[H1]): HZ = H21 what is me(L1,L2, H1,H2, L) return
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
Heres a corrected and annotated version of the code to explain its ... View full answer
Get step-by-step solutions from verified subject matter experts
