Skip to main content
Module

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

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

Get right child index from parent index.

Parameters

index: number

the parent index

Returns

number

the index of the right child