(s1,s2)
| 3 | #a rotation of s1 using only one call to isSubstring (e.g.,"waterbottle" is a rotation of "erbottlewat"). |
| 4 | |
| 5 | def isSubstring(s1,s2): |
| 6 | return s1.find(s2) > -1 |
| 7 | |
| 8 | def rotatedStringHasSubstring(s1,s2): |
| 9 | #doubling the string ensures a complete substring regardless of rotation |
no test coverage detected