Cvent Interview Question

Check if a string is a rotation of another string

Interview Answers

Anonymous

Jun 2, 2013

can you please share some more coding questions?

2

Anonymous

Jul 16, 2013

basic question public static Boolean isRotated(String str1, String str2) { String s = str1 + str1; boolean b; if(s.indexOf(str2) == -1) b = false; else b = true; return b; }

2