mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +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++
|
||||
}
|
||||
}
|
||||
return writes
|
||||
return list
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user