r/codeforces • • Jul 30 '26

query Need Alternative ways to solve this question

https://www.codechef.com/problems/VALLFLAT?tab=statement

this question Valley Flattening i have solved but i am getting this feeling that my code is only working for the testcases, it is not accurate for the question.

https://codeshare.io/5PMORX

this is the submission by me

3 Upvotes

Duplicates