Junior — Senior
Merging two sorted arrays
livecode
Task condition
Given two arrays, whose elements are already sorted. It is necessary to obtain a single array in which all elements are arranged in ascending (or non-decreasing) order. The expected final array: [1, 1, 2, 3, 4, 4]
int[] arrA = {1, 2, 4};
int[] arrB = {1, 3, 4};