A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Collection class offers constant- time performance for basic operations
Joined: Oct 21, 2007
Sep 19, 2009 05:30:17
Which collection class offers constant- time performance for basic operations
add(),remove(),contains() and size() ?
Please lemme know the info.
Joined: Sep 28, 2004
Sep 19, 2009 05:55:01
It is actually easier if you don't think of this as a Java question....
Do you remember your "data structures" or "algorithms" course? Do you remember what type of structures can do stuff in O(1)?
Java Threads, 3rd Edition
Jini in a Nutshell
Java Gems (contributor)
I agree. Here's the link:
subject: Collection class offers constant- time performance for basic operations
What does constant-time performance mean.
Overall performance of ArrayList vs. HashSet
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014