The correct options are:
- Code complexity refers to the overall complexity and difficulty of understanding and maintaining the code. It includes factors like code structure, logic, and readability.
- Code length refers to the number of lines or statements in the code. It measures the physical length of the code.
- Time complexity refers to the measure of time taken by an algorithm to run as a function of the input size. It helps identify how the algorithm's performance scales with the input size.
- Space complexity refers to the amount of memory or space required by an algorithm to run as a function of the input size. It helps identify how the algorithm's memory usage scales with the input size.
Which of the following explains different types of efficiency
code complexity refers to the number of characters in the code
code length refers to the number of characters in the code
time complexity refers to the amount of memory used
space complexity refers to the maount of memort used
1 answer