diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2025-02-03 11:20:22 -0500 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2025-02-03 11:20:22 -0500 |
| commit | 2aab0b5a8aa0d49c7f2a2fd5564833c59def3b8b (patch) | |
| tree | 2237419b4fd25241046b4075886001c170a4cb5b | |
| parent | 5d9584a7ecef9e3d7fe9282433e43f271b3e05df (diff) | |
| download | perlweeklychallenge-club-2aab0b5a8aa0d49c7f2a2fd5564833c59def3b8b.tar.gz perlweeklychallenge-club-2aab0b5a8aa0d49c7f2a2fd5564833c59def3b8b.tar.bz2 perlweeklychallenge-club-2aab0b5a8aa0d49c7f2a2fd5564833c59def3b8b.zip | |
:sparkles: Kap solutions
| -rw-r--r-- | challenge-307/conor-hoekstra/ch-1.kap | 6 | ||||
| -rw-r--r-- | challenge-307/conor-hoekstra/ch-2.kap | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/challenge-307/conor-hoekstra/ch-1.kap b/challenge-307/conor-hoekstra/ch-1.kap new file mode 100644 index 0000000000..b120cff7fa --- /dev/null +++ b/challenge-307/conor-hoekstra/ch-1.kap @@ -0,0 +1,6 @@ +CheckOrder ⇐ ⍸≠∘∧ + +⍝ Tests +CheckOrder 5 2 4 3 1 ⍝ 0 2 3 4 +CheckOrder 1 2 1 1 3 ⍝ 1 3 +CheckOrder 3 1 3 2 3 ⍝ 0 1 3 diff --git a/challenge-307/conor-hoekstra/ch-2.kap b/challenge-307/conor-hoekstra/ch-2.kap new file mode 100644 index 0000000000..deda01311a --- /dev/null +++ b/challenge-307/conor-hoekstra/ch-2.kap @@ -0,0 +1,5 @@ +FindAnagrams ⇐ 1++/2≢/∧¨ + +⍝ Tests +FindAnagrams "acca" "dog" "god" "perl" "repl" ⍝ 3 +FindAnagrams "abba" "baba" "aabb" "ab" "ab" ⍝ 2 |
