Question

What does it mean for an algorithm to be "in-place"?

A It does not use recursion.
B It sorts data without using any extra memory.
C It sorts data using a minimal amount of extra memory (e.g., O(1) or O(log N) auxiliary space).
D It runs directly on the CPU.
E It processes data from a file directly.
Practice Next

Hey! Ask a query