Skip to main content
Module

x/structurae/index.ts>BinaryHeap.getParentIndex

Data structures for high-performance JavaScript applications.
Latest
method BinaryHeap.getParentIndex
import { BinaryHeap } from "https://deno.land/x/structurae@4.0.1/index.ts";

Get left child index from parent index.

Parameters

index: number

the child index

Returns

number

the index of the parent