Quick problem: circular rotation of string

Finding if a string S1 is a circular rotation of another, given string S2, is a matter of finding┬áS2 in S1+S1. (indexOf) Other solutions involve string search algorithms. public static boolean isCircularRotation(final String… Continue reading