Challenge: Let's Dive into Algorithms

Complete this hands-on exercise to test your knowledge.

Problem statement

You are given two vectors of integers, v1 and v2.

Write a function, merge_sort_vectors, that takes the vectors, v1 and v2, as input and returns a vector result containing the sorted elements from both vectors using the merge sort algorithm.

Input:

Two vectors of integers, v1 and v2.

Get hands-on with 1200+ tech skills courses.