Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 552 Bytes

linear_search_technique.md

File metadata and controls

10 lines (6 loc) · 552 Bytes

Linear Search Technique

This technique for finding an element by checking through all elements one by one is known as the linear search algorithm. In the worst case, a linear search ends up checking the entire Array. Therefore, the time complexity for a linear search is O(N).

The edge case for a linear search is when the element is not present in the Array.

Questions

Check If N and Its Double Exist Valid Mountain Array