Is the space consumed by linear search (recursive) and linear search…

PYQ Hexaware Hiring Assessment 2024

Is the space consumed by linear search (recursive) and linear search (iterative) the same?

  1. A.

    No, recursive algorithm consumes more space

  2. B.

    No, recursive algorithm consumes less space

  3. C.

    Yes

  4. D.

    Nothing can be said

Attempted by 239 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…