Created
March 9, 2023 15:35
-
-
Save NicolaM94/8d7525b732d4a01da21316b1f92f14da to your computer and use it in GitHub Desktop.
Sorted array search
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 simpleSort (array, element): | |
for a in array: | |
if a == element: | |
return true | |
return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment