which of the following Determine the time and space complexities of a linear search.

Time complexity :O(log(n)) Space complexity O(n)
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(log(n))

1 answer

The correct answer is:
Time complexity :O(n) Space complexity O(1)
Similar Questions
    1. answers icon 1 answer
  1. Determine the time and space complexities of a linear search.Time complexity :O(log(n)) Space complexity O(n) Time complexity
    1. answers icon 1 answer
  2. 2. Determine the time and space complexities of a linear searchtime complexity: O(n) space complexity: O(log(n)) time
    1. answers icon 1 answer
  3. 2. Determine the time and space complexities of a linear searchtime complexity: O(n) space complexity: O(log(n)) time
    1. answers icon 1 answer
more similar questions