Infosys SP | Recent Online Assessment 8th Feb | Maximum Count of Processed Numbers | Latest Infosys Placement Questions 2026 | Frequency Array Optimization

Infosys · Question · Posted Mar 2026

Question: Maximum Count of Processed Numbers (Frequency Logic) 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: The first line contains an integer, N, denoting the size of the array. Each line i of the N subsequent lines (where 0 \le i < N) contains ...

The full answer & interview discussion are available to premium members.

Log in Create a free account