Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go insertion sort #62

Merged
merged 5 commits into from
Feb 23, 2020
Merged

Go insertion sort #62

merged 5 commits into from
Feb 23, 2020

Conversation

coilysiren
Copy link
Owner

Changes

  • Add go insertion sort
  • Enable clipping input names

Context

Relates to #50

@coilysiren coilysiren self-assigned this Feb 23, 2020
Comment on lines +39 to +42
func swapWithPrevious(list []string, idx int) []string {
list[idx], list[idx-1] = list[idx-1], list[idx]
return list
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is overkill, but it helps with visually scanning across scripts of different languages

@coilysiren coilysiren merged commit e841cd5 into main Feb 23, 2020
@coilysiren coilysiren deleted the go-insertion-sort branch February 23, 2020 13:48
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.

1 participant