Uh oh!
There was an error while loading. Please reload this page.
Update rod_cutting.py - #995
Merged
Merged
Conversation
A hopefully clearer implementation without dependence on global variables.
cclauss
commented
Jul 10, 2019
Member
Nice! Please consider adding a doctest. |
added doctests
SandersLin
commented
Jul 10, 2019
ContributorAuthor
Thanks! Added doctests. |
cclauss
commented
Jul 10, 2019
Member
Doctests for length = -1, length = 3.2, prices = [] |
SandersLin
commented
Jul 11, 2019
ContributorAuthor
Modified doctests and type hints. |
cclauss
approved these changes
Jul 13, 2019
stokhos pushed a commit
to stokhos/Python
that referenced
this pull request
Jan 3, 2021
* Update rod_cutting.py A hopefully clearer implementation without dependence on global variables. * Update rod_cutting.py added doctests * Update rod_cutting.py * Update rod_cutting.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A hopefully clearer implementation without dependence on global variables.