Problem 56040. A Binary Search
Solution Stats
Problem Comments
-
3 Comments
Rafael S.T. Vieira
on 30 Oct 2022
This is a good exercise, but you can't enforce people to do a binary search in a programming competition unless you can find a way to identify a search done with a binary search uniquely.
Rafael S.T. Vieira
on 30 Oct 2022
Maybe requiring that the sequence of midpoints until a key is retrieved is returned as part of the solution. It would make it harder to "cheat".
Jean-Marie Sainthillier
on 5 Jan 2023
You can add the incrementation of the number of iterations in your algorithm's description and test its exact value in the test suite.
Solution Comments
-
1 Comment
Marco Fuscà
on 18 Oct 2022
uh.. oh well
Problem Recent Solvers38
Suggested Problems
-
777 Solvers
-
269 Solvers
-
Find my daddy long leg (No 's')
1643 Solvers
-
832 Solvers
-
Angle Between Analog Clock Hands
45 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!