Skip to main content
Module

x/structurae/binary-heap.ts>BinaryHeap.getLeftIndex

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

Get left child index from parent index.

Parameters

index: number

the parent index

Returns

number

the index of the left child