mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Fix bug where cycleSort was not returning the sorted array
This commit is contained in:
@ -57,7 +57,7 @@ function cycleSort (list) {
|
|||||||
writes++
|
writes++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return writes
|
return list
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user