algorithms.tutorialhorizon.com

Find longest Snake sequence in a given matrix | Algorithms

Given two dimensional matrix, write an algorithm to find out the snake sequence which has the maximum length. There could be many snake sequence in the matrix, you need to return the one with the maximum length. Travel is allowed only in two directions, either go right OR go down.