Skip to content

Commit

Permalink
reverse-string: sync (#143)
Browse files Browse the repository at this point in the history
* Sync the `reverse-string` exercise's docs with the latest data.

* Sync the `reverse-string` exercise's metadata with the latest data.
  • Loading branch information
ErikSchierboom committed Jan 25, 2024
1 parent 7103237 commit e26c3cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
13 changes: 6 additions & 7 deletions exercises/practice/reverse-string/.docs/instructions.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Description
# Instructions

Reverse a string
Your task is to reverse a given string.

For example:
input: "cool"
output: "looc"

Try to do this yourself! Avoid using built-ins like `sequences:reverse`, `sequences:<reversed>`, etc.
Some examples:

- Turn `"stressed"` into `"desserts"`.
- Turn `"strops"` into `"sports"`.
- Turn `"racecar"` into `"racecar"`.
5 changes: 5 additions & 0 deletions exercises/practice/reverse-string/.docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Introduction

Reversing strings (reading them from right to left, rather than from left to right) is a surprisingly common task in programming.

For example, in bioinformatics, reversing the sequence of DNA or RNA strings is often important for various analyses, such as finding complementary strands or identifying palindromic sequences that have biological significance.
2 changes: 1 addition & 1 deletion exercises/practice/reverse-string/.meta/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
".meta/reverse-string-example.factor"
]
},
"blurb": "Reverse a string.",
"blurb": "Reverse a given string.",
"source": "Introductory challenge to reverse an input string",
"source_url": "https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb"
}

0 comments on commit e26c3cd

Please sign in to comment.