I have a doubt in https://codeforces.net/contest/713/problem/C If I will modify problem that array should be increasing, not necessarily strictly increasing, then how can we solve this problem.
Any help will be appreciated.
Any other solution for my problem statement is also welcome.