We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cracking-the-coding-interview/src/chapter01ArraysAndStrings/StringRotation.java
Line 15 in efe6d6c
current implementation always returns true, even if s2 contains all different characters: isRotation("abcd", "1234") -> true
true
s2
isRotation("abcd", "1234")
it should be:
return isSubstring((s1 + s1), s2);