Data Interview Qs - Function to merge and sort arrays

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.

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.

//

Click here to view this problem in an interactive Colab (Jupyter) notebook.


 

Congratulations! You’ve accumulated 166 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

Older messages

A hotel chain's loyal customers

Friday, July 23, 2021

SQL, Database Querying, Subquery, Union, InterviewQs A hotel chain's loyal customers SQL Database Querying Subquery Union Forward this email to a friend or colleague and challenge them to solve it.

Ranking, splitting into quantiles with Python

Wednesday, July 21, 2021

Data Analysis, Python, Pandas, Statistics, Data Manipulation, Quantiles, InterviewQs Ranking, splitting into quantiles with Python Data Analysis Python Pandas Statistics Data Manipulation Quantiles

TV and hypertension case study - Hours spent watching TV

Monday, July 19, 2021

Python, Statistics, T-test, External Dataset, InterviewQs TV and hypertension case study - Hours spent watching TV Python Statistics T-test External Dataset Forward this email to a friend or colleague

Find n-th missing element in unsorted array

Friday, July 16, 2021

Python, Data Structures, Arrays, InterviewQs Find n-th missing element in unsorted array Python Data Structures Arrays Forward this email to a friend or colleague and challenge them to solve it.

Employee survey results

Friday, July 16, 2021

SQL, Database Querying, InterviewQs Employee survey results SQL Database Querying Forward this email to a friend or colleague and challenge them to solve it. You're consulting for a company, and

You Might Also Like

🍿 5 Things to Do With Your Old TVs — Ditching Google Search for Perplexity AI

Tuesday, May 7, 2024

Also: How to Turn Off Vanish Mode on Instagram, and More! How-To Geek Logo May 7, 2024 Did You Know The lens of your eye casts everything it sees upside down onto your retina; only when the image

JSK Daily for May 7, 2024

Tuesday, May 7, 2024

JSK Daily for May 7, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Building Large Scale Web Apps | A React Field Guide I had the privilege to work with Addy

Random Web App Ports, unittest, TypeIs vs TypeGuard, and More

Tuesday, May 7, 2024

`TypeIs` Does What I Thought `TypeGuard` Would Do in Python #628 – MAY 7, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo TypeIs Does What I Thought TypeGuard Would Do in Python In this post,

Daily Coding Problem: Problem #1434 [Medium]

Tuesday, May 7, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Airbnb. You are given a huge list of airline ticket prices between different cities

Chaos, Coyotes & Palm Trees 🌴

Tuesday, May 7, 2024

John Mulaney helps Netflix nail its final comedic frontier. Here's a version for your browser. Hunting for the end of the long tail • May 07, 2024 Chaos, Coyotes & Palm Trees John Mulaney's

Issue 155

Tuesday, May 7, 2024

🧑‍🚀🚀 Humanity has entered the 3rd space age. Professional fraud fighter goes undercover at a “Yahoo Boy School.” The AI music app that actually makes good music. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

A very random issue

Tuesday, May 7, 2024

Plus a new language that compiles to Go, charts for the terminal, and some Go books from Packt. | #​506 — May 7, 2024 Unsub | Web Version Together with Ardan Labs Go Weekly Evolving the Go Standard

Chart | The Growth of a $1,000 Investment, by Stock Market Index 📈

Tuesday, May 7, 2024

In this graphic, we've visualized stock market growth by country over the past five years using major indices. View Online | Subscribe Presented by: Discover the motivations and behaviors of

⚙️ A new LLM for Microsoft

Tuesday, May 7, 2024

Plus: A revenue beat for Palantir & a new partnership for OpenAI ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Noonification: The Opt Out Writing Contest: Round 1 Results Announced!

Tuesday, May 7, 2024

Top Tech Content sent at Noon! Get Algolia: AI Search that understands How are you, @newsletterest1? 🪐 What's happening in tech today, May 7, 2024? The HackerNoon Newsletter brings the HackerNoon