Doubt in the Editorial Solution


#1

Why do we need to keep track of the vertical points?