Add another option for c heapsort, minor refactors, update docs
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "heap.h"
|
||||
|
||||
// TODO: remove the extra checks for heap_size if i don't need them based on calling
|
||||
static int parent(int i) {
|
||||
return (i > 0) ? (i - 1) / 2 : -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user