mirror of
https://github.com/ArthurDanjou/exercism-rust.git
synced 2026-01-22 07:50:30 +01:00
Initial commit
This commit is contained in:
55
reverse-string/README.md
Normal file
55
reverse-string/README.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# Reverse String
|
||||
|
||||
Welcome to Reverse String on Exercism's Rust Track.
|
||||
If you need help running the tests or submitting your code, check out `HELP.md`.
|
||||
|
||||
## Instructions
|
||||
|
||||
Reverse a string
|
||||
|
||||
For example:
|
||||
input: "cool"
|
||||
output: "looc"
|
||||
|
||||
Test your function on this string: `uüu` and see what happens. Try to write a function that properly
|
||||
reverses this string. Hint: grapheme clusters
|
||||
|
||||
To get the bonus test to run, remove the ignore flag (`#[ignore]`) from the
|
||||
last test, and execute the tests with:
|
||||
|
||||
```bash
|
||||
$ cargo test --features grapheme
|
||||
```
|
||||
|
||||
You will need to use external libraries (a `crate` in rust lingo) for the bonus task. A good place to look for those is [crates.io](https://crates.io/), the official repository of crates.
|
||||
|
||||
[Check the documentation](https://doc.rust-lang.org/cargo/guide/dependencies.html) for instructions on how to use external crates in your projects.
|
||||
|
||||
## Source
|
||||
|
||||
### Created by
|
||||
|
||||
- @coriolinus
|
||||
|
||||
### Contributed to by
|
||||
|
||||
- @cbzehner
|
||||
- @ccouzens
|
||||
- @cwhakes
|
||||
- @efx
|
||||
- @ErikSchierboom
|
||||
- @hunger
|
||||
- @lutostag
|
||||
- @ocstl
|
||||
- @PaulT89
|
||||
- @petertseng
|
||||
- @rofrol
|
||||
- @rrredface
|
||||
- @stringparser
|
||||
- @TheDarkula
|
||||
- @xakon
|
||||
- @ZapAnton
|
||||
|
||||
### Based on
|
||||
|
||||
Introductory challenge to reverse an input string - https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb
|
||||
Reference in New Issue
Block a user