Number of Paths with Max Score

Solution Code
Video GuideLeetcode Daily

Time Complexity

O(N^2)

Space Complexity

O(N^2)