4. What is the complexity of an
Algorithm:
The Time it Takes to execute
The Space it takes in memory
ОООО
O Both above
O None of above
Answers
Answered by
0
Answer:
Space is the extra space or the temporary space used by the algorithm ... While executing, algorithm uses memory space for three reasons: ... hence they will take up 4 bytes each, so total memory requirement will be (4(4) + 4) = 20 ... is fixed for the above example, hence it is called Constant Space Complexity.
Explanation:
Similar questions