首页 > 代码库 > 左式堆

左式堆

package com.iflytek.heap;

/**
 * 左式堆
 * @author fgtian
 *
 */
public class LeftListHeap {
	public static class HeapNode {
		int mValue;
		int mNpl = 0;
		HeapNode mLeftChild;
		HeapNode mRightChild;
	}
	
	HeapNode mRoot = null;
	
	public void insert(int value) {
		HeapNode node = new HeapNode();
		node.mValue = http://www.mamicode.com/value;"null == mRoot");
		}
		int value = http://www.mamicode.com/mRoot.mValue;>

左式堆