May I know the algorithm to calculate how many different values are in the array?

Printable View