Skip to content

Commit 2097a10

Browse files
author
Hari Shekhar
committed
insertion sort implementation in javascript
0 parents  commit 2097a10

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

insertionSort.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function insertionSort(array) {
2+
return array;
3+
}
4+
5+
const numbers = [8, 5, 6, 9, 3, 1, 4, 2, 7, 10];
6+
insertionSort(numbers);

0 commit comments

Comments
 (0)