Write a program that parses a sentence and replaces each word with the following:
- The first letter of the word ✓
- The number of distinct characters between first and last character ✓
- The last letter of the word. ✓
For example, Smooth would become S3h. Words are separated by spaces or non-alphabetic characters and these separators should be maintained in their original form and location in the answer. A few of the things we will be looking at is accuracy, efficiency, solution completeness.
"Creativity is thinking-up new things. Innovation is doing new things!"
expected: C6y is t4g-up n1w t4s. I6n is d3g n1w t4s!
- Make sure that you have
node
andnpm
installed on your computer. - Fork and clone this repo on your computer.
cd
into the root directory and runnode test.js
.
- Aldair Bernal - Full work - Aldair47x
- Creative Tim - Base template - Creative Tim React Free Templates
Follow me! – aldair47x@Twitter – aldair47x@gmail.com
This project is licensed under the MIT License - see the LICENSE.md file for details.