Created
June 20, 2021 22:29
-
-
Save ibrahimBanat/9d9a9f0392946c7cd8575605dcdbe97d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertSort(array) { | |
for (let item = 1; item < array.length; item++) { | |
for (let index = item; index > 0; index--) { | |
//looping through the sub-sorted array down | |
//to the first eleemnt | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment