in a linear search algorithm, what is the worst - case scenario? 3 6 3 6
Fantastic news! We've Found the answer you've been seeking!
Question:
in a linear search algorithm, what is the worstcase scenario?
A
When key is the last element in array
B
When key is not found in array
C
When key is the first element in array
D
Both A & B
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: