← Questions

Group shifted strings

0
MetaCodingLast asked Sep 2025

Two strings belong together if shifting every letter of one by the same amount (wrapping z to a) gives the other. Group a list of strings by this relation, keying each string by the differences between its consecutive letters.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding