Given a binary square matrix of order $n$. Can the problem of finding the longest sequence of 1's (horizontal or vertical) be solved with recursion?
I know how to solve the problem without recursion by iterating over the columns and rows, but was wondering it there is a solution using recursion.