Hi Ramya,
Thanks for the solution. But is there anyway we can find it(last cell of the contiguous non-empty range) and also the first cell of the next contiguous non-empty range more easily? Because, having two loops definitely increases the time complexity. And also, the above solution doesn't provide the last cell of the
contiguous range. It provides the last cell of the non-contiguous range.
Thanks,
Nivas.