0
My Code measures the longest path, not allowing cycles. For the example input below, the longest chain would be 4
Please can you review my code?
import numpy as np
inputgrid = np.array([['.','.','.','.','.'],
['C','-','C','-','C'],
['.','.','|','.','....