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 5068ebb

Browse filesBrowse files
Update insertionSort.h
1 parent 9966a41 commit 5068ebb
Copy full SHA for 5068ebb

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
@@ -12,7 +12,7 @@ void insertionSort(vector <int> &v, int n) {
1212
current = v[i];
1313
pos = i; // limit of the ordered part, pos not included
1414

15-
// while the elements in the ordered part are higher than the current value we make space
15+
// we make space
1616
while (pos > 0 && v[pos - 1] > current) {
1717
v[pos] = v[pos - 1];
1818
pos--;

0 commit comments

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