/Intertec--test

Primary LanguageJavaScriptMIT LicenseMIT

♛ Intertect Javascript Test ♛

Problem Statement

Write a program that parses a sentence and replaces each word with the following:


Mandatory Features

  • 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!


Installing and Running

  1. Make sure that you have node and npm installed on your computer.
  2. Fork and clone this repo on your computer.
  3. cd into the root directory and run node test.js.

Authors

Follow me! – aldair47x@Twitteraldair47x@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details.