Quote Originally Posted by quzah
It's actually even easier than that.
Code:
for each element in the array
    count occurances of this number in the new array
    if count less than N, copy this over to the new array
That's all folks.


Quzah.
Awesome, I had to define the count as static (since the value assigned to it would go away after the count occurances loop ended) and set it to 0 at the beginning of the outer loop.. but it works! /clap