Given a rectangle input with only \
, /
and space, decide if it's a valid output of Drawing in Slashes
Empty lines and columns at edge get cleaned up, so the 3rd true case is true.
True cases:
/\/\
/ /\ \
\/ / \
/\/ /\ \
\ / \/
\ \
\ \
\/
/\/\
/ /\ \
/ \ \/
/ /\ \/\
\/ \ /
/ /
/ /
\/
/\
\/
/\
\/
False cases:
/\
/ \
\ \/
\/
/\
/ \
\ \
\/
/\
\/
/\
\/
Shortest code in each language wins.