Skip to content

a python module that builds a populated binary tree for morse code values, with a method to easily translate a morse code string to its letter

Notifications You must be signed in to change notification settings

Thiago-Cerq/morseCodeTranslator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

morseCodeTranslator

a python module that builds a populated binary tree for morse code values, with a method to easily translate a morse code string to its letter.

This weekend I had some amazing whiteboarding practice with GirlDevelopIt SF (highly recommend!)

One of the challenges gave the coder a working binary tree full of all the correct morse code letter positions, which we then had to use to solve a problem.

So, at home I built this little module that would let anyone have a working morse code binary tree to play with for their own challenges. (I also built out the leter translate method which was part of our whiteboarding work too.)

Have fun! Binary trees are trippy!

what a morse code binary tree looks like: alt text

CHALLENGE: Given an array of strings (each string is "."s and "-"s representing a valid morse code value) return the English text that the array translates to.

(one whole word, no spaces.)

About

a python module that builds a populated binary tree for morse code values, with a method to easily translate a morse code string to its letter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%