> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateMaxHeap

# Function: createMaxHeap()

> **createMaxHeap**\<`T`>(): [`PriorityQueue`](../classes/PriorityQueue)\<`T`>

Defined in: [priority-queue.ts:466](https://github.com/resq-software/npm/blob/fe2e20ae9db8398a0db1e3218edaabb3cf7004d6/packages/dsa/src/priority-queue.ts#L466)

Creates a max-heap priority queue (highest value = highest priority)

## Type Parameters

### T

`T`

## Returns

[`PriorityQueue`](../classes/PriorityQueue)\<`T`>

Max-heap priority queue
