Skip to main content
added 27 characters in body
Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75

dzaima/APL, 1414 11 bytes

{0::0⋄∧=/⍬2⍴⍵}⊢≡⊢⌿⍨2 0⍴⍨≢ 

Try it online!Try it online!

-3 thanks to Adám!

dzaima/APL, 14 bytes

{0::0⋄∧=/⍬2⍴⍵} 

Try it online!

dzaima/APL, 14 11 bytes

⊢≡⊢⌿⍨2 0⍴⍨≢ 

Try it online!

-3 thanks to Adám!

Source Link
dzaima
  • 20.3k
  • 2
  • 42
  • 75

dzaima/APL, 14 bytes

{0::0⋄∧=/⍬2⍴⍵} 

Try it online!