Linear search algorithm implementation in python


 

Linear search algorithm in python

In [1]:
Enter the size of the array: 5
Enter the array elements: 
5
10
15
20
25
Enter the search value: 20
20  found at position  4

Time Complexity: O(n)

No comments:

Post a Comment