Skip to content

Conversation

@JMatharu
Copy link
Contributor

Checklist

Description

On step 3 of Counting sort we need to Loop through the array in reverse to keep the stability of the new array
(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

Also updated Tests project to support Swift 5

@richard-ash
Copy link
Contributor

Thanks for the update to the algorithm @JMatharu!

@richard-ash richard-ash merged commit 12a6b93 into kodecocodes:master Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants