lcs←{ ⎕IO←0 betterof←{⊃(/1 ¯1↓[1]¨⊂⍵} ⍝ rising rows hmrr←{∨/(rr ⍵)∧∧/⍵=⌈\⍵} ⍝ has monotonically rising rows rnbc←{{⍵/⍳⍴⍵}¨↓[0]×⍵} ⍝ row numbers by column valid←hmrr∘cmbn∘rnbc ⍝ any valid solutions? a w←(