Problem 2409. Find the Connecting Path
Solution Stats
Problem Comments
-
6 Comments
syntax error at y_correct. Remove spaces between '=' and '['
new test suite has been added.
yes.. and that is wrong either (dimension mismatch). Next, your question statement is also ambiguous. 4's in the second test suite can be connected in multiple ways, dont know what you are asking.
Starting from the top you should travel to bottom. Repeating no. displays vertical path and you should think about only horizontal missing places.
forget the logic. Your test suite 2 is still broken
This problem needs to have its description improved. It is not clear why some path must prefered over another like on test case #2. Why the fours must cross at the borders when the sevens didn't? Can we only add one 1 per row? and what's the priority of paths?
Problem Recent Solvers10
Suggested Problems
-
Select every other element of a vector
27502 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1224 Solvers
-
Try 1.5.4: Celsius to Fahrenheit
743 Solvers
-
453 Solvers
-
344 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!