Computer Science, asked by prajaktajagtap45, 3 months ago

What is the output of list of item having same data item which is to be searched

Answers

Answered by ek47
1

Answer:

you will get the same data you searched in the index so the first answer is also correct follow me please thank you I hope it helps you

Answered by mad210202
3

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