diff options
Diffstat (limited to 'src/02/04/hash.h')
| -rw-r--r-- | src/02/04/hash.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/02/04/hash.h b/src/02/04/hash.h index 6301584..b87f06c 100644 --- a/src/02/04/hash.h +++ b/src/02/04/hash.h @@ -1,4 +1,13 @@ +typedef struct node { + struct node *next; + int data; +} Node; + typedef struct { + Node buckets[13]; + int size; } Hash; Hash *hash_init(int size); +int hash_get(Hash *hash, int key); +void hash_set(Hash *hash, int key, int value); |
