Caesar Shift Check
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L4
Problem
Given two equal-length strings a and b consisting of lowercase letters, return True if there exists an integer k (0..25) such that every character of b equals the corresponding character of a shifted by exactly k (wrapping z->a). Return False otherwise.
Summary
The key turns. Does it open?
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.