binomialnode.java
来自「Data StructuresAnd Algorithm Analysis In」· Java 代码 · 共 27 行
JAVA
27 行
package DataStructures;
// Basic node stored in binomial queues
// Note that this class is not accessible outside
// of package DataStructures
class BinomialNode
{
// Constructors
BinomialNode( Comparable theElement )
{
this( theElement, null, null );
}
BinomialNode( Comparable theElement, BinomialNode lt, BinomialNode nt )
{
element = theElement;
leftChild = lt;
nextSibling = nt;
}
// Friendly data; accessible by other package routines
Comparable element; // The data in the node
BinomialNode leftChild; // Left child
BinomialNode nextSibling; // Right child
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?