time-space complexities

time-space complexities