Skip to content

Mathew_tasks#45

Open
Mathew131 wants to merge 46 commits intoAlgorithmsDafeMipt2024:mainfrom
Mathew131:task1
Open

Mathew_tasks#45
Mathew131 wants to merge 46 commits intoAlgorithmsDafeMipt2024:mainfrom
Mathew131:task1

Conversation

@Mathew131
Copy link
Contributor

No description provided.


private:
std::vector<std::list<std::pair<int, int>>> table;
std::function<size_t(int, size_t)> hashFunction =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hash_function

#include <list>
#include <vector>

class HashTable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

у тебя если в конструкторе задать малый размер таблицы, а вставлять много, сложность станет не О(1), а О(n)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants