c-binary-heap/main.c

18 lines
308 B
C
Raw Normal View History

2023-03-31 11:27:08 +00:00
#include <stdio.h>
#include <stdlib.h>
#include "priority_queue.h"
int main (int argc, char** argv) {
PriorityQueue priority_queue = { (int*)calloc(10, sizeof(int)), 0, 5};
int i = 0;
while (true) {
insert(&priority_queue, i);
if (i % 100000 == 0) {
printf("%i\n", i);
}
i++;
}
return 0;
}