Practice · 1 of 3
A qsort of Your Own
CHALLENGE
Difficulty: advanced+25 XP
Implement insertion sort over void* exactly like the library contract:
``c
void isort(void *base, size_t n, size_t size, int (*cmp)(const void *, const void *));
``
Elements move via a stack temp of up to 64 bytes and memcpy; stability is required (equal elements keep order).
Press Submit to check your solution.
Back to lesson: Practice: Generic Mechanism Drills