python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Creating a minimum heap of a mapping between an object and a value
The questions is in Java.
I have some sort of an Object, lets call it MyObj. Additionally, I have a way to score each instance of this object. However, the scoring depends also on another integer valu...

user16099288
Votes: 0
Answers: 1
Sorting Neighborhoods by Population Using Heap
I am trying to sort the neighborhoods by their populations. I used heap sorting algorithm in C#. I created an Array which keeps the population of the neighborhoods named "arr". And created a...

user16726326
Votes: 0
Answers: 1
What is wrong with my insert function for min-heaps?
I'm trying to write a minimum heap data structure in C, but I ran into some issues while implementing the insert function.
It looks like this :
void insert(MinHeap* minh , int key)
{
if(minh->i...

blake
Votes: 0
Answers: 1
What are the boundaries on increasing keys in minimum heap
I was asked this question on a test and would like to make sure I answered correctly:
You are given a min heap. We want to increase all the nodes on the left most path (so the root, node 2, node 4, n...
Yair
Votes: 0
Answers: 1