4 ms·
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
by hmmk 8y 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.
- Neist 8y agoHi! Yeah, you're right! This was a 1-minute quick'n'dirty solution :-)