Sir, in this tutorial sir has taken for loop for bi from li+1 to n-1 but it should be bi=li to n-1 because we have to consider the submatrix of size 1 also , otherwise it is giving wrong answer.
Regarding code mistake in tutorial
okay sir, thank you.