Loading Similar Posts
Problem Statement:
You are given an array A of N numbers.
You may choose to process a number if its current frequency is different from the frequency of the previously taken number.
Find the maximum count of numbers that can be processed.
Input Format:
Each line i of the N subsequent lines (where 0 \le i < N) contains an integer describing A[i].