Hot answers tagged


There are 3 problems with this code. There's a logic error in load. The code doesn't handle letter case. Valgrind detects memory left at exit (after resolving #1). Let's start in load. There's an issue with the way the tree is being built. Look at the following code: if(table[hash_number] == NULL) { table[hash_number] = new_node->next; ...

Only top voted, non community-wiki answers of a minimum length are eligible