in reply to RE: Re: All array elements the same?
in thread All array elements the same?
However, if you were to do something like populate your list elements into a hash as keys at the same time as you added them to a list then determining that they were all the same would be O(1), better than brute-force. However, this would slow-down your "add an element to the list" function.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Re: All array elements the same?
by eLore (Hermit) on Aug 01, 2000 at 22:37 UTC | |
by lhoward (Vicar) on Aug 01, 2000 at 22:52 UTC | |
by eLore (Hermit) on Aug 01, 2000 at 22:59 UTC |