Skip to content

Commit b120395

Browse files
authored
ROT13 cipher system
1 parent fd15d4c commit b120395

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

HackerRank/Enumerable/rot13.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def rot13(secret_messages)
2+
secret_messages.map { |msg| msg.tr("a-z", "n-za-m")}
3+
end
4+
5+
# https://en.wikipedia.org/wiki/ROT13
6+
7+
# ROT13 cipher system

0 commit comments

Comments
 (0)