Skip to main content
Module

x/ssds/mod.ts>ArrayHeapPQ#_swap

Some Specialized Data Structures for Deno.
Latest
method ArrayHeapPQ.prototype._swap
import { ArrayHeapPQ } from "https://deno.land/x/ssds@0.2.0/mod.ts";

Swaps the items at the specified indices of the list.

Parameters

i: number

The index of one of the items to swap.

j: number

The index of the other item to swap.