US · interviewqs.com

Function to merge and sort arrays

Python, Data Structures, Arrays,


This email was sent

Is this your brand on Milled? Claim it.

InterviewQs

Function to merge and sort arrays

Python Data Structures Arrays

Forward this email to a friend or colleague and challenge them to solve it.

Hi, 

Suppose you're given two lists, each unsorted. Write a function to take in the two lists, merge them, and then sort them in ascending order. You can call your function MergeSort().

Example:

    

Input: a = [6, 11, 8], b = [10, 34, 22]

Output: [6, 8, 10, 11, 22, 34]


Solution will be written in Python for premium users.


 

You’ve accumulated 215 questions since joining our email list. Create a premium account to access detailed solutions to each problem (including this one) + our new Case studies.


Was this email forwarded to you? You can join our list here to receive questions

How did you like today's question?

15411 Boischatel, Montreal, QC, H9H1Y7, Canada
Don't want to get these emails anymore? We'll forgive you if you unsubscribe
Are you sure?

Lists help you organize the brands that you care about. Your lists are private to you.