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
Post a Comment