I got this problem from an interview with Microsoft.
Given an array of random integers, write an algorithm in C that removes duplicated numbers an
How about the following?
int* temp = malloc(sizeof(int)*len); int count = 0; int x =0; int y =0; for(x=0;x
I try to declare a temp array and put the elements into that before copying everything back to the original array.