Skip to content

Commit 1ef4c36

Browse files
Update lessons/insertion.md
Co-authored-by: Utkarsh Mishra <76392681+Utkarsh1504@users.noreply.github.com>
1 parent 7a65a5a commit 1ef4c36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/insertion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Insertion sort is the sorting mechanism where the sorted array is built having o
99

1010
## Explanation
1111

12-
the first element of array forms the sorted subarray while the rest create the unsorted subarray from which we choose an element one by one and "insert" the same in the sorted subarray. The same procedure is followed until we reach the end of the array.
12+
The first element of the array forms the sorted subarray while the rest create the unsorted subarray from which we choose an element one by one and **insert** the same in the sorted subarray. The same procedure is followed until we reach the end of the array.
1313

1414
In each iteration, we extend the sorted subarray while shrinking the unsorted subarray. The array is searched sequentially and unsorted items are moved and inserted into the sorted sub-list (in the same array).
1515

0 commit comments

Comments
 (0)