Question: Program on C++ using only: #inlcude using namespace std; Problem 1 (10 points) Write a function called remove_duplicates that takes an array of integers and

Program on C++ using only:
#inlcude
using namespace std;
Problem 1 (10 points) Write a function called remove_duplicates that takes an array of integers and the size of the array. The function removes all duplicate entries in the array, re-orders the array and returns the used number of spaces in the resulting array. See figure below for what is expected. Note that the function should not create another array or use any temporary array for storage. Demonstrate using a main function that it works After caling 10 20 5 Function Index o 10 20 20 5 Order of elements does not matter 23 67 89 23 67 89 10 Extras space after duplicates have been removed. Don't care what the values in these cells are. ?7 Index 9 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
