Given two strings, s1 and s2, implement a method isSubstring that checks if s2 is a rotation of s1 , using only one call to isSubstring . For example, 'waterbottle' is a rotation of 'erbottlewat'
Given two strings, s1 and s2, implement a method isSubstring that checks if s2 is a rotation of s1, using only one call to isSubstring. For example, 'waterbottle' is a rotation of 'erbottlewat'
Verve AI Editorial Team
Question Bank



