Write a function named mergeSortedArrays that receives 2 parameters:
numbers1numbers2The function should return a new Array with all the elements from both Arrays sorted in ascending order.
PS: bonus points if you can do it in O(n) time complexity :)
numbers1
=numbers2
=Unlock all functions
The first 10 functions are free. Get lifetime access to all 100 with a one-time payment — no subscription.
Upgrade to Pro