arr = [12, 5, 8, 23, 17, 9]
target = 23
Element found at index 3
Input:
target = 100
Output:
Element not found
arr = [12, 5, 8, 5, 17, 9]
target = 5
Element found at index 1
Last updated 2 years ago