merge: Fix GnomeSort algorithm and Add test case to it (#948)

This commit is contained in:
Ankush263
2022-03-24 21:50:39 +05:30
committed by GitHub
parent 532cf3e613
commit 73efc89d29
2 changed files with 20 additions and 0 deletions

View File

@ -19,6 +19,7 @@ export function gnomeSort (items) {
i = Math.max(1, i - 1)
}
}
return items
}
// Implementation of gnomeSort