Data Structure and Algorithm
Data Structure and Algorithm
The addition of two scalar numbers requires one extra memory location
to hold the result. Thus the space complexity of this algorithm is constant,
hence S(n) = O(1).
© ISBAT UNIVERSITY – 2024. 05/03/24
Execution Time Cases
14
Thank you