What is wrong with my solution?

Revision en1, by Shikharraj, 2025-02-04 17:23:32

Hello CF community,

I am stuck on problem (Cost of the Array). My solution is getting wrong answer on test case 2 and I am not sure why.

My submission : 304400545

Any counterexample for the above solution?

Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Shikharraj 2025-02-04 17:23:32 365 Initial revision (published)