duplicate(k, n) { int i for(i=o;i<n;i++) { if(a[i]==a[i+1]) { i++; } else i++; } }
In reply to Re: How do I find if an array has duplicate elements, if so discard it?
by Anonymous Monk
in thread How do I find if an array has duplicate elements, if so discard it?
by toddprof
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |