Thought:
Simple hash mapping table,pythonUse ascii_lowercase[]
Directly obtain a lowercase letter。
Golang Look at the answer of Lingshen,
“Imam on the space to the space,In this way, you don’t need to judge the space。”
Code:
1 | from string import ascii_lowercase |
1 | func decodeMessage(key string, message string) string { |