what is the purpose of count variable ? And why is it added
Distinct rectangle
@ashishbhat27
Which problem are you talking about exactly ?
Can you please tell the exact time in the webinar when it is discussed ?
exact time is 2:35:7
@ashishbhat27
The count variable stores our final answer. This is the value that we are trying to compute in this problem.
but why are we adding it
@ashishbhat27
The count variable stores the count of rectangles that have area less than k. In order to compute this value, we followed the two pointer approach as explained in the video by Pranav Bhaiya. The algorithm is discussed in the video itself. The reason to update this final is that we found the rectangles that fit the criteria and need to be counted.
ohk thank you…
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.