FunctionRacerProblemsRace

Six Hills

MediumOptimizationPython, JavaScript, TypeScript

Six hills. The tallest is the narrowest, so the nearest hill is often the wrong one.

f(x) gives the height at the point x: 3 numbers, each from -10 to 10 (numbers outside are moved to the edge). The top is 100.

You get 3,000 calls to f. Submit tries 3 new landscapes: reach 99 or more in all 3.

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Optimization problems