| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/iDev-git/Java/master/Searches/SearchAlgorithm.java | [Back] [Original] |
package Searches;
/**
* The common interface of most searching algorithms
*
* @author Podshivalov Nikita (https://github.com/nikitap492)
*/
public interface SearchAlgorithm {
/**
* @param key is an element which should be found
* @param array is an array where the element should be found
* @param Comparable type
* @return first found index of the element
*/
int find(T array[], T key);
}
| Web Proxy Viewer | New URL | Original Page |