Problem 47668. A KING AND 100 PRISONERS
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 8 Nov 2022
Nice. On the other hand, the test suite should probably forbid people from returning any number between 20 and 40. Just open the file and look for these numbers and their multiples explicitly.
Rafael S.T. Vieira
on 8 Nov 2022
And by the way, it would be faster if all prisoners could turn off the light. They only need to have a variable known by all who share the room but the king. Leave the king doubtful and in the dark, so they would all go free.
Problem Recent Solvers16
Suggested Problems
-
Create a square matrix of multiples
446 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
496 Solvers
-
539 Solvers
-
Area of an equilateral triangle
4832 Solvers
-
3050 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!