Hi All, Today I try to solve the problem C of Round 633. Where I misread the problem part Select some distinct indices i1,i2,…,ik these indices can be in any order. I misread it as selecting a range of elements [i k] containing a_i, a_i+1......a_k possibly empty range. And tried to solve this version.
I was wondering whether this version of the problem can be solved if yes, Then how to approach it?