Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mathew_tasks #45

Open
wants to merge 46 commits into
base: main
Choose a base branch
from
Open

Conversation

Mathew131
Copy link
Contributor

No description provided.

task_03/src/topology_sort.cpp Outdated Show resolved Hide resolved
task_03/src/topology_sort.cpp Outdated Show resolved Hide resolved
task_04/src/heap.cpp Outdated Show resolved Hide resolved
task_04/src/heap.hpp Outdated Show resolved Hide resolved
task_04/src/test.cpp Show resolved Hide resolved
task_07/src/binary_search_tree.hpp Show resolved Hide resolved
task_07/src/binary_search_tree.hpp Outdated Show resolved Hide resolved
task_08/src/hash_table.hpp Outdated Show resolved Hide resolved
task_08/src/test.cpp Show resolved Hide resolved
task_09/src/test.cpp Outdated Show resolved Hide resolved
task_03/src/topology_sort.cpp Outdated Show resolved Hide resolved
task_04/src/heap.cpp Outdated Show resolved Hide resolved
task_06/src/task_06.hpp Outdated Show resolved Hide resolved
task_06/src/task_06.hpp Outdated Show resolved Hide resolved
task_07/src/binary_search_tree.hpp Outdated Show resolved Hide resolved
task_07/src/binary_search_tree.hpp Outdated Show resolved Hide resolved
task_08/src/hash_table.hpp Outdated Show resolved Hide resolved
task_04/src/heap.hpp Outdated Show resolved Hide resolved

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