Distinct numbers
You are given a list of N integers, and your task is to calculate the number of distinct values in the list.
Input
The first input line has an integer n: the number of values.
The second line has the integers x1,x2,…,xn.
Output
Print one integer: the...
ramandeepsingh.hashnode.dev1 min read