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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -