Skip to content

Commit 1b0642f

Browse files
Update space-complexity.md
1 parent 40027e8 commit 1b0642f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lessons/space-complexity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It is a way to establish approximate relationship between size of input data and
1414

1515
Calculation of space complexity used to hold much more significance in early days of computing than it does now. This is because most machines today have large memories and the user does not need to worry about running out of memory for running a program or two. But it is a crucial estimate where the physical memory is limited or closely monitored.
1616

17-
### **Calculation of Space Complexity**
17+
## **Calculation of Space Complexity**
1818

1919
An algorithm's space can be categorized into 2 parts:\
2020
**1)Fixed Part** which is independent of characteristics of input and output.\
@@ -51,7 +51,7 @@ In this case there are 3 statements (1 if & 2 return statements). The depth of r
5151
***NOTE: Space complexity might differ from machine to machine based on the programming language, the compiler etc.***
5252

5353

54-
### **Space Complexities of Common Algorithms**
54+
## **Space Complexities of Common Algorithms**
5555
| Algorithm | Space Complexity |
5656
| --------- | ---------------- |
5757
| Linear Search | O(1) |

0 commit comments

Comments
 (0)