Problem 2635. Higher! Lower!
Solution Stats
Problem Comments
-
8 Comments
Emphasized Alfonso Nieto-Castanon Comments "your example ([5 7 8]) is not really following the optimal bisection approach. After you choose 5, the new bounds are not 5 and 10, they are 6 and 10, so your next choice should be 8 ((6+10)/2) instead of 7..."
test suit is broken plz fix since its a budge problem
I used this idea to create a similar problem that requires solvers to apply the bisection method correctly (see previous comments). https://www.mathworks.com/matlabcentral/cody/problems/46603-higher-lower-correct
Solution Comments
Show commentsProblem Recent Solvers38
Suggested Problems
-
282 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2323 Solvers
-
Find a subset that divides the vector into equal halves
391 Solvers
-
7353 Solvers
-
Height of a right-angled triangle
1866 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!