HELP REGARDING ZCO13001

can anybody help me in finding what’s wrong with the logic. Thanks in advanceMy Solution

I think you should sort your array first.
Link to my submission
(https://www.codechef.com/viewsolution/22664259)

1 Like