What is time complexity and space complexity ?
Time Complexity :- Time complexity of an algorithm quantifies the amount of the tome taken by an algorithm to run as a function of the length of the input.
Time complexity is not measure in time units like second or microsecond because the run time of a program is depend on the language and the machine plat form.
Space Complexity :- 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.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment