Home / Engineering / Design and Analysis of Algorithms / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) Which of the following methods can be used to find the largest and smallest element in an array?

(A) recursion
(B) iteration
(C) both recursion and iteration
(D) no method is suitable
Correct answer : Option (C) - both recursion and iteration

Explanation:
 both recursion and iteration can be used to find the largest and smallest element in an array.

Share

Discusssion

Login to discuss.