Question: What is the worst-case time complexity for searching an element in a sorted array using binary search?
Options:
Correct Answer: O(log n)
Solution:
Binary search has a worst-case time complexity of O(log n) for searching in a sorted array.