Question: User Defined Functions Write a Python based user defined functions for each of the following questions 3- Median of Two Sorted Lists . . There
User Defined Functions Write a Python based user defined functions for each of the following questions 3- Median of Two Sorted Lists . . There are two sorted arrays List1 and List2 of size m and n respectively. Find the median of these two sorted lists. You may assume List1 and List2 cannot be empty lists. Example 1: List1 (1,2,3) List2 = (4,5,6) The median is (34)/2 - 3.5 Example 2: List1 = [5,6] List2 = (1,2,3) The median is 3 Example 3: List1 = [1,2,3,4,5,6) List2 = [5,6,7] The median is 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
