In the lat problem of this video.
We are sorting the vector in descending order shouldn’t we sort in ascending order?
As bulbslit represent bulbs which are glowing so sorting in descending will make them to toggle the row in which maximum bulb are glowing. As the problem also works fine, just wondering how are we getting correct answer when we are solving problem in descending order.