aboutsummaryrefslogtreecommitdiff
path: root/challenge-053
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2020-03-29 23:20:07 +0100
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2020-03-29 23:20:07 +0100
commitbccff4e56453983854977c3ec730e18c75bd0614 (patch)
tree379703b3ddd57f717ad9c3cb5ceb9d1facb56818 /challenge-053
parent555d6aa1aac16d2e4a015edf398b85c2d5140ce5 (diff)
downloadperlweeklychallenge-club-bccff4e56453983854977c3ec730e18c75bd0614.tar.gz
perlweeklychallenge-club-bccff4e56453983854977c3ec730e18c75bd0614.tar.bz2
perlweeklychallenge-club-bccff4e56453983854977c3ec730e18c75bd0614.zip
- Added solutions by Shahed Nooshmand.
Diffstat (limited to 'challenge-053')
-rw-r--r--challenge-053/shahed-nooshmand/README1
-rw-r--r--challenge-053/shahed-nooshmand/raku/ch-1.sh1
-rw-r--r--challenge-053/shahed-nooshmand/raku/ch-2.sh1
3 files changed, 3 insertions, 0 deletions
diff --git a/challenge-053/shahed-nooshmand/README b/challenge-053/shahed-nooshmand/README
new file mode 100644
index 0000000000..d6ba6d0222
--- /dev/null
+++ b/challenge-053/shahed-nooshmand/README
@@ -0,0 +1 @@
+Solutions by Shahed Nooshmand.
diff --git a/challenge-053/shahed-nooshmand/raku/ch-1.sh b/challenge-053/shahed-nooshmand/raku/ch-1.sh
new file mode 100644
index 0000000000..e50e481472
--- /dev/null
+++ b/challenge-053/shahed-nooshmand/raku/ch-1.sh
@@ -0,0 +1 @@
+raku -e 'my @M = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; .put for (@M = reverse(do @M[*;$_] for ^@M[0]) for ^(get() / 90 % 4 || 4))[*-1]'
diff --git a/challenge-053/shahed-nooshmand/raku/ch-2.sh b/challenge-053/shahed-nooshmand/raku/ch-2.sh
new file mode 100644
index 0000000000..e88e15f72d
--- /dev/null
+++ b/challenge-053/shahed-nooshmand/raku/ch-2.sh
@@ -0,0 +1 @@
+raku -e '.say for <a e i o u>.combinations(get).map(*.permutations.map(*.join))[*;*].grep({!m/ao|au|ea|eo|eu|oe|oi|ua|ui/}).sort'