Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

MADKrollik/morse-decoder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task

Your task is to write a function, that decodes Morse code and returns a string.Write your solution insrc/index.js


Input: String. Its length is multiple of 10.

  • Each letter from alphabet encoded with dots(.) and dashes(-).10 stands for dot(.),11 stands for dash(-).
  • Each encodedletter's length is 10.
  • If the length of the encoded letter isless then 10, itleft padded with0.
  • Space in string is**********.Output: String (decoded)Example:me ->m === -- === 0000001111,e === . === 0000000010 ->00000011110000000010

Prepare and test

  • InstallNode.js
  • Fork this repository:https://github.com/romacher/morse-decoder.git
  • Clone your newly created repo:https://github.com/<%your_github_username%>/morse-decoder/
  • Go to the foldermorse-decoder
  • Runnpm install in command line
  • Runnpm test in command line
  • You will see the number of passed and failed tests

Submit tors app

  1. Openrs app and login
  2. OpenRS APP and clickAuto Test
  3. Select your task (morse-decoder)
  4. Press the submit button and enjoy

Notes

  1. We recommend you to use nodejs of version 14 or lower. If you using any of features that does not supported by node v10, score won't be submitted.
  2. Please be sure that each of your test in limit of 30sec.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp