Member Avatar for Salma_6

Given two arrays (the first array and the second array) of the
same size, each consisting of n positive integers, write a
program to determine how many unique integers the second
array has. Here a unique integer means that it shows only once
in the second array but does not show in the first array. For
example, if the first array is [1, 5, 3, 6, 8] and the second array is
[2, 4, 2, 5, 9] (with n=5), the second array has two unique
integers (4 and 9). What is the complexity of the program?

Are you planning on posting all of your homework questions here? How, exactly, do you plan on learning? Do you imagine you could learn to play the piano by getting someone else to practise for you?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.