Company: Infoedge
Difficulty: medium
Remove Duplicates from Array Problem Description Meera bought a batch of N integers from a vendor, expecting each value to appear only once, but the vendor slipped in several repeated entries by mistake. She wants those duplicates cleaned out of the array. Write a program that strips every repeated value out of Meera's array. Input Format The first line of input contains a single integer N. Next N lines of input contain an integer each, the elements of the Array. Output Format Return the new array containing no repeated elements. The new array should be strictly increasing. Examples Example 1: Input: 5 1 2 1 3 4 Output: 1 2 3 4 Explanation: The input array contains 5 elements: [1, 2, 1, 3, 4] . After removing duplicate elements and sorting the remaining unique elements in strictly increasing order, the result is [1, 2, 3, 4] . Constraints No specific constraints are provided in the problem statement.