Last active
June 22, 2016 09:21
-
-
Save uroybd/274bbe4bfaa5eb862c534427e47f806f to your computer and use it in GitHub Desktop.
Simplest linear search in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def LinearSearch(item, array): | |
return True if item in array else False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment