is_rotation
Checks if one string is a rotation of another string by verifying if str1 appears in str2 concatenated with itself. Returns true if str1 is a rotation of str2, false otherwise. (cost: 1 credit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| str1 | No | string, required, first string to compare | |
| str2 | No | string, required, second string to check if it's a rotation of str1 |