Skip to content

Commit bf38b12

Browse files
committed
Minor change in comment
1 parent d06b7e3 commit bf38b12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Counting Sort/CountingSort.playground/Contents.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func countingSort(array: [Int]) throws -> [Int] {
3030
// Step 3
3131
// Place the element in the final array as per the number of elements before it
3232
// Loop through the array in reverse to keep the stability of the new array
33-
// (i.e. 7, is at index 3 and 6, thus in sortedArray the position of 7 at index 3 should be before 7 at index 6
33+
// i.e. 7, is at index 3 and 6, thus in sortedArray the position of 7 at index 3 should be before 7 at index 6
3434
var sortedArray = [Int](repeating: 0, count: array.count)
3535
for index in stride(from: array.count - 1, through: 0, by: -1) {
3636
let element = array[index]

0 commit comments

Comments
 (0)