2. Determine the time and space complexities of a linear search
time complexity: O(n)
space complexity: O(log(n))
time complexity: O(n)
space complexity: O(n)
time complexity: O(log(n))
space complexity: O(n)
time complexity: O(log(n))
space complexity: O(log(n))
3.Which of the following is a true statement?(1 point)
Responses
The efficiency of an algorithm measures the amount of resources it needs.
The efficiency of an algorithm measures the amount of resources it needs.
The only effort to consider regarding algorithm code is implementation.
The only effort to consider regarding algorithm code is implementation.
There are no ways to measure space complexity and time complexity.
There are no ways to measure space complexity and time complexity.
Shorter codes always have greater ease of implementation than longer codes.
1 answer