Skip to content

Commit

Permalink
Update heapSort.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanjha9235 authored Dec 23, 2024
1 parent 4535d81 commit 5c5107b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/heapSort.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const heapSort = async (array , setArray , speed) => {
const arr = [...array];
let size = arr.length;

if (isSorted(arr)){
return ;
}
//if (isSorted(arr)){
//return ;
//}

// Heapify the array from i to size --> Upside Down
const heapify = async (size , i) => {
Expand Down

0 comments on commit 5c5107b

Please sign in to comment.