java.lang.ObjectLinearSearcher
public class LinearSearcher
Searches an array using linear search
Constructor Summary | |
---|---|
LinearSearcher()
|
Method Summary | |
---|---|
int |
search(int[] array,
int target,
int left,
int right)
Searches a subset of an array for the value between the given left and right indices. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinearSearcher()
Method Detail |
---|
public int search(int[] array, int target, int left, int right)
array
- the array to searchvalue
- the target value to find