RS Energy Group Interview Question

Given a Python dictionary mapping letters to morse code, i.e. morse = {'a': '.-', 'b': '-...', etc}, write a function that takes a given string input and returns whether the morse code representation of that string is a palindrome

Interview Answer

Anonymous

Jul 23, 2019

Write a function that : 1. computes the morse code representation of the string 2. determines whether the resulting string is a palindrome