Question: type the code in python Alice and Bob are two friends. Alice has a sorted list in ascending order of length N. On the other

type the code in python
Alice and Bob are two friends. Alice has a sorted list in ascending order of length N. On the other hand, Bob has a sorted list of length M. Now, they want to make a sorted list of N+M length in ascending order. However, they are not very good at algorithms. Hence, they asked for your help. Since you are a computer science student, your task is to come up with an efficient algorithm. 1) Find a solution which runs in O(nlgn). [Points 5] 2) Come up with a solution which runs in O(n). [Points 10] Input The first line contains an integer N(1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
