I'm learning about different sorting algorithms and their time/space complexities and saw that algorithms such as bubble sort and insertion sort have a space complexity of O(1).
This struck me as weird, because surely the lowest space complexity possible would be O(n) (as in, the memory required to store the data set and nothing more)?