Problem of the Day

A Fresh Challenge, Every Day

One new problem every day — try to solve it yourself before checking the solution.

Easy

Merge Two Sorted Arrays

You are given two integer arrays, nums1 and nums2, both sorted in non-decreasing order. Your task is to merge these two arrays into a single new sorted array.