mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 09:28:26 +08:00
merge: Fix GnomeSort algorithm and Add test case to it (#948)
This commit is contained in:
@ -19,6 +19,7 @@ export function gnomeSort (items) {
|
||||
i = Math.max(1, i - 1)
|
||||
}
|
||||
}
|
||||
return items
|
||||
}
|
||||
|
||||
// Implementation of gnomeSort
|
||||
|
Reference in New Issue
Block a user