InterviewSolution
Saved Bookmarks
| 1. |
Which of the following methods can be used to find the largest and smallest number in a linked list?(a) Recursion(b) Iteration(c) Both Recursion and iteration(d) Impossible to find the largest and smallest numbersThis question was posed to me during a job interview.This question is from Largest and Smallest Number in a Linked List using Recursion in chapter Recursion of Data Structures & Algorithms II |
|
Answer» CORRECT choice is (c) Both Recursion and iteration The BEST I can explain: Both recursion and iteration can be used to find the largest and SMALLEST NUMBER in a linked list. |
|