Problems > Caesar Shift > Editorial

Caesar Shift — Solution & Editorial

Back to the Problem

Shift each character by K mod 26 with wraparound arithmetic on the alphabet index.

Complexity: O(|S|)