Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ex: python arraay

def search3(L, e):
    if len(L) == 0:
    	return False
    elif L[0] == e:
        return True
    elif L[0] > e:
        return False
    else:
        return search3(L[1:], e)
Source by courses.edx.org #
 
PREVIOUS NEXT
Tagged: #python #arraay
ADD COMMENT
Topic
Name
9+3 =