Skip to content

Conversation

@Mathew131
Copy link
Contributor

No description provided.

@@ -0,0 +1,80 @@
#include "heap.hpp"

void Heap::siftUp(int i) {
Copy link
Contributor

Choose a reason for hiding this comment

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

SiftUp

@Mathew131 Mathew131 changed the title Mathew_pull_request Mathew additional task (heap) Apr 20, 2024
@@ -1,5 +1,5 @@
CMakeLists.txt.user
CMakeCache.txt
Copy link
Contributor

Choose a reason for hiding this comment

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

это лучше не трогать

Copy link
Contributor

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) {
Copy link
Contributor

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]; }
Copy link
Contributor

Choose a reason for hiding this comment

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

GetMin

@@ -1,3 +1,5 @@
#include <iostream>

// 2
Copy link
Contributor

Choose a reason for hiding this comment

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

этот файл не нужно менять

@LostPointer LostPointer merged commit 6f9ae9e into AlgorithmsDafeMipt2024:main May 7, 2024
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