what is the output if list of item having same data item which is to be searched?
Answers
Answered by
8
Answer:
The output if list of item having same data item is to be searched is based on its order and preference.
Explanation:
If list of item contain 5 items in which two are same, and other are different.
Example: 5, 4, 7, 8, 4
The Number is to be searched is 4.
On searching in list, It first put all item in stack and then search through pop and push method.
Number 4 occur at second position and fifth position, while on searching it goes from 1st item to 5th where it find 4 at nearest position, it searches it and shown 4 of second place.
Similar questions
Math,
2 months ago
Math,
2 months ago
Computer Science,
2 months ago
Math,
10 months ago
Social Sciences,
10 months ago