|
|
|
|
|
| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net 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
|
|
|
|
|
|
|
|
|
|
|
|