l1p2
Description
Implement basic operations for hash table, which are search insert delete
. Besides, we will require you to implement some easy extra functions to create and free your hash table.
Header file
In order to test your code, we have specified the interface of your implemetation.
Submission
Requirement
You are required to implement the hash table with separate chaining.
Files
You should submit a tar or zip file containing a c source file named as hash.c
. It should be like:
Testing
Test Program
We will test your hash table with a testing program. You don't need to consider too much about it, only for a reference.
IO format
Input
the number of bucket on the first line
the number of operations on the first line.
an operation on the next lines
Output
the searching results
detailed output can be found by testing it yourself
Sample IO
Input
Output
Information
- Difficulty
- 9
- Category
- (None)
- Tags
- (None)
- # Submissions
- 139
- Accepted
- 2
- Accepted Ratio
- 1%
- Uploaded By