i dont understand, why we are taking,
li= 0 to n and lj=0 to n,
why are are not taking li=0 to bi similarly for Bj?
and what the need for finding
Bi to n and Bj to n ?
i dont understand, why we are taking,
li= 0 to n and lj=0 to n,
why are are not taking li=0 to bi similarly for Bj?
and what the need for finding
Bi to n and Bj to n ?
in this approach we are finding two cordinates for making the rectangle
(li,lj) and (bi,bj)
for finding leftmost cordinate li and lj
we can take any value for 0 to n
so there loop runs form 0 to n
but if we have selected the leftmost cordinate then bottom most can’t be less than leftmost
so bi and bj start form li and lj to n
for(int li=0;li<n;li++){
for(int lj=0;lj<n;lj++){
for(int bi=ti;bi<n;bi++){
for(int bj=tj;bj<n;bj++){
}
}
}
}
if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like
: and don’t forgot to mark doubt as resolved 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.