What is the time complexity of Linear Search?
Q1. What is the time complexity of Linear Search?
Answer: O(n)
Explanation: Linear Search checks each element sequentially, resulting in a time complexity of O(n) as the number of comparisons grows linearly with the size of the input.