19 lines
305 B
Java
19 lines
305 B
Java
|
package bintree;
|
||
|
|
||
|
public interface BinTree {
|
||
|
|
||
|
/**
|
||
|
* Inserts value in this tree
|
||
|
* @param value
|
||
|
*/
|
||
|
void insert(int value);
|
||
|
|
||
|
/**
|
||
|
* Returns the number of occurrences of value in this tree
|
||
|
* @param value
|
||
|
* @return the number of occurrences of value in the tree
|
||
|
*/
|
||
|
int occurs(int value);
|
||
|
|
||
|
}
|