Skip to content

albertodst/code-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Save the boat

It's a sunny sunday and Denis is on a boat trip on his bow rider. Unfortunately the engine stops and he is sending an SOS signal.

He's far away from the coast and the signal is degraded and gets corrupted, e.g. MOSSOS is received instead of the SOSSOS sent.

Implement a sendHalp function that takes a string and returns the number of letters corrupted. Please add some tests to check it's working fine.

Constraints

  • message is at least 3 chars long and up to 99 chars long
  • message length is a multiple of 3
  • string will contains only uppercase letters

Example

sendHalp('SOM')
1

sendHalp('SOS')
0

About

Coding challenges for applicants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%