Although Bubblesort algorithm is not an efficient one with respect to space and time complexity, its one of the easiest one to understand. Here is a bubblesort implementation in python
Asymptotic Complexity
Time Complexity
Space Complexity
n^2
1
If you would like to see how this implentation would look like in C click the following link:
Bubblesort implementation in C