โ† Thoughtworks questions

Caesar cipher shift by n

Filed under Thoughtworks

The question

Given an integer n and a string, shift each alphabetic character in the string by n positions while preserving case and leaving punctuation and whitespace unchanged.

No write-up yet. Related questions below have one.

Related Thoughtworks questions

Collected from public candidate posts and coding forums. Updated Nov 2026.