Skip to content

Instantly share code, notes, and snippets.

@brunodix
brunodix / main.c
Created June 4, 2014 04:38
HeapSort
#include <stdio.h>
#include <stdlib.h>
#define ValType int
//V1 < V2
#define IS_LESS(v1, v2) (v1 < v2)
void siftDown( ValType *a, int start, int count);