Computer Science, asked by mathewalexalex9273, 3 months ago

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

Answers

Answered by geetayadav1145
0

Answer:

sorry but i don't know the answer

Explanation:

I am really sorry for that.

Answered by mad210202
0

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