+ 1
How i can find space complexity of c# code.
2 ответов
+ 2
"Space Complexity" of an algorithm is the total space taken by the algorithm considering the input size.
Otherwise "Time Complexity" of an algorithm quantifies the amount of time taken by an algorithm to run considering the input size.
Calculating Space Complexity depends to the algorithm that you have to analyze.
Here you can find an intresting cheatsheet to calculate Space and Time Complexity:
https://rawgit.com/rehansaeed/.NET-Big-O-Algorithm-Complexity-Cheat-Sheet/master/Cheat%20Sheet.html
+ 1
Can you explain what you mean by "space complexity" ?