0

I want to solve the following task --- I am given a vector of integers (For example: {1, 3, 10, 6, 3, 12}). I want to 'compress' this list, where the numbers in the vector will be replaced with corresponding numbers such that the new vector only contains the numbers 0 through n - 1 where n is the...