Skip to content

Commit

Permalink
feat: add fix-typo
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Sep 23, 2019
1 parent 1bce01e commit 6063fa5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@

## Task

Your task is to write function, that decode Morse code and return string.
Your task is to write a function, that decodes Morse code and returns a string.
Write your solution in `src/index.js`

---

**Input:** String. It length is multiple of 10.
- Eache letter from alphabet encoded with `10` for `.` and `11` for `-`.
**Input:** String of `0` and `1`. Its length is multiple of 10.
- Each letter from alphabet encoded with dots(`.`) and dashes(`-`). `10` stands for dot(`.`), `11` stands for dash(`-`).
- Each encoded **letter's length is 10**.
- If length of encoded letter is **less then 10**, it `lefft padded` with `0`.
- `Space` in string is `**********`.
**Output:** String (decoded)
- If length of encoded letter is **less than 10**, it must be `left padded` with `0`.
- `Space` in a input string is encoded with ten asterisks ->`**********`.
- **Example:** `me` -> `--` `.` -> `0000001111 0000000010`. Spaces in final result were added for the sake of concept better understanding. Input string does **NOT** include spaces.
**Output:** String (decoded). Simply put, `00000011110000000010` should be decoded by your application as `me`.

---

## Prepare and test

- Install [Node.js](https://nodejs.org/en/)
- Clone this repository: `https://github.com/romacher/morse-decoder.git`
- Go to folder `morse-decoder`
- Go to the folder `morse-decoder`
- Run `npm install` in command line
- Run `npm test` in command line
- You will see the number of passing and failing tests
- You will see the number of passed and failed tests

## Submit to [rs app](https://app.rs.school)
1. Open [rs app](https://app.rs.school) and login
Expand Down

0 comments on commit 6063fa5

Please sign in to comment.