6 kyu
Golden Section Search
48ecolban
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Keyword nonlocal used in sample tests while it's not supported in python2.
Python 2 is no longer supported.
This comment has been hidden.
Updated the tests so that it does not pass any longer.
Resolved
Hi,
What kind of function might one encounter in the tests? (only same kind than the ones in the sample tests?)
Ok... the description is really missing that information: degree 2 is not enough...
You shouldn't make any assumptions on the functions other that it has a maximum and otherwise strictly increasing/decreasing before/after that maximum.
yeah, that's what I finally did. But the info would be really useful in the description. ;)
I've updated the description to say a little more about what can and cannot be assumed about the function
f
. I also updated the tests, so that solutions that made any incorrect assumptions no longer pass.