我不确定这个链表会是什么样子。
list<string> hashTable [HASH_TABLE_SIZE];
我相信这个:
list<string> hashTable;
看起来像这样:
Head->[]->[]->[]->NULL
但是什么
list<string> hashTable [HASH_TABLE_SIZE];
看起来像?
最佳答案
它看起来像这样:
[Head][Head][Head]...
^ ^ ^
| | |
v v v
[ ] [ ] [ ]
^ ^ ^
| | |
v v v
NULL NULL NULL
关于c++ - 需要帮助理解列表容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19804338/