Distinct numbers
Feb 14, 2024 · 1 min read · 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...
Join discussion



