Implement min heap

This commit is contained in:
2024-10-29 16:02:59 +00:00
parent 730ec80220
commit 6b52d4d9cd
5 changed files with 116 additions and 0 deletions

12
lib/include/min_heap.h Normal file
View File

@@ -0,0 +1,12 @@
/*
* Copyright (c) Camden Dixie O'Brien
* SPDX-License-Identifier: AGPL-3.0-only
*/
#ifndef MIN_HEAP_H
#define MIN_HEAP_H
void min_heap_heapify(int *xs, int count);
int min_heap_pop(int *xs, int *count);
#endif