2 5
2 3 4 5
2 2 2 2
3 3 3 3
4 4 4 4
5 5 5 5
4 5 6 7
5 6 7 8
6 7 8 9
7 8 9 10
Example :
If we are unable to increment or decrement neither XX nor YY, it means that they are endpoints of the given range and hence we say that SS needs to be the endpoint of its range.
2
3
4
5
By Chirayu Jain