From 156e3186ef5b8f929e3589f8469463132e0fa996 Mon Sep 17 00:00:00 2001 From: Conor Hoekstra Date: Mon, 9 Sep 2024 13:43:40 -0400 Subject: :sparkles: PWC 285-1 in BQN --- challenge-285/conor-hoekstra/ch-1.bqn | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 challenge-285/conor-hoekstra/ch-1.bqn diff --git a/challenge-285/conor-hoekstra/ch-1.bqn b/challenge-285/conor-hoekstra/ch-1.bqn new file mode 100644 index 0000000000..f2e7cd2fd3 --- /dev/null +++ b/challenge-285/conor-hoekstra/ch-1.bqn @@ -0,0 +1,14 @@ +# For up to date code: +# https://github.com/codereport/bqn-code/blob/main/pwc/285-1.bqn + +DeadEnds ← ⊢´¨(¬∘∊/⊣)⊑¨ + # (↑¨↓¨)«~»(↑¨) - Kap (original) + # ⊢/¨«~»(↑¨) - Kap + # ⊢/¨~⊃¨ - Dyalog APL + # {⊃~/⌽↓⍉↑⍵} - Dyalog APL (Alternative) + # Ṫ€ḟḢ€ - Jelly + # ↓¨~↑¨ - Hypothetical APL + +# Tests +•Show DeadEnds ⟨⟨"B","C"⟩, ⟨"D","B"⟩, ⟨"C","A"⟩⟩ # "A" +•Show DeadEnds ⟨⟨"A","Z"⟩⟩ # "Z" -- cgit