Browse Source

docs(fifthandskip): instructions upgrade

DEV-3180-new-go-exercise-fifthandskip
Tiago Collot 2 years ago
parent
commit
4475deeec6
  1. 5
      subjects/fifthandskip/README.md

5
subjects/fifthandskip/README.md

@ -4,8 +4,9 @@
Write a function `FifthAndSkip()` that takes a `string` and returns another `string`. The function separates every five characters of the `string` with a space and removes the sixth one.
- If there is a space in the middle of a word it should ignore it and get the first character until getting to a length of 5.
- If the `string` is less than 5 characters returns "Invalid Output\n".
- If there are spaces in the middle of a word, ignore them and get the first character after the spaces until you reach a length of 5.
- If the `string` is less than 5 characters returns `Invalid Output` followed by a newline `\n`.
- If the `string` is empty return a newline `\n`.
### Expected function

Loading…
Cancel
Save