2 Answers
New AnswerI would advise the same logic as Adam did (though I reversed it to track remaining instead of the current guess number). See the code: https://code.sololearn.com/Wh3jmbi3r1mb
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message