blob: 085f43647991753a1c1b7e900fcc8f1551d41e56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef HEAP_H
#define HEAP_H
// size_t
#include <stddef.h>
struct heap
{
size_t size;
size_t capacity;
int *array;
};
struct heap *create_heap(void);
void add(struct heap *heap, int val);
int pop(struct heap *heap);
void delete_heap(struct heap *heap);
void print_heap(const struct heap *heap);
#endif /* !HEAP_H */
|