Loading interview...
Caesar Shift Check
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- easy
- Seniority
- mid
Interview Prompt
Our encryption audit tool needs to detect Caesar cipher patterns. Write a function called can_shift that takes two equal-length strings and returns True if one can be transformed into the other by shifting every character by the same fixed offset in the alphabet, wrapping from z back to a. Return False for different-length strings.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision