algorithms.tutorialhorizon.com

Linear Search Algorithm - Java Program | Algorithms

Given an array [] of n elements and a element 'x', write a program to search an element 'x' in the array. Linear Search algorithm finds the element by iterating the array from left to right OR right to left. Time Complexity: O(N)