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
Copy Markdown
Contributor

No description provided.

Comment thread task_03/src/topology_sort.cpp Outdated
Comment thread task_03/src/topology_sort.cpp Outdated
Comment thread task_04/src/heap.cpp Outdated
Comment thread task_04/src/heap.hpp Outdated
Comment thread task_04/src/test.cpp
Comment thread task_07/src/binary_search_tree.hpp
Comment thread task_07/src/binary_search_tree.hpp Outdated
Comment thread task_08/src/hash_table.hpp Outdated
Comment thread task_08/src/test.cpp
Comment thread task_09/src/test.cpp Outdated
Comment thread task_03/src/topology_sort.cpp Outdated
Comment thread task_04/src/heap.cpp Outdated
Comment thread task_06/src/task_06.hpp Outdated
Comment thread task_06/src/task_06.hpp Outdated
Comment thread task_07/src/binary_search_tree.hpp Outdated
Comment thread task_07/src/binary_search_tree.hpp Outdated
Comment thread task_08/src/hash_table.hpp Outdated
Comment thread task_04/src/heap.hpp Outdated

private:
std::vector<std::list<std::pair<int, int>>> table;
std::function<size_t(int, size_t)> hashFunction =
Copy link
Copy Markdown
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
Copy Markdown
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