Problem 1701. Solve the picross! (Hard)

Solve the picross!

http://en.wikipedia.org/wiki/Nonogram

The arguments (horz and vert) are cells containing the clues, e.g:

horz = { 2, [1, 1], [] }; vert = { 2, 1, 1 };

means

You have to return the completed picross, a logical or double matrix with a 0 for a white case and a 1 for a black case. If we solve the previous example:

So, the output argument should be:

picross = [ 1 1 0 ; 1 0 1 ; 0 0 0 ];

You have to do some guessings and optimize your code to pass the test suite.

Have fun!

See also: http://www.mathworks.fr/matlabcentral/cody/problems/1700-solve-the-picross-easy

Solution Stats

55.56% Correct | 44.44% Incorrect
Last Solution submitted on Nov 19, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers4

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!