From 73739dffc24771ceef0500927342589adcac3c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Sat, 1 Feb 2025 07:05:23 -0800 Subject: [PATCH] Sync docs and metadata (#146) --- exercises/practice/anagram/.docs/instructions.md | 11 +++++------ exercises/practice/food-chain/.meta/config.json | 3 +++ exercises/practice/grains/.meta/config.json | 2 +- exercises/practice/isbn-verifier/.meta/config.json | 3 +++ exercises/practice/leap/.meta/config.json | 2 +- exercises/practice/matrix/.meta/config.json | 3 +++ .../practice/rna-transcription/.meta/config.json | 2 +- exercises/practice/sieve/.meta/config.json | 3 +++ exercises/practice/transpose/.meta/config.json | 3 +++ exercises/practice/twelve-days/.meta/config.json | 3 +++ 10 files changed, 26 insertions(+), 9 deletions(-) diff --git a/exercises/practice/anagram/.docs/instructions.md b/exercises/practice/anagram/.docs/instructions.md index a729848..dca24f5 100644 --- a/exercises/practice/anagram/.docs/instructions.md +++ b/exercises/practice/anagram/.docs/instructions.md @@ -1,13 +1,12 @@ # Instructions -Your task is to, given a target word and a set of candidate words, to find the subset of the candidates that are anagrams of the target. +Given a target word and one or more candidate words, your task is to find the candidates that are anagrams of the target. An anagram is a rearrangement of letters to form a new word: for example `"owns"` is an anagram of `"snow"`. A word is _not_ its own anagram: for example, `"stop"` is not an anagram of `"stop"`. -The target and candidates are words of one or more ASCII alphabetic characters (`A`-`Z` and `a`-`z`). -Lowercase and uppercase characters are equivalent: for example, `"PoTS"` is an anagram of `"sTOp"`, but `StoP` is not an anagram of `sTOp`. -The anagram set is the subset of the candidate set that are anagrams of the target (in any order). -Words in the anagram set should have the same letter case as in the candidate set. +The target word and candidate words are made up of one or more ASCII alphabetic characters (`A`-`Z` and `a`-`z`). +Lowercase and uppercase characters are equivalent: for example, `"PoTS"` is an anagram of `"sTOp"`, but `"StoP"` is not an anagram of `"sTOp"`. +The words you need to find should be taken from the candidate words, using the same letter case. -Given the target `"stone"` and candidates `"stone"`, `"tones"`, `"banana"`, `"tons"`, `"notes"`, `"Seton"`, the anagram set is `"tones"`, `"notes"`, `"Seton"`. +Given the target `"stone"` and the candidate words `"stone"`, `"tones"`, `"banana"`, `"tons"`, `"notes"`, and `"Seton"`, the anagram words you need to find are `"tones"`, `"notes"`, and `"Seton"`. diff --git a/exercises/practice/food-chain/.meta/config.json b/exercises/practice/food-chain/.meta/config.json index 4524474..bef45d2 100644 --- a/exercises/practice/food-chain/.meta/config.json +++ b/exercises/practice/food-chain/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Generate the lyrics of the song 'I Know an Old Lady Who Swallowed a Fly'.", diff --git a/exercises/practice/grains/.meta/config.json b/exercises/practice/grains/.meta/config.json index 3af2016..ab61c35 100644 --- a/exercises/practice/grains/.meta/config.json +++ b/exercises/practice/grains/.meta/config.json @@ -18,5 +18,5 @@ }, "blurb": "Calculate the number of grains of wheat on a chessboard given that the number on each square doubles.", "source": "The CodeRanch Cattle Drive, Assignment 6", - "source_url": "https://coderanch.com/wiki/718824/Grains" + "source_url": "https://web.archive.org/web/20240908084142/https://coderanch.com/wiki/718824/Grains" } diff --git a/exercises/practice/isbn-verifier/.meta/config.json b/exercises/practice/isbn-verifier/.meta/config.json index c41a5be..ec27cc6 100644 --- a/exercises/practice/isbn-verifier/.meta/config.json +++ b/exercises/practice/isbn-verifier/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Check if a given string is a valid ISBN-10 number.", diff --git a/exercises/practice/leap/.meta/config.json b/exercises/practice/leap/.meta/config.json index fe3f47a..feb8ae6 100644 --- a/exercises/practice/leap/.meta/config.json +++ b/exercises/practice/leap/.meta/config.json @@ -18,5 +18,5 @@ }, "blurb": "Determine whether a given year is a leap year.", "source": "CodeRanch Cattle Drive, Assignment 3", - "source_url": "https://coderanch.com/t/718816/Leap" + "source_url": "https://web.archive.org/web/20240907033714/https://coderanch.com/t/718816/Leap" } diff --git a/exercises/practice/matrix/.meta/config.json b/exercises/practice/matrix/.meta/config.json index 6fa2997..cf1de0d 100644 --- a/exercises/practice/matrix/.meta/config.json +++ b/exercises/practice/matrix/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Given a string representing a matrix of numbers, return the rows and columns of that matrix.", diff --git a/exercises/practice/rna-transcription/.meta/config.json b/exercises/practice/rna-transcription/.meta/config.json index 6f1b3d1..45a60f4 100644 --- a/exercises/practice/rna-transcription/.meta/config.json +++ b/exercises/practice/rna-transcription/.meta/config.json @@ -16,7 +16,7 @@ "tester.art" ] }, - "blurb": "Given a DNA strand, return its RNA Complement Transcription.", + "blurb": "Given a DNA strand, return its RNA complement.", "source": "Hyperphysics", "source_url": "https://web.archive.org/web/20220408112140/http://hyperphysics.phy-astr.gsu.edu/hbase/Organic/transcription.html" } diff --git a/exercises/practice/sieve/.meta/config.json b/exercises/practice/sieve/.meta/config.json index cc83356..407abf7 100644 --- a/exercises/practice/sieve/.meta/config.json +++ b/exercises/practice/sieve/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.", diff --git a/exercises/practice/transpose/.meta/config.json b/exercises/practice/transpose/.meta/config.json index 843142d..cdcbb70 100644 --- a/exercises/practice/transpose/.meta/config.json +++ b/exercises/practice/transpose/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Take input text and output it transposed.", diff --git a/exercises/practice/twelve-days/.meta/config.json b/exercises/practice/twelve-days/.meta/config.json index 057e57d..be4bcb9 100644 --- a/exercises/practice/twelve-days/.meta/config.json +++ b/exercises/practice/twelve-days/.meta/config.json @@ -11,6 +11,9 @@ ], "example": [ ".meta/src/example.art" + ], + "invalidator": [ + "tester.art" ] }, "blurb": "Output the lyrics to 'The Twelve Days of Christmas'.",