Skip to main content

One doc tagged with "time vs space complexity"

View all tags

Time vs Space Complexity

Time and space complexity are two important concepts in computer science. Time complexity is the amount of time an algorithm takes to run, while space complexity is the amount of memory an algorithm uses. Both are important to consider when analyzing the efficiency of an algorithm.