The only particularity is that we browse the collection "backwards" from n to zero to avoid problems (since we delete elements from the browsed collection).