TORONTO KIDS COMPUTER CLUB | Markham Saturday 14:00 Java Homework 21.05.15.
19464
post-template-default,single,single-post,postid-19464,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Markham Saturday 14:00 Java Homework 21.05.15.

18 May Markham Saturday 14:00 Java Homework 21.05.15.

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.