Re: Deleting every mth element



Ravi wrote:
Given an array of size n, function which deletes every mth element in
the array till only one element exists in the array .The value of the
remaining element is to be returned.
Any ideas?

Don't you ever do your own homework?

goose,

.