Join Regular Classroom : Visit ClassroomTech

Coding Questions | XYZ Company | Codewindow.in

The team leader of the testing team of XYZ company decided to assess the team members by organizing a programming event. So he gave the team a task. The task is given an array of size N, find the number of distinct elements in the array and print them in ascending order. Those members who answer will get some reward. Write a program to help the Team leader to evaluate the solutions of the team members.

Example:
Input:
5
1 2 1 2 1

Output:
2
1 2

Solution:

Coming....
You Missed
Also Checkout