This is a practice question but I cant find problem with code

Question – TLG Problem - CodeChef
My solution – CodeChef: Practical coding for everyone

well my plane was to check result of every round and update in array and at final just compare indexes…
any help would be appreciated…

The problem is tricky to read I think that the maximum should be calculated among the cumulative lead and not round by round as you did.
That might be your only mistake, try by using a counter for the scores and calculating the maximum difference between the two over each round.

1 Like

ohhkkkkk…trying
tq