Domanda di colloquio di CLEAR

Write java code to implement "Caesar's Cipher".

Risposta di colloquio

Anonimo

9 feb 2019

Since I didn't cheat it took me a while to figure out the key insight: create a list of letters in alphabetic order, and append it to itself (to handle case where the "shift" involved in the cipher algorithm wraps around - for example, shifting the letter "X" four places wraps around to become "B").