Big-O in Time and Space