Skip to main content

Practice ยท 4 of 4

Heap Array Sum

CHALLENGE
Difficulty: beginner+25 XP

Implement int heap_sum(const int *a, int n) summing n elements of a heap array (n >= 0) โ€” then, in the same file, a main is NOT needed: the harness provides it.

Back to lesson: Practice: Allocation Workbench