The correct explanation of different types of efficiency is:
Space complexity refers to the amount of memory used. Time complexity refers to the amount of time needed.
This definition accurately describes the two main types of efficiency in algorithms: space complexity deals with the memory requirements and how it grows with input size, while time complexity measures how the running time of an algorithm increases as the size of input increases.