Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiwarishashwat/InterviewCodes
/ rotateString
Method
rotateString
RotateStrings.java:2–6 ·
view source on GitHub ↗
(String s, String goal)
Source
from the content-addressed store, hash-verified
1
class
Solution {
2
public
boolean rotateString(String s, String goal) {
3
4
return
(s.length()==goal.length() && (s+s).contains(goal));
5
6
}
7
}
8
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected