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

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /