Exercise 3: Display the Unique Elements
In this exercise, you have to complete a function which displays all the unique elements from a given array.
Problem Statement
You have to implement the function findUnique()
which, as the name suggests, finds and prints out the unique elements from the given array, separated by a space character.
Example Input
int[] input1 = new int[10] {3, 5, 2, 7, 7, 4, 1, 5, 7, 2}
Example Output
3 4 1
Get hands-on with 1300+ tech skills courses.