mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
1. Remove Pair class from hash coliision code.
2. Fix the comment in my_list code. 3. Add a Q&A to the summary of sorting.
This commit is contained in:
@ -4,16 +4,7 @@
|
||||
* Author: Krahets (krahets@163.com)
|
||||
*/
|
||||
|
||||
#include "../utils/common.hpp"
|
||||
|
||||
/* 键值对 */
|
||||
struct Pair {
|
||||
int key;
|
||||
string val;
|
||||
|
||||
Pair(int k, string v) : key(k), val(v) {
|
||||
}
|
||||
};
|
||||
#include "./array_hash_map.cpp"
|
||||
|
||||
/* 开放寻址哈希表 */
|
||||
class HashMapOpenAddressing {
|
||||
|
||||
Reference in New Issue
Block a user