I was solving this questions:https://codeforces.me/contest/1334/problem/C My solution:https://codeforces.me/contest/1334/submission/141932259
Could someone tell me why is this exceeding the time limit even though it is a O(n) solution?
Help needed in figuring out a TLE issue
I was solving this questions:https://codeforces.me/contest/1334/problem/C My solution:https://codeforces.me/contest/1334/submission/141932259
Could someone tell me why is this exceeding the time limit even though it is a O(n) solution?