merge: Add test case and fix HeapSort Algorithm (#969)

This commit is contained in:
Ankush263
2022-03-31 19:27:44 +05:30
committed by GitHub
parent c21ad2ca7a
commit d47555b026
2 changed files with 20 additions and 0 deletions

View File

@ -38,4 +38,5 @@ export function heapSort (input) {
heapRoot(input, 0)
}
return input
}