Return array with unique elements

Given two arrays of equal size 100, one array contains 100 consecutive unique numbers in random order. The other contains numbers with the same range as the first, but they need not be unique and there will be repetitions as well as some numbers missing. Now return the array which has unique elements

Author: Amit Khandelwal 1
Login to Answer
Sort By:
My Answer