GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Concepts  >  Data Structures

 Print  |  
Question:  Data Structure for one million named objects

Answer: If you have one million named objects and you want to store them in a data structure that lets you insert new objects quickly and search for an object by name quickly, what data structure should you use?


September 09, 2008 11:09:40 #3
 veerun14   Member Since: September 2008    Total Comments: 3 

RE: Data Structure for one million named objects
 
Since the objects are named, I would go for the hash table.
     

 

Back To Question