My solution [CodeChef: Practical coding for everyone] for CHEFSHIP gives TLE despite having same complexity as accepted solutions ,please check.
My solution [CodeChef: Practical coding for everyone] for CHEFSHIP gives TLE despite having same complexity as accepted solutions ,please check.
Accepted solutions are bad, you aren’t supposed to have O(n^2)
I don’t get it.
Are the test cases modified after the contest ?
Yes
Ok.
Didn’t know about this.
Thanks.
Yes. Got it.
Thanks