Top "Hashtable" questions

A hash table in programming is a collection that uses a hash function to map identifying values (keys) to their associated values.

Iterating through an object hashtable

I am trying to use a hashtable so I can select a specific object stored in an array/object. However, …

javascript hashtable
What's a correct and good way to implement __hash__()?

What's a correct and good way to implement __hash__()? I am talking about the function that returns a hashcode that …

python hashtable hashcode dictionary
How does Java order items in a HashMap or a HashTable?

I was wondering how Java orders items in the Map (HashMap or Hashtable) when they are added. Are the keys …

java map hashtable hashmap hashcode
Time complexity of Hash table

I am confused about the time complexity of hash table many articles state that they are "amortized O(1)" not true …

hashtable big-o
Hash tables VS associative arrays

Recently I have read about hash-tables in a very famous book "Introduction to Algorithms". I haven't used them in any …

php hashtable associative-array
Cannot instantiate the type Set

I am trying to create a Set of Strings which is filled with the keys from a Hashtable so a …

java set hashtable
Why Hashtable does not allow null keys or values?

As specified in JDK documentation, Hashtable does not allow null keys or values. HashMap allows one null key and any …

java hashmap hashtable
PSCustomObject to Hashtable

What is the easiest way to convert a PSCustomObject to a Hashtable? It displays just like one with the splat …

powershell hashtable pscustomobject
How do I create a Dictionary that holds different types in C#

I need some sort of way to store key/value pairs where the value can be of different types. So …

c# dictionary hashtable
Why are there no hashtables in the C standard library?

Why is that there is no Hashtable support as part of Standard C Library? Is there any specific reason for …

c dictionary hashtable