From e0571d1db4afc5748a6a80450b417130df0726a2 Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Mon, 25 May 2026 15:12:27 -0700 Subject: [PATCH] Format all `instructions.append.md` to start with an H1 (required but ignored) and H2 --- exercises/practice/anagram/.docs/instructions.append.md | 2 ++ .../practice/complex-numbers/.docs/instructions.append.md | 4 +++- .../practice/reverse-string/.docs/instructions.append.md | 4 +++- .../practice/robot-simulator/.docs/instructions.append.md | 5 ++++- exercises/practice/sieve/.docs/instructions.append.md | 2 ++ exercises/practice/sublist/.docs/instructions.append.md | 2 ++ exercises/practice/triangle/.docs/instructions.append.md | 4 +++- 7 files changed, 19 insertions(+), 4 deletions(-) diff --git a/exercises/practice/anagram/.docs/instructions.append.md b/exercises/practice/anagram/.docs/instructions.append.md index f2faab42..9a0f6f54 100644 --- a/exercises/practice/anagram/.docs/instructions.append.md +++ b/exercises/practice/anagram/.docs/instructions.append.md @@ -1,5 +1,7 @@ # Instructions append +## Implementation + You must return the anagrams in the same order as they are listed in the candidate words. The instructions above refer to "lists" in the general sense and not to the `list()` data type in R. diff --git a/exercises/practice/complex-numbers/.docs/instructions.append.md b/exercises/practice/complex-numbers/.docs/instructions.append.md index a28d4472..20395be8 100644 --- a/exercises/practice/complex-numbers/.docs/instructions.append.md +++ b/exercises/practice/complex-numbers/.docs/instructions.append.md @@ -1,7 +1,9 @@ # Instructions append +## Implementation + R supports complex numbers as a core type: for details see [here][complex1] and [here][complex2]. The purpose of this exercise is to implement them from scratch, _without_ using the built-in functions. [complex1]: https://stat.ethz.ch/R-manual/R-devel/library/base/html/complex.html -[complex2]: https://www.cfm.brown.edu/people/dobrush/am33/R/intro/complex0.html \ No newline at end of file +[complex2]: https://www.cfm.brown.edu/people/dobrush/am33/R/intro/complex0.html diff --git a/exercises/practice/reverse-string/.docs/instructions.append.md b/exercises/practice/reverse-string/.docs/instructions.append.md index d9b345b8..b64cbbd8 100644 --- a/exercises/practice/reverse-string/.docs/instructions.append.md +++ b/exercises/practice/reverse-string/.docs/instructions.append.md @@ -1,4 +1,6 @@ -### Bonus tests +# Instructions append + +## Bonus tests Enable tests with grapheme clusters by uncommenting (or defining) `enable_grapheme_clusters <- TRUE`. diff --git a/exercises/practice/robot-simulator/.docs/instructions.append.md b/exercises/practice/robot-simulator/.docs/instructions.append.md index 4c2a2cb1..dea54b21 100644 --- a/exercises/practice/robot-simulator/.docs/instructions.append.md +++ b/exercises/practice/robot-simulator/.docs/instructions.append.md @@ -1,3 +1,6 @@ +# Instructions append + ## Hint -For this exercise you will need to implement a simple S3 class via its constructor, generic method and dispatch to class method. If you are not familiar with S3, a great starting point is the [chapter on S3](http://adv-r.hadley.nz/s3.html) in Hadley Wickham's book Advanced R. +For this exercise you will need to implement a simple S3 class via its constructor, generic method and dispatch to class method. +If you are not familiar with S3, a great starting point is the [chapter on S3](http://adv-r.hadley.nz/s3.html) in Hadley Wickham's book Advanced R. diff --git a/exercises/practice/sieve/.docs/instructions.append.md b/exercises/practice/sieve/.docs/instructions.append.md index b7e273d7..615b5525 100644 --- a/exercises/practice/sieve/.docs/instructions.append.md +++ b/exercises/practice/sieve/.docs/instructions.append.md @@ -1,3 +1,5 @@ # Instructions append +## Implementation + Notice that this is a very specific algorithm that requires **not** to use division or derived operations (remainder, square root, exponent etc.). diff --git a/exercises/practice/sublist/.docs/instructions.append.md b/exercises/practice/sublist/.docs/instructions.append.md index 281d8712..ebf372d6 100644 --- a/exercises/practice/sublist/.docs/instructions.append.md +++ b/exercises/practice/sublist/.docs/instructions.append.md @@ -1,4 +1,6 @@ # Instructions append +## Implementation + Whilst the instructions refer to working with lists, in R the vector type is a more common collection type. Hence, you should read "vector" whenever "list" is mentioned. diff --git a/exercises/practice/triangle/.docs/instructions.append.md b/exercises/practice/triangle/.docs/instructions.append.md index 0edd33ec..9d2b93fd 100644 --- a/exercises/practice/triangle/.docs/instructions.append.md +++ b/exercises/practice/triangle/.docs/instructions.append.md @@ -1,4 +1,6 @@ +# Instructions append ## Hint -For this exercise you will need to implement a simple S3 class. If you are not familiar with S3, a great starting point is the [chapter on S3](http://adv-r.hadley.nz/s3.html) in Hadley Wickham's book Advanced R. \ No newline at end of file +For this exercise you will need to implement a simple S3 class. +If you are not familiar with S3, a great starting point is the [chapter on S3](http://adv-r.hadley.nz/s3.html) in Hadley Wickham's book Advanced R.