TL;DR
The complexity of an algorithm should be considered from two aspects:
- Time complexity
- Space complexity
Time and space are two directions of thinking, which is qualitative. However, if we consider the quantitative aspect, there are three directions to consider:
- / : < / <=
- / : > / >=
- : =
Later, we will introduce time complexity and space complexity separately. In the next section, we will first introduce time complexity.