if our matrix is 90° rotated (acc to video matrix) then we can find the answer ??
Answer making way in lcs
yes your directions will also change accordingly then
The orientation of the matrix does not matter as long as the search is made diagonally within the matrix.