• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Algorithms | Divide and Conquer | Question 6

Consider the problem of searching an element x in an array \'arr[]\' of size n. The problem can be solved in O(Logn) time if. 1) Array is sorted 2) Array is sorted and rotated by k. k is given to you and k <= n 3) Array is sorted and rotated by k. k is NOT given to you and k <= n 4) Array is not sorted

(A)

1 Only

(B)

1 & 2 only

(C)

1, 2 and 3 only

(D)

1, 2, 3 and 4

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments