Doubt regarding Problem C: Codeforces Round #717 (Div. 2)
Problem C
My Accepted Solution
According to me, the time complexity of the above code is O(sum*n*n)(sum= sum of the array passed to the function) and hence should result in a TLE verdict(Correct me if I am wrong).Help me in clearing this doubt. Thanks in advance. :)