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

Update python programs for sorting and searching sections #1279

Merged
merged 16 commits into from Jun 29, 2020

Conversation

courtneycb
Copy link
Contributor

@courtneycb courtneycb commented Jun 14, 2020

Changes

  • Replace download links for python files with links to the programs on repl.it.
  • Update python programs to be in line with PEP8 style guidelines.
  • Update binary search algorithm to correctly count comparisons and remove use of list slicing as it is inefficient.

TODO:

  • Consult with Tim about design decisions

Links for programs:
https://repl.it/@uccser/linear-binary-search-python3
https://repl.it/@uccser/linear-binary-search-python

https://repl.it/@uccser/selection-quicksort-python3
https://repl.it/@uccser/selection-quicksort-python

@courtneycb courtneycb requested a review from eAlasdair Jun 29, 2020
@courtneycb courtneycb marked this pull request as ready for review Jun 29, 2020
Copy link
Collaborator

@eAlasdair eAlasdair left a comment

Looking good, normally I don't worry this much about style rules but if we advertise pep8 compliance we should make sure it absolutely is

Copy link
Collaborator

@eAlasdair eAlasdair left a comment

:yay:

@courtneycb courtneycb merged commit f1444db into develop Jun 29, 2020
5 checks passed
@courtneycb courtneycb deleted the update-python-programs branch Jun 29, 2020
@courtneycb courtneycb mentioned this pull request Jun 29, 2020
@uccser-bot uccser-bot mentioned this pull request Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants