Question

What is the primary goal of analyzing an algorithm's space complexity?

A To determine how much time it takes to run.
B To measure the amount of auxiliary memory an algorithm requires relative to the input size.
C To count the number of lines of code.
D To identify potential logic errors.
E To optimize CPU cache usage.
Practice Next

Hey! Ask a query