UNPKG

@cute-dw/core

Version:

This TypeScript library is the main part of a more powerfull package designed for the fast WEB software development. The cornerstone of the library is the **DataStore** class, which might be useful when you need a full control of the data, but do not need

14 lines (13 loc) 467 B
import { Element } from "../Collection"; import { Heap } from "./Heap"; export declare class MinHeap<T> extends Heap<T> { /** * Checks if pair of heap elements is in correct order. * For MinHeap the first element must be always smaller or equal. * * @param {*} firstElement * @param {*} secondElement * @returns {boolean} */ pairIsInCorrectOrder(firstElement: Element<T>, secondElement: Element<T>): boolean; }