nice problem (hint: viterbi) and overall an excellent series / problem-group!
I wish I had done a clever solution but I resorted to brute forcing it!
This passed because the grid is small. I knew I should have changed the problem to a 20 x 20 or 100 x 100 grid haha. Anyway, I'll make a harder version of this problem in the next series. :)
And i ll prove to you then it will still work :)
Yeah probably so. I don't even know if Cody has a memory limit or time limit so one can create test cases that can really filter unwanted solutions. oh well.
6315 Solvers
Find the largest value in the 3D matrix
1065 Solvers
Find the maximum number of decimal places in a set of numbers
769 Solvers
Are all the three given point in the same line?
274 Solvers
Rotate input square matrix 90 degrees CCW without rot90
385 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!