aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad S Anwar <Mohammad.Anwar@yahoo.com>2023-01-29 10:45:45 +0000
committerGitHub <noreply@github.com>2023-01-29 10:45:45 +0000
commit04661d2641a8b1dbfc1150ba5270227bc16a3f49 (patch)
treed86c360470ddf8a1b474277e11c275b08f125f2c
parenta75f20a4759b0101b42d26750e59997b83f50773 (diff)
parente4493398db16fbdde1b9a935a7975d5b6f82e897 (diff)
downloadperlweeklychallenge-club-04661d2641a8b1dbfc1150ba5270227bc16a3f49.tar.gz
perlweeklychallenge-club-04661d2641a8b1dbfc1150ba5270227bc16a3f49.tar.bz2
perlweeklychallenge-club-04661d2641a8b1dbfc1150ba5270227bc16a3f49.zip
Merge pull request #7465 from JoaoFelipe3/master
Solution to week 201
-rw-r--r--challenge-201/joaofel/apl/ch-1.apl2
-rw-r--r--challenge-201/joaofel/python/ch-1.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/challenge-201/joaofel/apl/ch-1.apl b/challenge-201/joaofel/apl/ch-1.apl
new file mode 100644
index 0000000000..c4f70c8961
--- /dev/null
+++ b/challenge-201/joaofel/apl/ch-1.apl
@@ -0,0 +1,2 @@
+⎕IO ← 0
+findMissing ← ⍸(∧⌿(⊢∘.≠(⍳(1∘+≢))))
diff --git a/challenge-201/joaofel/python/ch-1.py b/challenge-201/joaofel/python/ch-1.py
new file mode 100644
index 0000000000..b3dea31a14
--- /dev/null
+++ b/challenge-201/joaofel/python/ch-1.py
@@ -0,0 +1,4 @@
+# Not a full program, but a function
+
+def missing_numbers(nums):
+ return list(filter(lambda i: i not in nums, range(len(nums) + 1)))