chiark / gitweb /
08b done
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 8 May 2024 13:26:13 +0000 (14:26 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 8 May 2024 13:26:13 +0000 (14:26 +0100)
08/08b.bqn [new file with mode: 0644]

diff --git a/08/08b.bqn b/08/08b.bqn
new file mode 100644 (file)
index 0000000..dd75f5d
--- /dev/null
@@ -0,0 +1,5 @@
+Main←{𝕊in:
+  DirScores←{>{+˝((1↓≢𝕩)⥊1)»∧`(⊏𝕩)⊸>˘1↓𝕩}¨¯1↓↓𝕩}
+  ⌈´⥊×´{DirScores⌾𝕏in}¨⟨⊢,⌽,⍉,⌽⍉⟩
+}
+•Show Main '0'-˜>•file.Lines ⊑•args