8000 GitHub - toramanomer/typescript-algorithms at 590f3ceb716fcb97552c765bcf9a41fa62d12a66
[go: up one dir, main page]

Skip to content

toramanomer/typescript-algorithms

Repository files navigation

Linear Search

Linear search is a searching algorithm that sequentially checks each element in a list until the desired element is found or the sequence ends.

Time Complexity

  • Best Case: O(1) (Element found at the beginning)
  • Worst Case: O(n) (Element at the end or not present)
0