59.7k views
5 votes
Answer Asap po!

Distinguish between space and time complexity.

User FadyFouad
by
4.6k points

1 Answer

4 votes

Time complexity of an algorithm quantifies the amount of time taken by an algorithm to run as a function of the length of the input.

Space complexity of an algorithm quantifies the amount of space or memory taken by an algorithm to run as a function of the length of the input

User Campey
by
4.7k points