Computer Science Canada how to find and change duplicates in array? |
Author: | we64 [ Thu Feb 05, 2004 6:27 pm ] |
Post subject: | how to find and change duplicates in array? |
If I have 10 random numbers between 1 to 15, such as 5,6,2,10,14,10,5,3,2,1. How do I replace the duplicate numbers? |
Author: | Tony [ Thu Feb 05, 2004 6:39 pm ] |
Post subject: | |
just generate a unique list with this code |
Author: | recneps [ Thu Feb 05, 2004 6:43 pm ] | ||
Post subject: | |||
store them in an array, and then go through each array number. like
![]() |
Author: | sport [ Thu Feb 05, 2004 6:45 pm ] | ||
Post subject: | |||
Here is a program how to create ten unique numbers, hope it helps you.
|
Author: | we64 [ Thu Feb 05, 2004 8:01 pm ] |
Post subject: | |
thanks guys |