-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fibbonachi heap #2
base: master
Are you sure you want to change the base?
Conversation
#include <memory> | ||
#include <cassert> | ||
template <class T> | ||
class FibbonachiHeap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fibonacci
#include <stdexcept> | ||
#include <memory> | ||
#include <cassert> | ||
template <class T> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пустая строка между #include'ами и объявлением класса.
unsigned long size_; | ||
TreeNode* min_root; | ||
|
||
void static concat_node_lists(TreeNode* &first_list, TreeNode* second_list) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ааа сокращения в названиях функций. Зачем экономить символы, мы не ядро линукса и не микропроцессоры пишем, где каждый байт на счету.
} | ||
} | ||
|
||
unsigned long D() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Что делает эта функция? Совершенно непонятно из названия.
public: | ||
T value; | ||
bool mark; | ||
TreeNode* left_sib; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сделай shared_ptr.
No description provided.