Final Challenge #2
Lesson 9 of 9 in Coddy's Heap Sort - DSA Series course.
Challenge
MediumOne more challenge.
Write heapSort so it returns the array sorted in ascending order with duplicates removed, so every value appears exactly once.
For example, [3, 1, 2, 3, 1] becomes [1, 2, 3].
Try it yourself
#include <stdlib.h>
int* heapSort(int* arr, int arr_size, int* returnSize) {
// Write code here
*returnSize = arr_size;
return arr;
}