Doubt regarding Problem C: Codeforces Round #717 (Div. 2)

Revision en1, by Mastermind222, 2021-04-21 21:40:30

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. :)

Tags #doubt, #time complexity, #help me, #tle

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Mastermind222 2021-04-21 21:40:30 447 Initial revision (published)