i attempted the lead game problem in c++. I passed the sample test case and a few others. But upon submitting my solution, i fail every time. And since i am not a plus member, i will not be able to access my failed test cases.
Thus, any suggestions and help in that regard will help me a lot.
I am linking my solution herewith: