What is the difference between Hash Table and Arrays?

Answers were Sorted based on User's Feedback



What is the difference between Hash Table and Arrays?..

Answer / sey

both hash table and arrays are data structure, but the way
they store data are different. hash table in some way use
array for its implementations so what makes it a hash table
is the design of hash function that map key(value)to the
hash table. the has function has noting to do with the
actual value(key) except to create O(1) hit to access,
insert or delete item.

Is This Answer Correct ?    1 Yes 3 No

What is the difference between Hash Table and Arrays?..

Answer / olivia

One more thing:

When generate a hash table, you don't have to set the
size. When generate an array, the size has to be set.

Hash table can save you space if you don't know how big an
array you may need.

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More C Sharp Interview Questions

Is c# and c sharp same?

0 Answers  


Hi Everyone, the design of the form disappear during writing codes for dataset and data grid. The error show in "line of assigning dataset". I don't know what's happen. If anyone know , please share of technical help from someone. Thanks, Horace Trever

1 Answers  


Hoe can i connect the table into the c# application?

2 Answers  


Is javascript harder than c#?

0 Answers  


What do you mean by expression tree?

0 Answers  






what is the difference between interface and abstraction?

5 Answers   Choice Solutions, IBM,


What are immutable types in c#?

0 Answers  


How to find whether the application is run from inside ide or not?

0 Answers  


Explain the difference between pass by value and pass by reference.

0 Answers   TCS,


What is difference between field and property in c#?

0 Answers  


What is garbage collector and where should you use in .NET?

0 Answers   Siebel,


Can a static class contain non static members?

0 Answers  


Categories