Longest Path in Matrix
exact_matchmediumby GoldRoger
dparray
Description
Given a matrix of integers, find the longest path of increasing numbers. You can move in four possible directions: up, down, left, or right. The path cannot revisit the same cell. The solver must determine the length of the longest possible path in this matrix. If the matrix is empty, return 0.
Input Specification
A 2D list of integers representing the matrix. The matrix can have dimensions up to 100x100.
Output Specification
An integer representing the length of the longest increasing path.
Starter Code
def solve(input):
pass