Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3bc064c

Browse filesBrowse files
Update insertionSort.h
1 parent 42c3f8e commit 3bc064c
Copy full SHA for 3bc064c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎insertionSort.h

Copy file name to clipboardExpand all lines: insertionSort.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void insertionSort(vector <int> &v, int n) {
1717
v[pos] = v[pos - 1];
1818
pos--;
1919
}
20-
if (pos != i) // if pos != i we have made space so we move the current value
20+
if (pos != i) // if pos != i we have made space so we move the current value to its position
2121
v[pos] = current;
2222
}
2323
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.