User Tools

Site Tools

This is an old revision of the document!

Linear Search

The most basic of search algorithms.

Interestingly a simple indexOf() implementation such as this can be faster than the builtin function. This can be caused by the builtin functions doing more work, such as handling edge cases

λ linear_search

linear_search.1403762178.txt.gz · Last modified: 2015/02/02 08:24 (external edit)