I submitted two slightly different solutions for a problem in which you have remove duplicate elements of an array, so that the relative order does not change.
In first