We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b5934 commit 26210aeCopy full SHA for 26210ae
1 file changed
algorithms/sorting/insertion_sort.py
@@ -1,6 +1,6 @@
1
"""
2
High Level Description:
3
-For every element in the given list, find it's correct index by iterating
+For every element in the given list, find its correct index by iterating
4
backwards and finding a slot. This forms a sorted array.
5
6
Time Complexity:
@@ -14,4 +14,4 @@ def insertion_sort(lst):
14
while(j > 0 and lst[i] < lst[j]):
15
j -= 1
16
lst[j], lst[i] = lst[i], lst[j]
17
- return lst
+ return lst
0 commit comments