Q. In linear search algorithm the Worst case occurs when ____________.

  • (A) The item is somewhere in the middle of the array.
  • (B) The item is not in the array at all.
  • (C) The item is the last element in the array.
  • (D) The item is the last element in the array or is not there at all.
πŸ’¬ Discuss
βœ… Correct Answer: (D) The item is the last element in the array or is not there at all.

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
392
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate