|
|
|
|
|
| | |
|
Active Server Pages asp source code database MS SQL MS Access .mdb adovbs.inc cookies calendar codes sql commands scripts asp programming tutorials iis web server components CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Eliminating duplicate values in an array |
From: |
Aj |
Date: |
7/28/1999 9:30:18 AM |
IP: |
194.131.238.82 |
the algorithm you can use is:
* Create another temporary array,
* create a loop, within a another loop
* check if the index of arr1[1] exists in arr2[n]
* if not, copy arr1[1], into arr2[n+1].
* end loop
*finally, delete arr1, and copy contents of temp array arr2, backinto arr1.
phew
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|