Cell Were Not Taken Considertation

While taking the cell as the point of meet I noticed that 1st row 1st col, last row and last col were not taken consideration why ?

@vikram.keswani108,
Because there would be no such valid optimum path in which they meet at boundary (i=1 or i=n, or j=1 or j=n) and still contribute to maximum total gain.
Because firstly, they cannot meet at more than 1 cell and also, if a cell is traversed by both still it would be counted only ones, which means if girl goes to a cell which boy has already visited earlier, it would be of no benefit to girl.

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.