Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
hmmk
7y ago
0 comments
Share
Your solution would not work for all cases. For example, shifting "JAZZ" up by 1 should result in "KBAA" but your program would output "KB[[". You also need to handle wraparound at the ends of the alphabet.
0 comments
default
newest
oldest
Neist
7y ago
Hi! Yeah, you're right! This was a 1-minute quick'n'dirty solution :-)
j
/
k
navigate · click thread line to collapse