1.

A Complexity of algorithm depends upon _________(a) Time only(b) Space only(c) Both Time and Space(d) None of the mentionedThe question was posed to me during an online exam.Asked question is from Algorithms topic in chapter Algorithms of Discrete Mathematics

Answer»

The CORRECT answer is (C) Both Time and SPACE

To explain: For COMPLEXITY, we calculate both time and space consumed.



Discussion

No Comment Found

Related InterviewSolutions