Math, asked by Chirag64841, 10 months ago

Given 2 integer arrays find common elementsay arr1 and arr2, find smallest number in arr1 which is not present in arr2 in one loop

Answers

Answered by rishika79
0

Answer:

Step-by-step explanation:

Input : arr1[] = {1, 3, 4, 5, 7}

arr2[] = {2, 3, 5, 6}

Output : Union : {1, 2, 3, 4, 5, 6, 7}

Intersection : {3, 5}

Input : arr1[] = {2, 5, 6}

arr2[] = {4, 6, 8, 10}

Output : Union : {2, 4, 5, 6, 8, 10}

Intersection : {6}

Hope it helps you..

Similar questions