-
Notifications
You must be signed in to change notification settings - Fork 16
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 additional task (heap) #31
Conversation
heap_exe/src/heap.cpp
Outdated
@@ -0,0 +1,80 @@ | |||
#include "heap.hpp" | |||
|
|||
void Heap::siftUp(int i) { |
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.
SiftUp
.gitignore
Outdated
@@ -1,5 +1,5 @@ | |||
CMakeLists.txt.user | |||
CMakeCache.txt |
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.
это лучше не трогать
heap_exe/CMakeLists.txt
Outdated
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.
копия, удали папку heap_exe из корня репозитория
|
||
int Heap::getMin() { return a[0]; } | ||
|
||
void Heap::insert(int x) { |
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.
Insert
|
||
int Heap::size() { return a.size(); } | ||
|
||
int Heap::getMin() { return a[0]; } |
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.
GetMin
task_01/src/main.cpp
Outdated
@@ -1,3 +1,5 @@ | |||
#include <iostream> | |||
|
|||
// 2 |
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.
этот файл не нужно менять
No description provided.