TORONTO KIDS COMPUTER CLUB | Aurora Thursday Java 18:00 – 05.20
19493
post-template-default,single,single-post,postid-19493,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Aurora Thursday Java 18:00 – 05.20

24 May Aurora Thursday Java 18:00 – 05.20

Question:
Given two sorted arrays as below, create a third array made from first and the second array

Input
arr1 = [1,3,5,7,9,15]
arr2 = [4,8,12,13]

Output
arr3 = [1,3,4,5,7,8,9,12,13,15]

Explanation
arr3 is the combination of arr1 and arr2. It is sorted.
No Comments

Sorry, the comment form is closed at this time.