Click here to Skip to main content
15,913,669 members
Home / Discussions / C#
   

C#

 
GeneralRe: Structure and Interface Pin
S Sansanwal15-Aug-04 21:03
S Sansanwal15-Aug-04 21:03 
GeneralRe: Structure and Interface Pin
Paul Selormey15-Aug-04 21:32
Paul Selormey15-Aug-04 21:32 
GeneralRe: Structure and Interface Pin
Nick Parker16-Aug-04 3:29
protectorNick Parker16-Aug-04 3:29 
GeneralRe: Structure and Interface Pin
Paul Selormey16-Aug-04 3:58
Paul Selormey16-Aug-04 3:58 
GeneralArrayList comparsion Pin
azusakt15-Aug-04 16:49
azusakt15-Aug-04 16:49 
GeneralRe: ArrayList comparsion Pin
sreejith ss nair15-Aug-04 17:44
sreejith ss nair15-Aug-04 17:44 
GeneralRe: ArrayList comparsion Pin
leppie15-Aug-04 19:17
leppie15-Aug-04 19:17 
GeneralRe: ArrayList comparsion Pin
Danny Rodriguez15-Aug-04 20:28
Danny Rodriguez15-Aug-04 20:28 
azusakt wrote:
I have 3 ArrayList, each of them stored some string color name, I want to ask how can I check any duplicated strings between them?

first off - why do you have 3 arraylist which seem to be related to eachother - wont 1 suffice?


azusakt wrote:
Ofcourse, I can load all strings from one arrayList, and then use ArrayList.Contains(string) to check. however, any fast way to check this ??
Can I only use ArrayList.Contains() to compare with other ArrayList directly?


you might consider changing your datastructure to something that provides constant time mechanisms.. an arraylist is basic - some of the operations performed on it - (i think Big Grin | :-D ) are not necessarily constant time complexity. how about something that using a hashing function of some sort ? like for example if you were to have 3 hashtables you could simply do a containskey which is constant time on thme ...


you might want rethink what you are doing though - can you suffice with just 1 and then pass a reference to the remain parts of your program that require this datastructure?






Danny!
GeneralForm's this.Close() is not responding Pin
CNU15-Aug-04 16:47
CNU15-Aug-04 16:47 
GeneralRe: Form's this.Close() is not responding Pin
S Sansanwal15-Aug-04 16:49
S Sansanwal15-Aug-04 16:49 
GeneralRe: Form's this.Close() is not responding Pin
CNU15-Aug-04 16:59
CNU15-Aug-04 16:59 
GeneralRe: Form's this.Close() is not responding Pin
sreejith ss nair15-Aug-04 17:17
sreejith ss nair15-Aug-04 17:17 
GeneralRe: Form's this.Close() is not responding Pin
CNU15-Aug-04 17:22
CNU15-Aug-04 17:22 
GeneralRe: Form's this.Close() is not responding Pin
sreejith ss nair15-Aug-04 21:17
sreejith ss nair15-Aug-04 21:17 
GeneralRe: Form's this.Close() is not responding Pin
sreejith ss nair15-Aug-04 17:10
sreejith ss nair15-Aug-04 17:10 
GeneralRe: Form's this.Close() is not responding Pin
leppie15-Aug-04 19:26
leppie15-Aug-04 19:26 
GeneralRe: Form's this.Close() is not responding Pin
mav.northwind17-Aug-04 3:10
mav.northwind17-Aug-04 3:10 
GeneralRe: Form's this.Close() is not responding Pin
CNU17-Aug-04 15:47
CNU17-Aug-04 15:47 
GeneralRe: Form's this.Close() is not responding Pin
mav.northwind17-Aug-04 20:07
mav.northwind17-Aug-04 20:07 
Questionconvert .pwi to image? Pin
khchan15-Aug-04 16:14
khchan15-Aug-04 16:14 
AnswerRe: convert .pwi to image? Pin
leppie15-Aug-04 19:33
leppie15-Aug-04 19:33 
GeneralRe: convert .pwi to image? Pin
khchan15-Aug-04 20:58
khchan15-Aug-04 20:58 
GeneralRe: convert .pwi to image? Pin
leppie15-Aug-04 21:22
leppie15-Aug-04 21:22 
GeneralA CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Danny Rodriguez15-Aug-04 15:41
Danny Rodriguez15-Aug-04 15:41 
GeneralRe: A CRY FOR HELP - Threading , Sockets, Asynchronous headaches Pin
Brad Bruce15-Aug-04 16:13
Brad Bruce15-Aug-04 16:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.