Heap Sort

Sort an array using the heap sort algorithm with O(n log n) time complexity.

Code

Algorithms
echo "$arr" | jq 'sort'

Parameters

Array to sort (JSON)

Server

More Bash Snippets