This challenge is about finding minimums/maximums. The challenge consists of two similar word problems where you will be asked to maximize/minimize a target value.
To make this more of a programming challenge rather than using programming as a calculator, I encourage you to try to find a generic minimize/maximize function rather than just calculating the answer directly.
The accuracy of these answers will depending how much precision you use when calculating them.
This challenge was adapted from The First 25 Years of the Superbrain. If you have an idea for a challenge please share it on /r/dailyprogrammer_ideas and there's a good chance we'll use it.
https://en.wikipedia.org/wiki/Golden-section_search
In [ ]: