Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions exercises/simple-cipher/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ substitution cipher a little more fault tolerant by providing a source
of randomness and ensuring that the key contains only lowercase letters.

If someone doesn't submit a key at all, generate a truly random key of
at least 100 characters in length.

If the key submitted is not composed only of lowercase letters, your
solution should handle the error in a language-appropriate way.
at least 100 alphanumeric characters in length.

## Extensions

Expand Down
23 changes: 18 additions & 5 deletions exercises/two-fer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,28 @@

`Two-fer` or `2-fer` is short for two for one. One for you and one for me.

Given a name, return a string with the message:

```text
"One for X, one for me."
One for X, one for me.
```

When X is a name or "you".
Where X is the given name.

However, if the name is missing, return the string:

```text
One for you, one for me.
```

If the given name is "Alice", the result should be "One for Alice, one for me."
If no name is given, the result should be "One for you, one for me."
Here are some examples:

|Name | String to return
|:------:|:-----------------:
|Alice | One for Alice, one for me.
|Bob | One for Bob, one for me.
| | One for you, one for me.
|Zaphod | One for Zaphod, one for me.

## Rust Installation

Expand Down Expand Up @@ -67,7 +80,7 @@ If you want to know more about Exercism, take a look at the [contribution guide]

## Source

[https://en.wikipedia.org/wiki/Two-fer](https://en.wikipedia.org/wiki/Two-fer)
[https://github.com/exercism/problem-specifications/issues/757](https://github.com/exercism/problem-specifications/issues/757)

## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.