string - Java - Most efficient structure for quick retrieval -


i have simple problem: need check if large (150k) list of strings contains string. order not matter, , need check if list contains string. efficient data structure use?

look @ set (hashset, enumset) , hash (hashmap,linkedhash...,idnetityhash..) based implementations, have speed complexity of o(1) contains() method.

this great link use


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -