in reply to How do I find if an array has duplicate elements, if so discard it?

duplicate(k, n) { int i for(i=o;i<n;i++) { if(a[i]==a[i+1]) { i++; } else i++; } }
  • Comment on Re: How do I find if an array has duplicate elements, if so discard it?
  • Download Code

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.