All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.neko233.toolchain.common.algorithm.bst.BstApi Maven / Gradle / Ivy

package com.neko233.toolchain.common.algorithm.bst;

public interface BstApi {
    /**
     * who is the root node
     */
    T root();

    /**
     * how to get the left child of the node
     */
    T left(T node);

    /**
     * how to get the right child of the node
     */
    T right(T node);

    /**
     * how to print the node
     */
    T data(T node);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy