Hacker News new | ask | show | jobs
by hmmk 2771 days ago
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.
1 comments

Hi! Yeah, you're right! This was a 1-minute quick'n'dirty solution :-)