After trying so hard, I could not solve problem A or problem B today, they were both so hard, help me how could i have solved it.
I thought there would be some logical solution for A, i thought of using STack, binary search in problem A.
But the solution is loops for 100 times? I dont understand what is purpose of such problems.
I want to quit cp after today.
ANy tips on how to solve problems will be appreciated.
Thanks