Algorithm for delete_duplicates() function
For each character in the array
For each character beyond the one the outer loop is on
if the character ffrom the inner loop matches the one from the outer loop
For all characters beyond the current one
copy the character to the prior array element
here is what we have so far. We are a bit lost, help would be nice. Thanks in advance.
1 2 3 4 5 6 7 8 9
int dele(char array, int size)
for (int i=0; i<size; i++)
for(int j=1; j<size; j++)
if(array[i] == array[j])
I understand what the prompt is asking for, but not entirely sure on how to write the code for it. I tried googling some ways how how to do it but they all looked messy and very confusing. Looking for some help in what direction to go and how to write it.