Implement min heap
This commit is contained in:
12
lib/include/min_heap.h
Normal file
12
lib/include/min_heap.h
Normal 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
|
||||
Reference in New Issue
Block a user