#43 - Union of the array

You are given two arrays of integers. Your task is to implement a function to calculate the union of these arrays.

Example 1

arr1 = [1, 2, 3, 4, 5]
arr2 = [3, 4, 5, 6, 7]

[1, 2, 3, 4, 5, 6, 7]

Last updated