For the test case [7 7 7] all of [1 7] [2 7] [3 7] should be valid responses, right? Also you don't have any test cases where the game is not winnable.
Given an unsigned integer x, find the largest y by rearranging the bits in x
799 Solvers
4565 Solvers
Fermat's Last Theorem - Fermat's conjecture
68 Solvers
Relative ratio of "1" in binary number
413 Solvers
A Simple Tide Gauge with MATLAB
345 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!