1 Star 0 Fork 0

CS-IMIS-23/linan20172330newterm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BinarySearchTreeADT.java 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
package week7;
import week6.BinaryTreeADT;
public interface BinarySearchTreeADT<T> extends BinaryTreeADT<T>
{
/**
* Adds the specified element to the proper location in this tree.
*
* @param element the element to be added to this tree
*/
public void addElement(T element);
/**
* Removes and returns the specified element from this tree.
*
* @param targetElement the element to be removed from the tree
* @return the element to be removed from the tree
*/
public T removeElement(T targetElement);
/**
* Removes all occurences of the specified element from this tree.
*
* @param targetElement the element to be removed from the tree
*/
public void removeAllOccurrences(T targetElement);
/**
* Removes and returns the smallest element from this tree.
*
* @return the smallest element from the tree.
*/
public T removeMin();
/**
* Removes and returns the largest element from this tree.
*
* @return the largest element from the tree
*/
public T removeMax();
/**
* Returns the smallest element in this tree without removing it.
*
* @return the smallest element in the tree
*/
public T findMin();
/**
* Returns the largest element in this tree without removing it.
*
* @return the largest element in the tree
*/
public T findMax();
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/linan20172330newterm.git
git@gitee.com:CS-IMIS-23/linan20172330newterm.git
CS-IMIS-23
linan20172330newterm
linan20172330newterm
master

搜索帮助