What is HashTable, what is the use of it, when do we use
(purpose).

Answer Posted / shiva charan

1.basically hashtable stores in terms of (key,value) pair.
2.all the searching operations can be done in O(1) time
complexity.
3. hashtable when u insert the values internally it uses
some optimized algorithm so that accessing will be pretty
much easier.
all the searching operations will be done with less time
complexity if u store the data in a hash table

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is hashset serializable c#?

485


What are anonymous types in c#?

471


Why is static constructor called first?

476


What are functions c#?

564


How main method is called in c#?

507






Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

476


Perfect Example Of While And Do-While Loop In C#.Net ?

562


What is datatable in c#?

484


Is there a way of specifying which block or loop to break out of when working with nested loops?

537


How many bytes is a long c#?

459


What is the difference while using directive vs using statement ?

512


What is asp net c# corner?

790


What is static classes?

486


When should I use static in C#?

552


Why is c# used?

479