← All questions
Coding
Group Shifted Strings
Asked at
Zoho
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
- 01Define the shift-invariant signature relative to the first character
- 02Encode each later character as a modulo-26 offset
- 03Use the signature as a hash-map key and append the original string
- 04Explain why equivalent shifted strings share a signature
- 05Check empty, one-character, wrapping, and repeated-character strings
Reference answer
Then expect these follow-ups
What constraint would change your chosen approach?
Tests: constraint adaptation
How would you test the edge cases before implementation?
Tests: implementation extension
Free to read · better with Enzo
Practice this out loud with Enzo
Enzo runs it as a mock interview, pushes back with follow-ups, and grades you on the rubric.
Next question