We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61f8e5a commit 5bee3d1Copy full SHA for 5bee3d1
algorithms/sort/insert-sort.go
@@ -6,7 +6,7 @@ package sort
6
func InsertSort(array []int) {
7
checkArray(array)
8
// The array is divided into two parts: sorted-part and unsorted-part.
9
- // At the beginning, sorted-part conteins the first element, and unsorted-part contains the rest.
+ // At the beginning, sorted-part contains the first element, and unsorted-part contains the rest.
10
for i := 1; i < len(array); i++ {
11
// For every element in unsorted-part,
12
for j := i; j > 0; j-- {
@@ -16,4 +16,4 @@ func InsertSort(array []int) {
16
}
17
18
19
-}
+}
0 commit comments