Rotate String
Medium · rating 1300 · Strings
Read two strings, one per line. Print YES if the first is a rotation of the second (shift its characters cyclically), else NO.
For abcde and cdeab print YES.
Related problems
- Balanced Brackets — Medium
- Election Winner — Medium
- Maximum Nesting Depth — Medium
- Run-Length Decode — Medium
- Add Binary Strings — Medium
- First Unique Character — Medium