MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / heapsort

Function heapsort

CPP/sorting/intro_sort.cpp:75–79  ·  view source on GitHub ↗

Function to perform heapsort on the given range of elements

Source from the content-addressed store, hash-verified

73
74// Function to perform heapsort on the given range of elements
75void heapsort(int *begin, int *end)
76{
77 make_heap(begin, end);
78 sort_heap(begin, end);
79}
80
81// Function to perform introsort on the given array
82void introsort(int a[], int *begin, int *end, int maxdepth)

Callers 1

introsortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected