Timeline for calculate complexity of LinkedHashSet
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 19, 2014 at 10:13 | history | edited | Neil | CC BY-SA 3.0 |
added 53 characters in body
|
| Jun 18, 2014 at 13:25 | vote | accept | OiRc | ||
| Jun 18, 2014 at 13:22 | comment | added | Neil | If no capacity is specified, LinkedHashSet has an initial capacity of 16 and load factor of 0.75. If you go beyond 12, it will expand the capacity further, so as long as you think you will stay under 12, you should see few to no collisions. Otherwise, you should consider setting the initial capacity as well. | |
| Jun 18, 2014 at 13:19 | comment | added | OiRc | thanks for the answer,in the snippet above i don't think i can have collisions or i can? | |
| Jun 18, 2014 at 13:16 | history | answered | Neil | CC BY-SA 3.0 |